/*
 * GeneratePress bridge: gives page content (titles, headings, links, lists, breadcrumbs)
 * the design system's look. Tokens only. Header, menu and footer stay with the theme.
 * See design-system/MASTER.md §5.
 */

.entry-content {
  font-family: var(--adg-font-body);
  font-size: var(--adg-text-base);
  line-height: var(--adg-leading-body);
  color: var(--adg-color-text);
}

/* Prose stays at a readable width; tools, tables, grids and boxes use the full column. */
.entry-content > :where(p, ul, ol, h2, h3, h4, details, blockquote, .adg-byline, .adg-lede) { max-width: var(--adg-measure); }

.entry-title,
.entry-content :where(h2, h3, h4) {
  font-family: var(--adg-font-heading);
  color: var(--adg-color-heading);
  line-height: var(--adg-leading-tight);
  text-wrap: balance;
}
.entry-title { font-size: var(--adg-text-3xl); font-weight: var(--adg-weight-bold); margin-bottom: var(--adg-space-2); }
.entry-content h2 { font-size: var(--adg-text-2xl); margin: var(--adg-space-10) 0 var(--adg-space-4); }
.entry-content h3 { font-size: var(--adg-text-lg); margin: var(--adg-space-8) 0 var(--adg-space-3); }
.entry-content p { margin: 0 0 var(--adg-space-4); }
.entry-content .adg-lede { font-size: var(--adg-text-md); }

.entry-content a:not(.adg-btn):not(.adg-path-card) {
  color: var(--adg-color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
.entry-content a:not(.adg-btn):not(.adg-path-card):hover { color: var(--adg-color-link-hover); text-decoration-thickness: 2px; }
.entry-content sup a { text-decoration: none; }

/* GeneratePress gives lists a 3em left margin; the padding below does the indenting instead. */
.entry-content :where(ul, ol) { margin-left: 0; }
/* Plain lists only; component lists (chart legend, sources, breadcrumbs) have their own classes. */
.entry-content :where(ul, ol):not([class]) { margin: 0 0 var(--adg-space-5); padding-left: var(--adg-space-6); }
.entry-content :where(ul, ol):not([class]) > li + li { margin-top: var(--adg-space-2); }

.entry-content .adg-table--text td,
.entry-content .adg-table--text th { text-align: left; vertical-align: top; }

/* Breadcrumbs (Rank Math), printed above the page title by adg-tools.php. */
.adg-crumbs { margin-bottom: var(--adg-space-3); font-family: var(--adg-font-ui); font-size: var(--adg-text-sm); color: var(--adg-color-text-muted); }
.adg-crumbs p { margin: 0; }
.adg-crumbs a { color: var(--adg-color-link); text-decoration: underline; text-underline-offset: 0.15em; }
.adg-crumbs .separator { margin: 0 var(--adg-space-2); color: var(--adg-gray-400); }
