/* Shared page rhythm and type for the internal-page layout. */
.internal-page {
  --page-heading: clamp(2.125rem, 1.45rem + 2.3vw, 3.5rem);
  --section-heading: clamp(1.625rem, 1.4rem + 1vw, 2.25rem);
  --subheading: clamp(1.125rem, 1rem + .42vw, 1.375rem);
  --page-lead: clamp(1rem, .95rem + .3vw, 1.125rem);
  --content-start: clamp(28px, 4vw, 64px);
  --content-end: clamp(36px, 5vw, 64px);
  --reading-width: 44rem;
  --wide-width: 60rem;
  --flow-gap: 1rem;
}
.internal-page main h1:where(:not(.markdown-preview *)) { font-size: var(--page-heading); line-height: 1.08; letter-spacing: -.04em; font-weight: 640; }
.internal-page main h2:where(:not(.markdown-preview *)) { font-size: var(--section-heading); line-height: 1.14; letter-spacing: -.028em; font-weight: 600; }
.internal-page main h3:where(:not(.markdown-preview *)) { font-size: var(--subheading); line-height: 1.25; letter-spacing: -.012em; font-weight: 600; }
.internal-page main :is(h4,h5,h6):where(:not(.markdown-preview *)) { font-size: 1rem; line-height: 1.35; letter-spacing: 0; font-weight: 600; }
.internal-page main :is(.lead,.guide-lead,.guide-dek,.walkthrough-lede,.support-intro,.search-hero h1 + p) {
  font-size: var(--page-lead);
  line-height: 1.5;
  color: var(--ink-2);
}
.internal-page :is(.guide-layout,.document,.tool-page,.tools-directory,.search-page) {
  padding-block: var(--content-start) var(--content-end);
}
.internal-page :is(.guide-article,.document) {
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.internal-page :is(.guide-article,.content-index,.walkthrough-accurate,.walkthrough-more) {
  color: var(--ink);
}
.internal-page :is(.guide-article,.document) :where(:is(ol,ul):not(.toc-list)) { padding-inline-start: 1.4em; }
.internal-page :is(.guide-article,.document) :where(ul:not(.toc-list)) { list-style: disc; }
.internal-page :is(.guide-article,.document) :where(:not(.toc-list) > li + li) { margin-top: .45em; }
.internal-page :is(.guide-article,.document,.workflow-extra) li::marker { color: var(--indigo); font-weight: 600; }
.internal-page :is(.guide-article,.document) :where(a:not(.btn,.button)) { color: var(--indigo-ink); }
.internal-page :is(.guide-article,.document) :where(a:not(.btn,.button)):hover { text-decoration-thickness: 2px; }
.internal-page :is(.guide-article,.document) table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.internal-page :is(.guide-article,.document) :is(th,td) { padding: 12px 14px 12px 0; text-align: start; vertical-align: top; border-bottom: 1px solid var(--rule); }
.internal-page :is(.guide-article,.document) thead th { padding-top: 0; font-size: .875rem; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.internal-page :is(.guide-article,.document) tbody th { font-weight: 600; }

/* Card titles share a visual role even where their semantic levels differ. */
.internal-page main :is(.directory-card,.guide-list-card) :is(h2,h3),
.internal-page main .search-result strong { font-size: var(--subheading); line-height: 1.25; letter-spacing: -.012em; font-weight: 600; }

/* Existing editorial CTAs use the same sizing and shape as the shared buttons. */
.internal-page main :is(.editorial-link,.walkthrough-primary,.document .button,.guide-cta .button) {
  font: 600 1rem/1.2 var(--font);
  justify-content: center;
  min-height: 52px;
  padding-inline: 26px;
  border-radius: 999px;
  text-decoration: none;
}
.internal-page main :is(.guide-summary,.editorial-answer,.article-takeaway,.terms-notice) { border-radius: 16px; }
@media (max-width: 640px) {
  .internal-page :is(.guide-article,.document) { font-size: 1rem; }
}
