/**
 * Portal 9 Style Template — optional content-area formatting
 * Scoped to .p9-content so existing project styles are not overwritten.
 */

.p9-content {
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.55;
}

.p9-content :where(h1, h2, h3, h4) {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
}

.p9-content :where(h1) { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.p9-content :where(h2) { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.p9-content :where(h3) { font-size: 1.25rem; margin-bottom: 8px; }

.p9-content :where(p) {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.p9-content :where(a:not([class])) {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.p9-content :where(a:not([class]):hover) {
  color: var(--purple-dark);
}

.p9-content :where(ul:not([class]), ol:not([class])) {
  margin: 0 0 16px 1.25rem;
  color: var(--text-muted);
}

.p9-content :where(ul:not([class])) { list-style: disc; }
.p9-content :where(ol:not([class])) { list-style: decimal; }

.p9-content :where(img, video) {
  border-radius: var(--radius);
}

.p9-section {
  padding: 64px clamp(20px, 4vw, 48px);
  max-width: 1100px;
  margin: 0 auto;
}

.p9-section--wide {
  max-width: 1400px;
}

.p9-hero {
  padding: 48px clamp(20px, 4vw, 48px) 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.p9-hero .section-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: 12px;
}

.p9-hero .section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 52ch;
}
