/* News only. The font preset in theme.json is the shared family source.
   The measured PRD scale is retained; no site chrome or other post type matches. */
:is(.fip-single.type-post .fip-entry-content, .editor-styles-wrapper) {
  --fip-editorial-font: var(--wp--preset--font-family--institutional-serif);
  --fip-editorial-size: clamp(1.15rem, 2vw, 1.35rem);
  --fip-editorial-text: rgba(44, 44, 42, 0.9);
  --fip-editorial-heading: var(--wp--preset--color--primary);
  font-family: var(--fip-editorial-font);
  font-size: var(--fip-editorial-size);
  line-height: 1.8;
  color: var(--fip-editorial-text);
}

/* Override pasted font declarations without rewriting or stripping any HTML.
   Weight and style remain semantic (strong/em), as do links and tables. */
:is(.fip-single.type-post .fip-entry-content, .editor-styles-wrapper) :where(p, ul, ol, li, blockquote, figcaption, cite, table, td, th, h1, h2, h3, h4, h5, h6, span, font, strong, b, em, i, a) {
  font-family: var(--fip-editorial-font) !important;
  overflow-wrap: break-word;
}

:is(.fip-single.type-post .fip-entry-content, .editor-styles-wrapper) :where(p, ul, ol, li, blockquote, table) {
  font-size: var(--fip-editorial-size) !important;
  line-height: 1.8 !important;
}

:is(.fip-single.type-post .fip-entry-content, .editor-styles-wrapper) :where(span, font, strong, b, em, i, a, td, th) {
  font-size: inherit !important;
  line-height: inherit !important;
}

:is(.fip-single.type-post .fip-entry-content, .editor-styles-wrapper) :where(p, li, ul, ol, blockquote, figcaption, cite, span, font, strong, b, em, i, td, th):is([style], .has-text-color, .has-background) {
  color: inherit !important;
  background-color: transparent !important;
}

:is(.fip-single.type-post .fip-entry-content, .editor-styles-wrapper) :where(h1, h2, h3, h4, h5, h6) {
  color: var(--fip-editorial-heading) !important;
  font-weight: 700;
  line-height: 1.1 !important;
  letter-spacing: -0.015em;
  text-transform: none;
}

:is(.fip-single.type-post .fip-entry-content, .editor-styles-wrapper) h1 { font-size: calc(var(--fip-editorial-size) * 2) !important; }
:is(.fip-single.type-post .fip-entry-content, .editor-styles-wrapper) h2 { font-size: calc(var(--fip-editorial-size) * 1.5) !important; }
:is(.fip-single.type-post .fip-entry-content, .editor-styles-wrapper) h3 { font-size: calc(var(--fip-editorial-size) * 1.17) !important; }
:is(.fip-single.type-post .fip-entry-content, .editor-styles-wrapper) h4 { font-size: var(--fip-editorial-size) !important; }
:is(.fip-single.type-post .fip-entry-content, .editor-styles-wrapper) h5 { font-size: calc(var(--fip-editorial-size) * 0.83) !important; }
:is(.fip-single.type-post .fip-entry-content, .editor-styles-wrapper) h6 { font-size: calc(var(--fip-editorial-size) * 0.67) !important; }

:is(.fip-single.type-post .fip-entry-content, .editor-styles-wrapper) a {
  color: var(--fip-editorial-heading) !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
:is(.fip-single.type-post .fip-entry-content, .editor-styles-wrapper) a:hover {
  color: var(--wp--preset--color--gold) !important;
}

/* Pasted caption sizes must not override the ordinary HTML caption default. */
:is(.fip-single.type-post .fip-entry-content, .editor-styles-wrapper) figcaption[style*="font-size"] {
  font-size: inherit !important;
}
