/* Critical above-the-fold styles, loaded early to avoid layout shift.
   Previously this also carried the old blog nav's styles; those went away
   with the global 2026 nav (assets/redesign-2026/css/nav-global.css) and only
   the nav offset + blog content typography remain. The !important flags are
   pre-existing and deliberate — the theme bundle otherwise wins these. */

/* The global nav is fixed and 72px tall (.site-nav-inner), so the page
   wrapper carries the offset instead. Mirrors --global-nav-offset from the
   design system; change both together if the bar height ever changes. */
.footer-reveal-cover {
	padding-top: 72px;
}

/* Static fallback for the value css-variables.js measures off .js-header.
   _section-articles.scss uses it inside `top: calc(...)`, and an unset custom
   property makes the whole calc invalid — so the sticky sidebar would lose its
   offset in the window before the ResizeObserver first fires. */
:root {
	--header-height: 72px;
}

.section-single-article__head h2, .section-articles__head h2, .article-single__body h2 {
	font-size: 36px !important;
	font-weight: 800 !important;
}

.section-single-article__head h1, .section-articles__head h1, .article-single__body h1 {
	font-size: 36px !important;
	font-weight: 800 !important;
}

.section-single-article__head .section-single-article__logo {
  font-size: 36px !important;
  font-weight: 800 !important;
}

/* Gap under the nav. The old fixed header was ~112px tall and content slid
   under it, so these two sections carried 60/70px of padding as clearance on
   top of the theme's own --top-margin (8.8rem). .footer-reveal-cover now
   provides the nav offset explicitly, so that clearance would double up —
   hence margin-top here instead, overriding the `margin-block` shorthand from
   _section-articles.scss (same specificity, and this file loads after the
   theme bundle). --top-margin itself is left alone: it also feeds the sticky
   sidebar's `top: calc(...)`, which should keep its designed offset. */
.section-single-article,
.section-articles {
	margin-top: 40px;
	padding-top: 0;
}

.section-single-article .search-form-container {
	margin-top: 2px;
}

.article-single__body h3 {
	font-size: 32px !important;
	font-weight: 800 !important;
}

.article-single__body h4 {
	font-size: 24px !important;
	font-weight: 800 !important;
}

.article-single__body ul {
	list-style: disc;
}

.article-single__body ol {
	list-style: decimal;
}

.article-single__body ol li {
	padding-left: 4px;
}

.article-single__body a {
	color: #2472B2;
	font-weight: 500;
	text-decoration: underline;
}

.article-single__body a.wp-block-button__link {
	color: #fff;
	text-decoration: none;
}

.article__title h5, .article-single__body h5 {
	font-size:  24px !important;
	font-weight: 800 !important;
}

.article__title h6, .article-single__body h6 {
	font-weight: 800 !important;
}

.article-single__title h1 {
	font-size:  42px !important;
}

.article-single__body h2,
.article-single__body h3,
.article-single__body h4,
.article-single__body h5,
.article-single__body h6 {
	margin-bottom: 0.6em;
	margin-top: 1em;
	line-height: 1.33;
}

.article-single__body h1 {
	font-size: 4.2rem !important;
}
.article-single__body h2 {
	font-size: 3.3rem !important;
}
.article-single__body h3 {
	font-size: 2.9rem !important;
}
.article-single__body h4 {
	font-size: 2.5rem !important;
}
.article-single__body h5 {
	font-size: 2.1rem !important;
}
.article-single__body h6 {
	font-size: 1.5rem !important;
}

.article-single__body p,
.article-single__body ul,
.article-single__body ol,
.article-single__body dl,
.article-single__body hr,
.article-single__body table,
.article-single__body blockquote {
	margin-bottom: 0.6em
}

@media screen and (max-width: 1024px) {
	.article__title h5 {
		font-size: 22px !important;
	}

	.article-single__title h1 {
		font-size:  34px !important;
	}

	.section-single-article__head h2, .section-articles__head h2 {
		font-size: 26px !important;
		font-weight: 700 !important;
	}

  .section-single-article__head .section-single-article__logo,
  .section-articles__head .section-single-article__logo {
    font-size: 26px !important;
    font-weight: 700 !important;
  }

  .section-single-article__head h1, .section-articles__head h1 {
		font-size: 26px !important;
		font-weight: 700 !important;
	}

	/* Same reasoning as the desktop rule above — the old header was 49px tall
	   on mobile and these carried its clearance. */
	.section-articles,
	.section-single-article {
		margin-top: 24px;
		padding-top: 0;
	}
}
