/* Shared layout for long-form pages: About, FAQ, Disclosures, Contact,
   Privacy, Terms. Scoped to .content-* / .prose so it never leaks into the
   home page or pricing.css's card grid. Loads after style.css. The
   accordion (.faq-item), sub-nav (.subnav) and search field (.search-field)
   these pages use are shared components in style.css — not redefined here. */

.content-hero { padding: 72px 0 8px; text-align: center; position: relative; z-index: 1; }
.content-hero h1 { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-h1-page); margin: 16px 0 14px; letter-spacing: var(--ls-tight-xl); text-wrap: balance; }
/* Lead only — exclude byline / date so blog posts don't inherit fs-lead. */
.content-hero > .container > p:not(.blog-byline):not(.content-updated) {
  color: var(--text); max-width: 600px; margin: 0 auto; font-size: var(--fs-lead); line-height: 1.5;
}
.content-updated { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--text-faint); margin-top: 14px; }
/* A search field or link row placed inside the hero, under the lead. */
.content-hero .search-field { margin: 28px auto 8px; }
.content-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* One reading-column width for every long-form page: About, FAQ, Disclosures,
   Contact, Privacy, Terms. Deliberately narrower than --container-max (see
   tokens.css) — that's not a leftover inconsistency, continuous text needs a
   shorter line length to stay readable regardless of how wide the screen is,
   the same reason Stripe's own docs/legal pages don't span their full nav
   width either. Card-style content (FAQ's accordion) used to get its own
   wider one-off; folded back into this single value for one width, not two. */
.prose { max-width: var(--prose-max); margin: 0 auto; padding: 48px 0 80px; }

/* ---------------------------------------------------------------------------
   Blog (/blog/ index + post). Same .content-hero shell as other long-form
   pages. Index cards get cursor spotlight via interactions.js
   (.blog-list-link in SPOTLIGHT_SELECTOR). Post bodies are staff-authored
   HTML in .prose; h2 ids are injected at render for the sticky sub-nav.
   --------------------------------------------------------------------------- */

.blog-hero-source { display: inline-flex; margin: 0 0 var(--sp-2); }

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin: 0 auto var(--sp-6);
  max-width: var(--prose-max);
}
/* Same chip language as Features' .feat-tag — scoped here so blog doesn't
   load features.css. */
.blog-tag {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: var(--fw-body);
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap;
  transition: color var(--dur-1) ease, border-color var(--dur-1) ease, background var(--dur-1) ease, transform var(--dur-2) var(--ease-out);
}
.blog-tag:hover { color: var(--text); border-color: var(--voice); transform: translateY(-1px); }
.blog-tag.is-active { color: var(--voice-strong); border-color: var(--voice); background: var(--voice-dim); }
.blog-tag:focus-visible { outline: none; border-color: var(--voice); box-shadow: 0 0 0 3px var(--voice-dim); }

.blog-list {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; gap: var(--sp-4);
  max-width: var(--prose-max);
}
.blog-list--related {
  max-width: none;
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--sp-5);
}
@media (max-width: 768px) {
  .blog-list--related { grid-template-columns: 1fr; }
}
.blog-list-item { margin: 0; }
.blog-list-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-2);
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.blog-list-link::before {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), var(--voice-dim), transparent 70%);
  transition: opacity var(--dur-2) ease;
}
.blog-list-link:hover::before { opacity: 1; }
.blog-list-link:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.blog-list-link .feature-source { position: relative; z-index: 1; }
.blog-list-title {
  font-family: var(--font-display);
  font-weight: var(--fw-strong);
  font-size: var(--fs-h4);
  letter-spacing: var(--ls-tight);
  line-height: 1.25;
  margin: 0;
  color: var(--text);
  position: relative;
  z-index: 1;
}
.blog-list-excerpt {
  color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; margin: 0;
  position: relative; z-index: 1;
}
.blog-list-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--text-faint);
  letter-spacing: var(--ls-wide);
  margin: var(--sp-2) 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  position: relative;
  z-index: 1;
}
.blog-list-author { color: var(--text-muted); }
.blog-list-cta {
  margin-left: auto;
  color: var(--voice);
  font-weight: var(--fw-emphasis);
}
.blog-empty { color: var(--text-muted); font-size: var(--fs-md); text-align: center; margin: 0 0 var(--sp-5); }
.blog-empty button {
  background: none; border: none; padding: 0; font: inherit; cursor: pointer;
  color: var(--voice); text-decoration: underline; text-decoration-color: var(--voice-dim);
  transition: text-decoration-color var(--dur-1) ease;
}
.blog-empty button:hover { text-decoration-color: var(--voice); }

/* Visible byline on a post — the E-E-A-T signal that markup alone doesn't
   provide. Sits between the h1 and .content-updated's date line. */
.blog-byline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: var(--sp-2);
  margin: 0;
  font-size: var(--fs-sm);
}
.blog-byline-author { color: var(--text); font-weight: var(--fw-emphasis); }
.blog-byline-title { color: var(--text-faint); font-family: var(--font-mono); font-size: var(--fs-label); }

/* Hero chips are <a class="chip"> — neutralize prose-link inheritance if any. */
.content-hero .content-links .chip { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .blog-list-link, .blog-list-link:hover, .blog-tag, .blog-tag:hover { transition: none; transform: none; }
}
.prose h2 { font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-xl); margin: 44px 0 14px; letter-spacing: var(--ls-tight); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text); font-size: var(--fs-md); line-height: 1.7; margin: 0 0 16px; }
.prose ul, .prose ol { color: var(--text); font-size: var(--fs-md); line-height: 1.7; padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose a { color: var(--voice); text-decoration: underline; text-decoration-color: rgba(255,181,71,0.4); transition: text-decoration-color var(--dur-1) ease; }
.prose a:hover { text-decoration-color: var(--voice); }
/* .btn components (About's closing CTA, Contact's cards) sometimes sit
   inside a .prose container. They must keep their own component colors,
   not inherit the prose link style, or text goes invisible (e.g. gold text
   on the gold btn-primary gradient). */
.prose a.btn { text-decoration: none; }
.prose a.btn-primary { color: var(--text-on-accent); }
.prose a.btn-ghost { color: var(--text); }
/* Shared card grids dropped into a reading column (About's three routes,
   its status row): give them breathing room and keep card copy at the
   card's own size, not the prose paragraph size. */
.prose .feature-grid, .prose .principle-grid { margin: 24px 0 36px; }
.prose .feature-card p, .prose .principle-card p { font-size: var(--fs-sm); margin-bottom: 0; }
.prose .feature-card p.feature-ask { margin-top: 12px; }
.prose .cta-banner { margin-top: 48px; }
.prose .cta-banner p { color: var(--text-muted); }

/* Small mono footnote line ("See also: …", the bare support address). */
.content-meta { margin-top: 32px; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-faint); line-height: 1.6; text-align: center; }
.content-meta a { color: var(--text-muted); }

.callout-note {
  border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--bg-card);
  padding: 16px 20px; margin: 0 0 16px; font-size: var(--fs-body-sm); color: var(--text-faint); line-height: 1.65;
}
.callout-note strong { color: var(--text-muted); }
.callout-note--after { margin-top: 24px; }

/* ---- About page: three-principle callout row, and the status row that
   reuses it with a "Live" pill (.eco-card-status from style.css) ---- */
.principle-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 8px 0 16px; }
@media (min-width: 640px) { .principle-grid { grid-template-columns: repeat(3, 1fr); } }
.principle-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px;
  position: relative; overflow: hidden;
  transition: border-color var(--dur-2) ease, transform var(--dur-2) ease;
}
.principle-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 70%);
  transition: opacity var(--dur-2) ease;
}
.principle-card:hover::before { opacity: 1; }
.principle-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.principle-card .icon-badge { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.principle-card .icon-badge .icon { width: 17px; height: 17px; }
.principle-card .eco-card-status { margin-bottom: 12px; }
.principle-card h3 { font-family: var(--font-display); font-weight: var(--fw-strong); font-size: var(--fs-h4); margin: 0 0 8px; }
.principle-card p { font-size: var(--fs-sm); line-height: 1.5; margin: 0; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .principle-card, .contact-card { transition: none; transform: none !important; } }

/* ---- FAQ page: groups the sub-nav jumps to, filtered by faq.js ---- */
.faq-group { padding-top: 4px; }
.faq-empty { text-align: center; color: var(--text-muted); font-size: var(--fs-sm); padding: 40px 0 8px; }
.faq-empty button {
  background: none; border: none; padding: 0; font: inherit; cursor: pointer;
  color: var(--voice); text-decoration: underline; text-decoration-color: var(--voice-dim);
  transition: text-decoration-color var(--dur-1) ease;
}
.faq-empty button:hover { text-decoration-color: var(--voice); }
/* faq.js highlights the search term inside matching questions/answers. */
.faq-mark { background: var(--voice-dim); color: var(--voice-strong); border-radius: 3px; padding: 0 2px; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 8px 0; }
.contact-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px;
  text-align: center; position: relative; overflow: hidden;
  transition: border-color var(--dur-2) ease, transform var(--dur-2) ease;
}
.contact-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), var(--voice-dim), transparent 70%);
  transition: opacity var(--dur-2) ease;
}
.contact-card:hover::before { opacity: 1; }
.contact-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.contact-card .icon-badge { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.contact-card .icon-badge .icon { width: 19px; height: 19px; }
.contact-card h3 { font-family: var(--font-display); font-weight: var(--fw-strong); font-size: var(--fs-h4); margin: 0 0 8px; }
.contact-card p { font-size: var(--fs-sm); line-height: 1.5; color: var(--text-muted); margin: 0 0 14px; }
.contact-card a.btn { font-size: var(--fs-xs); padding: 8px 16px; }

.contact-form-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 32px; margin: 32px 0 0;
}
.contact-form-card h3 { font-family: var(--font-display); font-weight: var(--fw-strong); font-size: var(--fs-h4); margin: 0 0 20px; }
.contact-form-card .auth-submit { margin-top: 4px; }
@media (max-width: 560px) { .contact-form-card { padding: 24px 20px; } }
