/* ═══════════════════════════════════════════════════════════════════════════
   DNS Panopticon — Content Foundation
   Shared content layout, headings, metadata and prose.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page content wrapper ─────────────────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 64px 24px 80px;
}

.page-inner {
  width: min(100%, calc(var(--page-max) - 48px));
  margin: 0 auto;
}

/* ── Page header ──────────────────────────────────────────────────────────── */
.page-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.page-eyebrow,
.page-header .page-eyebrow {
  display: block;
  margin-top: 0;
  line-height: 1.4;
  font-size: var(--text-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--primary-ink);
  margin-bottom: 12px;
}

.page-header h1 {
  font-size: var(--text-page-title);
  font-weight: 800;
  color: var(--txt);
  letter-spacing: var(--tracking-heading);
  line-height: var(--leading-heading);
}

.page-header p {
  margin-top: 14px;
  font-size: var(--text-lead);
  color: var(--txt-3);
  line-height: 1.6;
}

.page-updated {
  margin-top: 14px;
  font-size: var(--text-caption);
  color: var(--txt-4);
  letter-spacing: 0.01em;
}

.page-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: var(--text-caption);
  color: var(--txt-3);
  line-height: 1;
}

.page-meta-chip strong {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-4);
}

/* Support guide pages use a flat metadata row, not pill chips. */
.guide-shell .page-meta-list {
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.guide-shell .page-meta-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 1.55;
}

.guide-shell .page-meta-chip + .page-meta-chip {
  border-top: 1px solid var(--border);
}

.guide-shell .page-meta-chip strong {
  font-size: var(--text-caption);
  letter-spacing: var(--tracking-label);
}

/* ── Prose content ────────────────────────────────────────────────────────── */
.prose {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.prose-section {
  padding: 0;
}

.prose-section h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  color: var(--txt);
  margin-bottom: 14px;
}

.prose-section + .prose-section {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* Body copy keeps a readable measure even on the 1120px page grid. */
.prose-section p,
.prose-section ul,
.prose-section--highlight {
  max-width: 72ch;
}

.prose-section--highlight {
  max-width: calc(72ch + 50px);
}

.prose > p {
  max-width: 60ch;
}

.prose-section p {
  font-size: var(--text-body);
  color: var(--txt-2);
  line-height: var(--leading-prose);
  margin-bottom: 12px;
}

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

.prose-section a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.prose-section a:hover { text-decoration: underline; }

.prose-section ul {
  padding-left: 20px;
  font-size: var(--text-body);
  color: var(--txt-2);
  line-height: var(--leading-prose);
}

.prose-section ul li { margin-bottom: 6px; }

.prose-section--highlight {
  padding: 22px 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ── Inline code within prose ─────────────────────────────────────────────── */
.prose-code {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--txt-2);
}


@media (max-width: 900px) {
  .page-inner { width: min(100%, 980px); }
}
@media (max-width: 720px) {
  .page-content { padding: 40px 20px 48px; }
  .page-header { margin-bottom: 32px; }
  .prose { gap: 24px; }
  .prose-section + .prose-section { padding-top: 24px; }
  .prose-section--highlight { border-radius: var(--radius-card); }
}
@media (max-width: 640px) {
  .page-content { padding: 32px 20px 40px; }
  .page-meta-list { gap: 8px; }
  .page-meta-chip { width: 100%; justify-content: space-between; }
  .prose-section--highlight { padding: 18px 20px; }
}
