/* css/shared/text-page.css: the reading pages in the new design (faq, resources, terms, terms-funeral-home, agree-terms-family,
   agree-terms-funeral-home; the founders' Home Page Review page, October 2026). Stone page, a white pinned header with the name and a
   few links, headings in Literata light, everything else in Nunito, cream cards with a clear edge, evergreen buttons, the signed-off
   footer (css/family-footer.css). Each page's own stylesheet adds only what is its own. Phone up to 720px wide. */
:root {
  --stone: #f6f3ee; --sand: #efe9dd; --card: #fbf8f2; --hairline: #e3ddd0; --edge: #d8d0c0;
  --evergreen: #25483c; --evergreen-deep: #152a23; --sage: #366b55; --sage-light: #add6c0; --pale-sage: #e5efe8; --muted: #4a514d;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Literata', Georgia, serif;
  --card-shadow: 0 4px 14px rgba(31,45,43,.06);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--stone); color: var(--evergreen);
  font-family: var(--font-body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body > main { flex: 1; }
a { color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--evergreen); }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 8px; }

/* ---- the header: white in every theme, pinned ---- */
.tp-top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 72px; padding: 0 32px; background: #fff; border-bottom: 1px solid var(--hairline); }
.tp-top .fh-brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--evergreen); flex: none; }
.tp-top .fh-brand-name { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.005em; white-space: nowrap; }
.tp-nav { display: flex; align-items: center; gap: 24px; }
.tp-nav a { font-size: 16px; text-decoration: none; white-space: nowrap; }
.tp-link { color: var(--muted); padding: 8px 0; border-bottom: 1.5px solid transparent; }
.tp-link:hover { color: var(--evergreen); border-bottom-color: var(--sage-light); }
.tp-link[aria-current="page"] { color: var(--evergreen); font-weight: 700; border-bottom-color: var(--sage); }
.tp-signin { color: var(--evergreen); font-weight: 700; }
.tp-signin:hover { text-decoration: underline; }
.tp-top .tp-btn { min-height: 44px; padding: 0 20px; }

/* ---- buttons: 52px tall, 12px corners, Nunito bold ---- */
.tp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 12px;
  border: 1px solid var(--evergreen-deep); background: linear-gradient(#2f6150, #25483c); color: var(--stone) !important;
  font-family: var(--font-body); font-weight: 700; font-size: 16px; text-decoration: none !important; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(31,45,43,.18); transition: filter .15s ease, box-shadow .15s ease; }
.tp-btn:hover { filter: brightness(1.06); box-shadow: 0 2px 4px rgba(31,45,43,.16), 0 8px 20px rgba(31,45,43,.12); }

/* ---- the reading column ---- */
.tp-main { width: 100%; max-width: 820px; margin: 0 auto; padding: 72px 32px 72px; }
.tp-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; font-size: 15px; font-weight: 700; color: var(--sage); text-decoration: none; }
.tp-back:hover { color: var(--evergreen); text-decoration: underline; }
.tp-k { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); }
.tp-h1 { margin: 0 0 16px; font-family: var(--font-display); font-weight: 300; font-size: 52px; line-height: 1.1; letter-spacing: -.01em; color: var(--evergreen); }
.tp-sub { margin: 0 0 48px; max-width: 640px; font-size: 18px; color: var(--muted); }

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .tp-top { min-height: 64px; padding: 0 16px; gap: 12px; }
  .tp-top .fh-brand-name { font-size: 20px; }
  .tp-nav { gap: 16px; }
  .tp-link { display: none; }
  .tp-nav a { font-size: 15px; }
  .tp-top .tp-btn { padding: 0 16px; font-size: 14px; }
  .tp-main { padding: 48px 16px 48px; }
  .tp-back { margin-bottom: 24px; }
  .tp-h1 { font-size: 36px; }
  .tp-sub { margin-bottom: 40px; font-size: 16.5px; }
}
@media (max-width: 360px) { .tp-top .tp-btn { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .tp-top, .fz, .tp-back { display: none !important; } body { background: #fff; color: #000; } a { color: #000; } }
