/* Reading surface, loaded only on posts. Shared page and archive styles stay in style.css. */
.single-post {
  --article-ink: #242a30;
  --article-muted: #646b72;
  --article-rule: #e6e8e9;
  --article-measure: 720px;
  --article-serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  background: #fff;
}

.single-post::before { display: none; }
.single-post .reading-progress { height: 2px; box-shadow: none; }
.single-post .site-header {
  border-color: var(--article-rule);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: none;
}
.single-post .site-header .wp-block-site-logo img { filter: brightness(0.6) saturate(1.6); }
.single-post .site-header__descriptor,
.single-post .site-header__institutional a,
.single-post .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content {
  color: #46515d;
}
.single-post .site-header .wp-block-navigation__responsive-container-open { color: var(--article-ink); }
.single-post .site-header__panel-button .wp-block-button__link {
  color: var(--article-ink);
  border-color: #dce1e5;
  background: #fff;
}
.single-post .site-header__cta .wp-block-button__link { box-shadow: none; }
.single-post :where(a, button, summary, [tabindex]):focus-visible { outline-color: #086cb4; }

.article-shell { color: var(--article-ink); }
.article-hero {
  padding: 48px 24px 0;
  overflow: visible;
  color: var(--article-ink);
  background: #fff;
}
.article-hero::before,
.article-hero::after { display: none; }
.article-hero > .wp-block-group.article-heading {
  width: 100%;
  max-width: var(--article-measure);
  margin: 0 auto;
}
.article-context { gap: 12px 24px; margin: 0 0 28px; }
.article-back { margin: 0; font-size: 0.78rem; }
.article-back a { color: var(--article-muted); text-decoration: none; }
.article-back a:hover { color: #075e9f; }
.article-kicker { margin: 0; padding: 0; line-height: 1.5; }
.article-kicker a {
  color: #076295;
  font-family: var(--wp--preset--font-family--manrope);
  font-size: 0.69rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}
.article-hero .wp-block-post-title {
  max-width: none;
  margin: 0;
  color: #192229;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.14;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.article-deck {
  max-width: none;
  margin: 20px 0 0;
  color: var(--article-muted);
  font-size: 1.2rem;
  line-height: 1.55;
}
.article-deck p { margin: 0; }
.article-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 28px 0 0;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--article-rule);
  color: var(--article-muted);
}
.article-author { position: relative; min-height: 44px; padding-left: 58px; }
.article-author .wp-block-post-author { margin: 0; }
.article-author .wp-block-post-author__avatar {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  margin: 0;
}
.article-author .wp-block-post-author__avatar img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.article-author .wp-block-post-author__name,
.article-author .wp-block-post-author__name a {
  margin: 0;
  color: var(--article-ink);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}
.article-publication {
  gap: 0 10px;
  margin: 4px 0 0;
  color: var(--article-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}
.article-publication > * { margin: 0; }
.article-publication .reading-time::before { content: "·"; padding-right: 10px; }
.article-share-button {
  flex: 0 0 auto;
  min-height: 40px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid #d6dade;
  border-radius: 24px;
  color: #3d474f;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 600;
}
.article-share-button:hover,
.article-share-button:focus-visible { color: #075e9f; border-color: #7ba0ba; background: #f7fafc; }
.article-heading > p:has(> .updated-date) { margin: 12px 0 -12px; }
.article-heading .updated-date {
  display: block;
  color: var(--article-muted);
  font-size: 0.7rem;
}
.article-hero .article-featured {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 36px auto 0;
  border: 0;
  border-radius: 3px;
  opacity: 1;
  box-shadow: none;
  transform: none;
}
.article-hero .article-featured img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  filter: none;
}
.article-layout {
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: var(--article-measure);
  margin: 0 auto;
  padding: 32px 0 0;
}
.article-toc {
  margin: 0 0 36px;
  padding: 0;
  border-top: 1px solid var(--article-rule);
  border-bottom: 1px solid var(--article-rule);
  background: #fff;
}
.article-toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  color: #505b64;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc summary::after {
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
}
.article-toc[open] summary::after { transform: rotate(225deg); }
.article-toc .uiless-toc { margin: 0; padding: 0 0 22px; }
.article-toc .uiless-toc__title { display: none; }
.article-toc .uiless-toc ol { gap: 2px; }
.article-toc .uiless-toc li { display: block; }
.article-toc .uiless-toc li::before { display: none; }
.article-toc .uiless-toc a {
  padding: 10px 12px;
  border-radius: 3px;
  color: #4a5965;
  font-size: 0.84rem;
  font-weight: 500;
}
.article-toc .uiless-toc a:hover,
.article-toc .uiless-toc a.is-current { color: #075e9f; background: #f0f6f9; }
.article-content {
  width: 100%;
  max-width: var(--article-measure);
  color: var(--article-ink);
  font-family: var(--article-serif);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.008em;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.article-content.has-global-padding { padding-inline: 0; }
.article-content p,
.article-content ul,
.article-content ol { margin-block: 1.35em; }
.article-content > :first-child { margin-top: 0; }
.article-content h2,
.article-content h3 {
  color: #202a32;
  font-family: var(--wp--preset--font-family--manrope);
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.3;
  scroll-margin-top: 108px;
  text-wrap: pretty;
}
.article-content h2 { margin: 2.2em 0 0.8em; font-size: 1.75rem; }
.article-content h3 { margin: 1.8em 0 0.7em; font-size: 1.3rem; }
.article-content :is(ul, ol) { padding-left: 1.25em; }
.article-content li { padding-left: 0.2em; }
.article-content li + li { margin-top: 0.65em; }
.article-content li::marker { color: #526371; font-variant-numeric: tabular-nums; }
.article-content a {
  color: #1b596f;
  font-weight: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
}
.article-content a:hover { color: #075e9f; text-decoration-thickness: 2px; }
.article-content blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid #1192bc;
  color: #344a56;
  font-size: 1.45rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
}
.article-content figcaption {
  font-family: var(--wp--preset--font-family--manrope);
  color: var(--article-muted);
  font-size: 0.78rem;
  text-align: center;
}
.article-content .wp-block-image img { border-radius: 3px; }
.article-content :is(table, .wp-block-button__link) { font-family: var(--wp--preset--font-family--manrope); font-size: 0.9rem; }
.article-content pre { padding: 24px; line-height: 1.7; }
.article-tags { margin: 48px 0 0; padding: 0; border: 0; font-size: 0; }
.article-tags a {
  margin: 0 8px 8px 0;
  padding: 6px 13px;
  border: 0;
  border-radius: 20px;
  color: #535e67;
  background: #f2f4f5;
  font-size: 0.75rem;
  font-weight: 500;
}
.article-tags a:hover { color: #075e9f; background: #e9f3f7; }
.author-box {
  margin: 28px 0 0;
  padding: 28px 0;
  border: 0;
  border-top: 1px solid var(--article-rule);
  border-bottom: 1px solid var(--article-rule);
  border-radius: 0;
  background: #fff;
}
.author-box .wp-block-post-author { gap: 0 16px; }
.author-box .wp-block-post-author__avatar { margin: 0; }
.author-box .wp-block-post-author__byline { color: var(--article-muted); font-size: 0.7rem; }
.author-box .wp-block-post-author__name a { color: var(--article-ink); text-decoration: none; }
.author-box .wp-block-post-author__bio { margin-bottom: 0; color: var(--article-muted); font-size: 0.85rem; }
.article-demo-cta {
  box-sizing: border-box;
  width: calc(100% - 48px);
  max-width: var(--article-measure);
  margin: 40px auto 0;
  padding: 32px;
  border: 1px solid #dbe8ed;
  border-radius: 5px;
  color: #485b67;
  background: #f5f9fa;
}
.article-demo-cta::before { display: none; }
.article-demo-cta .taxonomy-label { margin: 0 0 12px; color: #24667e; font-size: 0.66rem; }
.article-demo-cta h2 { margin: 0; color: #243c49; font-size: 1.65rem; letter-spacing: -0.03em; line-height: 1.25; }
.article-demo-cta p:not(.taxonomy-label) { margin: 14px 0 24px; font-size: 0.93rem; line-height: 1.65; }
.article-demo-cta .wp-block-button__link {
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 24px;
  color: #fff;
  background: #095c80;
  box-shadow: none;
  font-size: 0.8rem;
  font-weight: 650;
  white-space: normal;
}
.article-demo-cta .wp-block-button__link:hover { background: #07455f; transform: none; }
.related-posts {
  margin: 64px 0 0;
  padding: 56px 24px 80px;
  border-color: var(--article-rule);
  background: #fafbfb;
}
.related-posts > .alignwide { max-width: 840px; }
.related-posts .taxonomy-label { color: var(--article-muted); font-family: inherit; font-size: 0.7rem; letter-spacing: 0.06em; }
.related-posts .section-heading { margin: 8px 0 0; font-size: 1.8rem; line-height: 1.25; }
.related-posts__grid { display: block; margin-top: 24px; }
.related-post {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border: 0;
  border-top: 1px solid var(--article-rule);
  border-radius: 0;
  background: transparent;
}
.related-post > a { order: 2; flex: 0 0 160px; }
.related-post > p:empty { display: none; }
.related-post img { display: block; border-radius: 3px; aspect-ratio: 3 / 2; }
.related-post__body { flex: 1; min-width: 0; padding: 0; }
.related-post__meta { color: var(--article-muted); font-family: inherit; font-size: 0.73rem; text-transform: none; }
.related-post h3 { margin: 8px 0 0; font-size: 1.25rem; line-height: 1.4; letter-spacing: -0.02em; }

@media (max-width: 782px) {
  .article-hero { padding: 28px 22px 0; }
  .article-context { gap: 10px; margin-bottom: 24px; }
  .article-back { font-size: 0.74rem; }
  .article-kicker a { font-size: 0.63rem; letter-spacing: 0.04em; }
  .article-hero .wp-block-post-title { font-size: clamp(1.85rem, 7.8vw, 2.55rem); line-height: 1.18; letter-spacing: -0.035em; }
  .article-deck { margin-top: 16px; font-size: 1.05rem; line-height: 1.6; }
  .article-byline { flex-wrap: wrap; margin-top: 24px; padding-bottom: 22px; }
  .article-publication { font-size: 0.72rem; }
  .article-share-button { min-height: 40px; padding: 7px 14px; }
  .article-hero .article-featured { margin-top: 28px; }
  .article-hero .article-featured img { aspect-ratio: 3 / 2; }
  .article-layout { width: calc(100% - 44px); padding-top: 24px; }
  .article-toc { margin-bottom: 28px; }
  .article-content { font-size: 1.2rem; line-height: 1.72; }
  .article-content h2 { margin-top: 2em; font-size: 1.5rem; }
  .article-content h3 { font-size: 1.2rem; }
  .article-content blockquote { padding-left: 20px; font-size: 1.3rem; }
  .article-demo-cta { width: calc(100% - 44px); padding: 24px; }
  .article-demo-cta h2 { font-size: 1.45rem; }
  .related-posts { margin-top: 48px; padding: 40px 22px 48px; }
  .related-posts .section-heading { font-size: 1.5rem; }
  .related-post { gap: 16px; }
  .related-post > a { flex-basis: 92px; }
  .related-post h3 { font-size: 1rem; line-height: 1.4; }
}

@media print {
  .article-context, .article-share-button, .article-toc, .reading-progress { display: none; }
  .article-hero { padding-top: 0; }
  .article-content { font-size: 12pt; line-height: 1.6; }
  .article-layout { padding-top: 20px; }
  .article-content h2, .article-content h3 { break-after: avoid; }
}
