/* Generic content pages (website.models.ContentPage) — see docs/content-pages.md */

/*
 * Page-wide atmospheric wash (only present when a hero is rendered — the
 * plain layout has no header art to justify it). Applied to the whole page
 * rather than just the hero box, so the radial gradients fade out naturally
 * instead of being cut off at a hard edge where the hero band ends (same
 * approach as .team-page in team.css).
 */
.content-page--hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(100, 81, 144, 0.06), transparent 26rem),
    radial-gradient(circle at 88% 10%, rgba(48, 111, 141, 0.05), transparent 26rem);
}

.content-page-shell {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) 1.5rem 5rem;
}

/* Hero layout — used when the page has a ContentPageHero row */

.content-page-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3.25rem, 6vw, 5rem) 1.5rem clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.content-page-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  color: var(--brand-teal);
  font-weight: 700;
  font-size: 0.9rem;
}

.content-page-hero h1 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(2.4rem, 4.6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--brand-ink);
}

.content-page-hero p {
  max-width: 680px;
  margin: 1rem auto 0;
  color: var(--brand-gray-dark);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.75;
}

/* Plain layout — no ContentPageHero row: a modest heading above the body,
   inside the same narrow content column as the prose below it. */

.content-page-title {
  margin-bottom: 1.5rem;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--brand-ink);
}

.content-page-body {
  color: var(--brand-ink);
}

/*
 * Prose rules for the rendered Markdown body (website/content_pages.py).
 * Small deliberate copy of .event-detail-prose's rules under this page's
 * own class name — keeps the two pages' CSS independent.
 */
.content-page-prose {
  line-height: 1.7;
}

.content-page-prose p {
  margin-bottom: 1.1rem;
}

.content-page-prose p:last-child {
  margin-bottom: 0;
}

.content-page-prose ul {
  list-style-type: disc;
  list-style-position: outside;
  padding-left: 1.25rem;
  margin: 0.35rem 0 1.1rem;
}

.content-page-prose ol {
  list-style-type: decimal;
  list-style-position: outside;
  padding-left: 1.5rem;
  margin: 0.35rem 0 1.1rem;
}

.content-page-prose li {
  margin: 0.2rem 0;
}

.content-page-prose li > p {
  margin: 0.35rem 0;
}

.content-page-prose h2,
.content-page-prose h3,
.content-page-prose h4,
.content-page-prose h5,
.content-page-prose h6 {
  font-weight: 600;
  color: var(--brand-ink);
  margin: 1.5rem 0 0.6rem;
}

.content-page-prose h2:first-child,
.content-page-prose h3:first-child,
.content-page-prose h4:first-child,
.content-page-prose h5:first-child,
.content-page-prose h6:first-child {
  margin-top: 0;
}

.content-page-prose a {
  color: var(--brand-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-page-prose blockquote {
  border-left: 3px solid var(--brand-teal);
  padding-left: 1rem;
  margin: 0.75rem 0;
  color: var(--brand-gray-dark);
}

.content-page-prose code {
  font-size: 0.875em;
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background-color: color-mix(in oklch, currentColor 12%, transparent);
}

.content-page-prose pre {
  overflow-x: auto;
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  background-color: color-mix(in oklch, currentColor 10%, transparent);
}

.content-page-prose pre code {
  padding: 0;
  background-color: transparent;
}
