.hh-article-page {
  --hh-article-red: #7c0a0a;
  --hh-article-dark: #342b2b;
  --hh-article-cream: #f6f4f1;
  --hh-article-gutter: 24px;
  --hh-article-surface: #fff;
  background: var(--hh-article-surface);
  color: var(--hh-article-dark);
  font-family: "HH Inter", Inter, Arial, sans-serif;
}

.hh-article-page .hh-article-wrap {
  width: min(1280px, calc(100% - 2 * var(--hh-article-gutter)));
  margin-inline: auto;
}

.hh-article-page .hh-article-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hh-article-dark);
  color: #fff;
}

.hh-article-page .hh-article-hero-image,
.hh-article-page .hh-article-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hh-article-page .hh-article-hero-image { object-fit: cover; object-position: center; }
.hh-article-page .hh-article-hero::before {
  z-index: 0;
  content: "";
  background: linear-gradient(90deg, rgb(0 0 0 / 72%), rgb(0 0 0 / 42%));
}

.hh-article-page .hh-article-hero-inner {
  --hh-hero-padding: clamp(134px, 9.8vw, 142px);
  --hh-hero-offset: 45px;
  position: relative;
  box-sizing: border-box;
  display: grid;
  align-content: center;
  min-height: 368px;
  padding-block: calc(var(--hh-hero-padding) + var(--hh-hero-offset))
    calc(var(--hh-hero-padding) - var(--hh-hero-offset));
}
.hh-article-page .hh-article-hero h1 {
  margin: 0 0 16px;
  min-width: 0;
  color: inherit;
  font: 700 40px/1.2 "HH Inter", Inter, Arial, sans-serif;
  overflow-wrap: anywhere;
  text-align: left;
}

.hh-article-page .hh-article-meta {
  --hh-hero-meta-color: #d0cdcd;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.hh-article-page .hh-article-meta time { color: var(--hh-hero-meta-color); letter-spacing: .02em; }

/* The metadata uses the flex gap as its only separator. */
.hh-article-page .hh-article-hero .hh-article-meta > time::after,
.hh-article-page .hh-article-hero .hh-article-meta > time + .hh-article-categories::before,
.hh-article-page .hh-article-hero .hh-article-meta > time + .hh-article-categories > a:first-child::before {
  content: none;
}

.hh-article-page .hh-article-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.hh-article-page .hh-article-categories a {
  box-sizing: border-box;
  max-width: 100%;
  padding: 4px 12px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  background: rgb(35 32 32 / 66%);
  color: var(--hh-hero-meta-color);
  text-decoration: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hh-article-page .hh-article-categories a:is(:hover, :focus-visible) {
  background: rgb(35 32 32 / 80%);
  text-decoration: underline;
}

.hh-article-page .hh-article-reading { padding-block: 64px; }
.hh-article-page .hh-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 280px);
  gap: 40px;
  justify-content: space-between;
  align-items: start;
}

.hh-article-page :is(.hh-article-main, .hh-article-sidebar, .hh-article-content) { min-width: 0; }
.hh-article-page .hh-article-content {
  --hh-prose-size: 16px;
  --hh-embedded-size: 17px;
  --hh-embedded-leading: 1.55;
  --hh-prose-weight: 400;
  --hh-prose-bold-weight: 700;
  --hh-prose-bold-color: #2a1e16;
  --hh-prose-h3-weight: 700;
  --hh-prose-paragraph-margin: 0 16px;
  --hh-prose-list-margin: 0 16px;
  --hh-prose-list-gap: 5px;
  --hh-prose-h2-margin: 46px 14px;
  --hh-prose-h3-margin: 34px 11px;
  --hh-prose-h4-margin: 28px 9px;
  color: #494141;
  font-size: var(--hh-prose-size);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.hh-article-page .hh-article-content :is(h2, h3, h4) {
  color: var(--hh-article-red);
  font-family: inherit;
  line-height: 1.28;
  margin-block: var(--hh-prose-block-margin);
  margin-inline: 0;
}

.hh-article-page .hh-article-content h2 { --hh-prose-block-margin: var(--hh-prose-h2-margin); font-size: 28px; font-weight: 700; }
.hh-article-page .hh-article-content h3 { --hh-prose-block-margin: var(--hh-prose-h3-margin); font-size: 22px; font-weight: var(--hh-prose-h3-weight); }
.hh-article-page .hh-article-content h4 { --hh-prose-block-margin: var(--hh-prose-h4-margin); font-size: 18px; font-weight: 600; }
.hh-article-page .hh-article-content [id] { scroll-margin-top: 96px; }
.hh-article-page .hh-article-content p { margin-block: var(--hh-prose-paragraph-margin); }
.hh-article-page .hh-article-content :is(ul, ol) { margin-block: var(--hh-prose-list-margin); }

/* Leave explicit block font weights, including inherited choices, in control. */
:where(.hh-article-page .hh-article-content :is(p, ul, ol):not(
  :is([style*="font-weight" i], [style*="font:" i], [class*="-font-weight"]) *
)) {
  font-weight: var(--hh-prose-weight, inherit);
}

:where(.hh-article-page .hh-article-content :is(p, ul, ol)) :is(strong, b) {
  font-weight: var(--hh-prose-bold-weight, bolder);
}

:where(.hh-article-page .hh-article-content :is(p, ul, ol) :is(strong, b):not(
  :is(a, button, [role="button"], h1, h2, h3, h4, h5, h6) *
)) {
  color: var(--hh-prose-bold-color, inherit);
}

/* Keep the first revision's defaults inside embedded content and notes. */
:where(.hh-article-page .hh-article-content
  :is(.lwptoc, .lwptoc_i, .footnotes, .wp-block-footnotes, [role="doc-endnotes"],
      blockquote, .wp-block-pullquote, figure, .wp-block-image, .wp-caption,
      .wp-caption-text, .hh-article-table-scroll, table, nav, .wp-block-navigation, .wp-block-navigation__container, aside)) {
  --hh-prose-weight: initial;
  --hh-prose-bold-weight: initial;
  --hh-prose-bold-color: initial;
  --hh-prose-h3-weight: 600;
  --hh-prose-paragraph-margin: 0 16px;
  --hh-prose-list-margin: 0 16px;
  --hh-prose-h2-margin: 1.05em .45em;
  --hh-prose-h3-margin: 1.05em .45em;
  --hh-prose-h4-margin: 1.05em .45em;
  font-size: var(--hh-embedded-size);
  line-height: var(--hh-embedded-leading);
}

.hh-article-page .hh-article-content .lwptoc .lwptoc_i { max-inline-size: 100%; }

.hh-article-page .hh-article-content .lwptoc .lwptoc_item > a {
  font-family: "HH Inter", Inter, Arial, sans-serif;
  font-size: var(--hh-prose-size);
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}

.hh-article-page .hh-article-content :is(ul, ol):not(:where(
  .footnotes, .wp-block-footnotes, [role="doc-endnotes"], .wp-block-navigation__container,
  :is(.lwptoc, .lwptoc_i, .footnotes, .wp-block-footnotes, [role="doc-endnotes"], .wp-block-navigation__container,
      blockquote, .wp-block-pullquote, figure, .wp-block-image, .wp-caption, table, nav, .wp-block-navigation, aside) *
)) > li + li {
  margin-block-start: var(--hh-prose-list-gap);
}

.hh-article-page .hh-article-content li > :is(ul, ol) { margin-block-end: 0; }
.hh-article-page .hh-article-content :is(figure, blockquote) { max-width: 100%; margin-inline: 0; }
.hh-article-page .hh-article-content :is(figure, .wp-block-footnotes) { margin-block: 16px; }

.hh-article-page .hh-article-content :is(
  ol.wp-block-footnotes, ol.footnotes, ol[role="doc-endnotes"],
  :is(.footnotes, .wp-block-footnotes, [role="doc-endnotes"]) > ol
) {
  margin-inline: 0;
  padding-inline: 0;
  color: #494141;
  font-family: "HH Inter", Inter, Arial, sans-serif;
  font-size: var(--hh-prose-size);
  font-weight: 400;
  line-height: 1.45;
  list-style: decimal outside;
}

/* Anchor the list counter at the text edge and indent every note line. */
.hh-article-page .hh-article-content :is(
  ol.wp-block-footnotes, ol.footnotes, ol[role="doc-endnotes"],
  :is(.footnotes, .wp-block-footnotes, [role="doc-endnotes"]) > ol
) > li {
  position: relative;
  padding-inline-start: 3.5ch;
}

.hh-article-page .hh-article-content :is(
  ol.wp-block-footnotes, ol.footnotes, ol[role="doc-endnotes"],
  :is(.footnotes, .wp-block-footnotes, [role="doc-endnotes"]) > ol
) > li::marker { content: ""; }

.hh-article-page .hh-article-content :is(
  ol.wp-block-footnotes, ol.footnotes, ol[role="doc-endnotes"],
  :is(.footnotes, .wp-block-footnotes, [role="doc-endnotes"]) > ol
) > li::before {
  content: counter(list-item) ".";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
}

/* Keep the preceding authored separator when the notes add their own rule. */
.hh-article-page .hh-article-content :is(hr, .wp-block-separator)
  + :is(.footnotes, .wp-block-footnotes, [role="doc-endnotes"])
  > hr:first-child:not([id], [class]):has(+ ol) {
  display: none;
}

.hh-article-page .hh-article-content img { max-width: 100%; height: auto; border-radius: 8px; }
.hh-article-page .hh-article-content blockquote {
  margin-block: 18px;
  padding: 12px 18px;
  border-inline-start: 3px solid var(--hh-article-red);
  background: var(--hh-article-cream);
}

.hh-article-page .hh-article-content blockquote > :last-child { margin-block-end: 0; }
.hh-article-page .hh-article-content pre { max-width: 100%; overflow-x: auto; }
.hh-article-page .hh-article-content :is(.wp-block-table, .hh-article-table-scroll) {
  max-width: 100%;
  overflow-x: auto;
  margin-block: 16px;
}

.hh-article-page .hh-article-content > :first-child { margin-block-start: 0; }
.hh-article-page .hh-article-content .hh-article-table-scroll table { margin-block-end: 0; }
.hh-article-page .hh-article-content :is(td, th) { overflow-wrap: anywhere; }
.hh-article-page .hh-article-content table:where(:not(.hh-article-table-scroll table, .wp-block-table table)) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.hh-article-page :is(.hh-article-content, .hh-article-content-pages, .hh-article-recent, .hh-article-nav, .hh-article-main :where(#comments)) a:where(:not(.wp-element-button, .wp-block-button__link, [role="button"])) {
  color: var(--hh-article-dark);
}

.hh-article-page .hh-article-content a:where(:not(.wp-element-button, .wp-block-button__link, [role="button"])) { text-decoration: underline; }
.hh-article-page :is(.hh-article-content, .hh-article-content-pages, .hh-article-main :where(#comments)) a:where(:not(.wp-element-button, .wp-block-button__link, [role="button"])):is(:hover, :focus-visible) {
  color: #1f1f1f;
  text-decoration: underline;
}

.hh-article-page .hh-article-content-pages { margin-block: 24px; }
.hh-article-page .hh-article-sidebar { display: grid; gap: 20px; overflow-wrap: anywhere; }
.hh-article-page .hh-article-panel { padding: 20px; border: 1px solid #e6e2dc; border-radius: 8px; }
.hh-article-page .hh-article-panel h2 { margin: 0 0 16px; font-size: 20px; font-weight: 700; }
.hh-article-page .hh-article-profile {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 12px;
  text-align: center;
}

.hh-article-page .hh-article-profile h3 { font-size: 18px; font-weight: 700; margin: 0; }
.hh-article-page :is(.hh-article-avatar, .hh-article-thumb) {
  display: grid;
  flex: none;
  place-items: center;
  background: var(--hh-article-cream);
  color: var(--hh-article-red);
  overflow: hidden;
}

.hh-article-page .hh-article-avatar { width: 120px; height: 120px; border-radius: 50%; font-weight: 700; }
.hh-article-page .hh-article-thumb { width: 52px; height: 48px; border-radius: 8px; }
.hh-article-page :is(.hh-article-avatar, .hh-article-thumb) img { width: 100%; height: 100%; object-fit: cover; }
.hh-article-page .hh-article-bio { font-size: 15px; font-weight: 400; line-height: 1.6; text-align: left; }
.hh-article-page .hh-article-bio p:last-child { margin-block-end: 0; }
.hh-article-page .hh-article-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hh-article-page .hh-article-recent a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.hh-article-page .hh-article-recent-copy { display: grid; gap: 4px; min-width: 0; }
.hh-article-page .hh-article-recent-title { font-size: 16px; }
.hh-article-page .hh-article-recent-date { color: #666; font-size: 14px; font-weight: 400; }
.hh-article-page :is(.hh-article-recent-title, .hh-article-nav-title) {
  font-weight: 700;
  overflow-wrap: anywhere;
  transition: color 200ms ease;
}

.hh-article-page :is(.hh-article-recent, .hh-article-nav) a:any-link { text-decoration: none; }
.hh-article-page :is(.hh-article-recent, .hh-article-nav) a:is(:hover, :active, :focus-visible)
  :is(.hh-article-recent-title, .hh-article-nav-title) {
  color: var(--hh-article-red);
}
.hh-article-page :is(.hh-article-recent, .hh-article-nav) a:active { background-color: var(--hh-article-cream); }

.hh-article-page .hh-article-nav:has(.post-navigation) {
  margin-block-start: 38px;
  border-block-start: 1px solid #e6e2dc;
  padding-block-start: 22px;
}
.hh-article-page .hh-article-nav .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hh-article-page .hh-article-nav .nav-next { grid-column: 2; }
.hh-article-page :is(.hh-article-sidebar > .hh-article-panel, .hh-article-nav .nav-links a) {
  box-shadow:
    0 3px 8px rgba(52, 43, 43, 0.08),
    0 12px 30px rgba(52, 43, 43, 0.14);
}

.hh-article-page .hh-article-nav a {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 4px 10px;
  box-sizing: border-box;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid #e6e2dc;
  border-radius: 8px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.hh-article-page .hh-article-nav .nav-previous > a {
  --hh-article-nav-arrow: "←";
  --hh-article-nav-arrow-column: 1;
  --hh-article-nav-text-column: 2;
  grid-template-columns: 28px minmax(0, 1fr);
}

.hh-article-page .hh-article-nav .nav-next > a {
  --hh-article-nav-arrow: "→";
  --hh-article-nav-arrow-column: 2;
  --hh-article-nav-text-column: 1;
  grid-template-columns: minmax(0, 1fr) 28px;
}

.hh-article-page .hh-article-nav a > :is(.hh-article-nav-label, .hh-article-nav-title) {
  grid-column: var(--hh-article-nav-text-column);
}

.hh-article-page .hh-article-nav :is(.nav-previous, .nav-next) > a::before {
  content: var(--hh-article-nav-arrow) / "";
  grid-column: var(--hh-article-nav-arrow-column);
  grid-row: 1 / 3;
  place-self: center;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  inline-size: 28px;
  block-size: 28px;
  border: 1px solid #e6e2dc;
  border-radius: 50%;
  background: var(--hh-article-surface);
  color: var(--hh-article-red);
  font-size: 14px;
  line-height: 1;
}

.hh-article-page .hh-article-nav-label { grid-row: 1; color: var(--hh-article-red); font-size: 15px; font-weight: 600; }
.hh-article-page .hh-article-nav-title { grid-row: 2; align-self: start; font-size: 18px; }
.hh-article-page :is(a, .hh-article-table-scroll):focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hh-article-page .hh-article-cta { padding-block: 50px; background: var(--hh-article-surface); text-align: center; }
.hh-article-page .hh-article-cta h2 { margin: 0 0 20px; color: #1f1f1f; font-size: 26px; font-weight: 700; }
.hh-article-page .hh-article-cta h2 span { color: var(--hh-article-red); }
.hh-article-page .hh-article-cta a {
  display: inline-block;
  padding: 15px 22px;
  border-radius: 6px;
  background: var(--hh-article-red);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 200ms ease, color 200ms ease, background-color 200ms ease;
}

.hh-article-page .hh-article-cta a:is(:hover, :focus-visible) {
  background: var(--e-global-color-a765328, #f9f5f2);
  color: #600707;
}

@media (hover: hover) and (pointer: fine) {
  .hh-article-page .hh-article-cta a:hover { transform: scale(1.02); }
}

@media (max-width: 1024px) {
  .hh-article-page .hh-article-hero-inner { --hh-hero-padding: 48px; --hh-hero-offset: 30px; min-height: 255px; }
  .hh-article-page .hh-article-hero h1 { font-size: 34px; }
  .hh-article-page .hh-article-reading { padding-block: 48px; }
  .hh-article-page .hh-article-layout { grid-template-columns: minmax(0, 820px); gap: 32px; justify-content: start; }
  .hh-article-page .hh-article-cta { padding-block: 40px; }
  .hh-article-page .hh-article-cta h2 { font-size: 24px; }
  .hh-article-page .hh-article-cta a { font-size: 15px; }
}

@media (max-width: 767px) {
  .hh-article-page { --hh-article-gutter: 20px; }
  .hh-article-page .hh-article-hero-inner { --hh-hero-padding: 36px; --hh-hero-offset: 15px; min-height: 180px; }
  .hh-article-page .hh-article-hero h1 { font-size: 28px; }
  .hh-article-page .hh-article-reading { padding-block: 36px; }
  .hh-article-page .hh-article-content {
    --hh-prose-size: 15px;
    --hh-embedded-size: 16px;
    --hh-embedded-leading: 1.6;
    --hh-prose-paragraph-margin: 0 14px;
    --hh-prose-list-margin: 0 14px;
    --hh-prose-list-gap: 4px;
    --hh-prose-h2-margin: 36px 12px;
    --hh-prose-h3-margin: 28px 10px;
    --hh-prose-h4-margin: 24px 8px;
  }
  .hh-article-page .hh-article-content h2 { font-size: 23px; }
  .hh-article-page .hh-article-content h3 { font-size: 19px; }
  .hh-article-page .hh-article-content h4 { font-size: 17px; }
  .hh-article-page .hh-article-nav:has(.post-navigation) { margin-block-start: 32px; padding-block-start: 18px; }
  .hh-article-page .hh-article-nav .nav-links { grid-template-columns: minmax(0, 1fr); }
  .hh-article-page .hh-article-nav .nav-next { grid-column: auto; }
  .hh-article-page .hh-article-nav a {
    /* Keep the text away from the fixed WhatsApp button at the right edge. */
    padding-inline-end: 54px;
  }
  .hh-article-page .hh-article-cta { padding-block: 30px; }
  .hh-article-page .hh-article-cta h2 { font-size: 22px; }
  .hh-article-page .hh-article-cta a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hh-article-page :is(.hh-article-recent-title, .hh-article-nav-title) { transition: none; }
  .hh-article-page .hh-article-cta a { transition: none; }
  .hh-article-page .hh-article-cta a:hover { transform: none; }
}
