/*
 * Quark 2 — user customizations
 * Loaded last; overrides theme.css.
 */

:root {
  --pico-font-family-display: "Manrope", "Inter", sans-serif;
  --forum-font-display: var(--pico-font-family-display);
  --pico-font-family-sans-serif:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Force display face on all headings + hero (Cal Sans had no Cyrillic) */
h1, h2, h3, h4, h5, h6,
.hero h1, .hero h2, .hero h3,
.modular-hero h1, .modular-hero h2,
#blog-hero h1, #blog-hero h2,
#header, #header a,
.card-title, .p-name {
  font-family: "Manrope", "Inter", sans-serif;
}


/* Article page: smaller title, centered */
.content-item > .content-title {
  text-align: center;
  margin-bottom: 1.75rem;
}

.content-item > .content-title h1,
.content-item > .content-title .p-name {
  font-size: clamp(1.5rem, 2vw + 0.75rem, 2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.content-item > .content-title .lead {
  font-size: 1.05rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Image credits — small muted captions */
.content-item .e-content img + em,
.content-item .e-content p:has(> img) + p > em:only-child,
article.h-entry .e-content img + em,
article.h-entry .e-content p > em:only-child {
  display: block;
  margin-top: 0.35rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.4;
  font-style: normal;
  font-weight: 400;
  color: var(--q2-text-muted, #6b7280);
  opacity: 0.9;
}

/* Fallback without :has — any lone italic credit paragraph under figures */
.content-item .e-content p > em:only-child,
article.h-entry .e-content p > em:only-child {
  font-size: 0.75rem;
  line-height: 1.4;
  font-style: normal;
  color: var(--q2-text-muted, #6b7280);
}


/* Kill Quark2 accent bars everywhere in content */
.h-entry h2::before,
.h-entry h3::before,
.content-wrapper h2::before,
.blog-content h2::before,
main h2::before,
main h3::before,
article h2::before,
article h3::before,
.content-item h2::before,
.content-item h3::before,
.e-content h2::before,
.e-content h3::before,
#body-wrapper h2::before,
#body-wrapper h3::before {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  background: none !important;
}
main hr, article hr, .h-entry hr, .e-content hr, .content-item hr {
  display: none !important;
}

/* Soften code/pre/table chrome that can look like rules */
.e-content pre {
  border-top: none;
}

/* Brand logo — HTML text, symmetric on mobile */
.navbar-brand.site-logo,
.mobile-logo .site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-top: 0;
  padding-bottom: 0;
  height: auto;
}
.navbar-brand.site-logo .logo-text,
.mobile-logo .site-logo .logo-text {
  font-family: "Manrope", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1;
  display: inline-block;
}
.navbar-section.logo,
.mobile-logo {
  display: flex;
  align-items: center;
}
@media (max-width: 840px) {
  .navbar-brand.site-logo .logo-text,
  .mobile-logo .site-logo .logo-text {
    font-size: 1rem;
  }
}



/* ---- Blog list: title on cover, light full-image blur ---- */
.cards .card.card--cover-title,
#body-wrapper .card.card--cover-title,
.blog-grid .card.card--cover-title {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--pico-card-background-color, var(--background-secondary, #111));
  border: 1px solid rgba(127, 127, 127, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.card--cover-title .card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
}

.card--cover-title .card-cover__media {
  position: absolute;
  inset: 0;
}

.card--cover-title .card-cover__media img,
.card--cover-title .card-cover__media picture,
.card--cover-title .card-cover__media picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: blur(2.5px) brightness(0.78);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.card--cover-title .card-cover:hover .card-cover__media img,
.card--cover-title .card-cover:hover .card-cover__media picture img {
  transform: scale(1.08);
  filter: blur(1.5px) brightness(0.82);
}

.card--cover-title .card-cover__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 8, 12, 0.78) 0%,
    rgba(6, 8, 12, 0.42) 45%,
    rgba(6, 8, 12, 0.22) 100%
  );
  pointer-events: none;
}

/* Fixed caption band: date + title aligned, no vertical jump */
.card--cover-title .card-cover__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  min-height: 7.25rem;
  padding: 1.1rem 1rem 0.95rem;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.card--cover-title .card-cover__meta {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.78rem;
  line-height: 1.25rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card--cover-title .card-cover__meta .blog-date,
.card--cover-title .card-cover__meta time,
.card--cover-title .card-cover__meta i {
  color: inherit;
  vertical-align: middle;
}

.card--cover-title .card-cover__title {
  display: block;
  flex: 0 0 auto;
  min-height: 3.9rem; /* ~3 lines at 1.3 line-height */
}

.card--cover-title .card-cover__title h3,
.card--cover-title .card-cover__title .p-name {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.card--cover-title .card-body {
  display: block;
  padding: 0.85rem 1rem 0.35rem;
  flex: 1 1 auto;
}

.card--cover-title .card-body p:last-child {
  margin-bottom: 0;
}

.card--cover-title .card-footer--compact {
  padding: 0.45rem 1rem 0.85rem;
  margin: 0;
  margin-top: auto;
  background: transparent;
  border-top: 0;
}

.card--cover-title .card-footer--compact .labels,
.card--cover-title .card-footer--compact a {
  font-size: 0.75rem;
}

/* Equal-height cards in blog grid */
.blog-grid {
  display: grid;
  align-items: stretch;
}

.blog-grid > .card.card--cover-title {
  height: 100%;
}

@media (max-width: 600px) {
  .card--cover-title .card-cover {
    aspect-ratio: 5 / 4;
    min-height: 200px;
  }

  .card--cover-title .card-cover__caption {
    min-height: 6.75rem;
    padding: 1rem 0.85rem 0.85rem;
  }

  .card--cover-title .card-cover__title {
    min-height: 3.6rem;
  }

  .card--cover-title .card-cover__media img,
  .card--cover-title .card-cover__media picture img {
    filter: blur(2px) brightness(0.78);
  }
}






/* ---- Hero: vertically center title block for all clients/pages ---- */
#blog-hero,
.modular-hero.hero,
section.hero {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#blog-hero .container,
.modular-hero.hero .container,
section.hero .container {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Keep chevron pinned to hero bottom; does not shift title centering */
#blog-hero #to-start,
.hero #to-start {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* ---- Hero titles (single source of truth) ---- */
#blog-hero .container {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

#blog-hero h1 .toc-anchor,
#blog-hero h2 .toc-anchor,
#blog-hero .toc-anchor {
  display: none !important;
}

/* Page titles (About / Contacts): centered, wrapping */
#blog-hero h1:not(.glitch) {
  display: block;
  width: 100%;
  max-width: min(40rem, 100%);
  margin: 0 auto 0.15em;
  padding: 0;
  box-sizing: border-box;
  text-align: center !important;
  text-transform: none;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  font-size: clamp(1.65rem, 6vw + 0.4rem, 3.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  align-self: center;
}

#blog-hero h2 {
  display: block;
  width: 100%;
  max-width: min(34rem, 100%);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  text-align: center !important;
  white-space: normal;
  font-size: clamp(1rem, 1.2vw + 0.7rem, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0.92;
  align-self: center;
}

/* Brand glitch: box centered, glyph layers left-aligned inside the box */
#blog-hero h1.glitch {
  display: inline-block;
  position: relative;
  width: max-content;
  max-width: calc(100% - 0.5rem);
  margin: 0 auto 0.15em;
  padding: 0 0.2em; /* room for ±2px glitch shadows */
  box-sizing: border-box;
  text-align: left; /* overlays must match glyph origin */
  text-transform: uppercase;
  white-space: nowrap;
  font-size: clamp(2.25rem, 5vw + 1rem, 3.5rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  align-self: center;
  overflow-wrap: normal;
  word-break: normal;
}

#blog-hero h1.glitch::before,
#blog-hero h1.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0.2em; /* match padding so layers sit on glyphs */
  right: 0.2em;
  top: 0;
  width: auto;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  line-height: inherit;
  white-space: nowrap;
  text-align: left;
}

#blog-hero h1.glitch::before {
  color: #41f0ff;
  z-index: -1;
  text-shadow: -2px 0 #41f0ff;
  animation: wmGlitchA 2.6s infinite linear alternate-reverse;
  clip-path: inset(0 0 55% 0);
}

#blog-hero h1.glitch::after {
  color: #ff4fd8;
  z-index: -2;
  text-shadow: 2px 0 #ff4fd8;
  animation: wmGlitchB 1.9s infinite linear alternate-reverse;
  clip-path: inset(45% 0 0 0);
}

@keyframes wmGlitchA {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 1px); }
  40% { transform: translate(2px, -1px); }
  60% { transform: translate(-1px, 0); }
  100% { transform: translate(0); }
}

@keyframes wmGlitchB {
  0% { transform: translate(0); }
  25% { transform: translate(2px, -1px); }
  50% { transform: translate(-2px, 1px); }
  100% { transform: translate(1px, 0); }
}

@media (prefers-reduced-motion: reduce) {
  #blog-hero h1.glitch::before,
  #blog-hero h1.glitch::after {
    animation: none;
    opacity: 0.4;
    clip-path: none;
    text-shadow: -2px 0 rgba(65, 240, 255, 0.5), 2px 0 rgba(255, 79, 216, 0.5);
  }
}

@media (max-width: 860px) {
  #blog-hero .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    align-items: center !important;
    text-align: center !important;
    overflow: visible;
  }

  #blog-hero h1:not(.glitch) {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
    font-size: clamp(1.45rem, 7vw, 2.1rem);
  }

  #blog-hero h2 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  #blog-hero h1.glitch {
    align-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(1.5rem, 9vw, 2.35rem) !important;
    letter-spacing: -0.03em;
    max-width: calc(100vw - 2.5rem);
  }
}

@media (max-width: 380px) {
  #blog-hero h1.glitch {
    font-size: clamp(1.3rem, 8.5vw, 1.8rem) !important;
    letter-spacing: -0.04em;
  }

  #blog-hero h1:not(.glitch) {
    font-size: clamp(1.3rem, 6.5vw, 1.75rem);
  }
}

/* ---- Sidebar spoilers: 3 visible, accordion ---- */
.sidebar-spoiler {
  margin-bottom: 1rem;
}

.sidebar-spoiler__toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0 0 0.55rem;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.sidebar-spoiler__title {
  flex: 1 1 auto;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.sidebar-spoiler__hint {
  flex: 0 0 auto;
  font-size: 0.75rem;
  opacity: 0.65;
  white-space: nowrap;
}

.sidebar-spoiler__chevron {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
  transition: transform 0.2s ease;
  margin-bottom: 0.15rem;
}

.sidebar-spoiler.is-open .sidebar-spoiler__chevron {
  transform: rotate(-135deg);
  margin-bottom: -0.1rem;
}

.sidebar-spoiler .recent-posts,
.sidebar-spoiler .archives {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sidebar-spoiler .recent-posts li,
.sidebar-spoiler .archives li {
  margin: 0.4em 0;
}

/* Collapsed: only first 3 items */
.sidebar-spoiler:not(.is-open) .sidebar-spoiler__list > li:nth-child(n+4),
.sidebar-spoiler:not(.is-open) .archives > li:nth-child(n+4),
.sidebar-spoiler:not(.is-open) .tags > a:nth-child(n+4) {
  display: none !important;
}

.sidebar-spoiler .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.sidebar-spoiler.is-open .sidebar-spoiler__hint {
  display: none;
}

/* ---- Contact card (sidebar + in-page) ---- */
.sidebar-contact h4 {
  margin-top: 0;
}

.sidebar-contact p {
  margin: 0.35rem 0;
}

.sidebar-contact p + p {
  margin-top: 0.75rem;
}

.sidebar-contact a.mailto,
.sidebar-contact a[href*="t.me/"] {
  font-weight: 600;
  word-break: break-word;
}

/* In-page contact callout (About / Contacts body) */
.e-content .contact-card,
.content-item .contact-card {
  background: var(--q2-bg-elev, var(--pico-card-background-color, #f4f4f5));
  border-radius: var(--q2-radius-md, 0.75rem);
  box-shadow:
    rgba(19, 19, 22, 0.04) 0 1px 2px,
    rgba(19, 19, 22, 0.06) 0 8px 24px -8px;
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0;
}

:root[data-theme="dark"] .e-content .contact-card,
:root[data-theme="dark"] .content-item .contact-card {
  box-shadow:
    rgba(0, 0, 0, 0.4) 0 1px 2px,
    rgba(0, 0, 0, 0.55) 0 10px 28px -8px;
}

.e-content .contact-card > :first-child,
.content-item .contact-card > :first-child {
  margin-top: 0;
}

.e-content .contact-card > :last-child,
.content-item .contact-card > :last-child {
  margin-bottom: 0;
}

/* ---- Compact article tables (fit content card, no page blowout) ---- */
html {
  overflow-x: clip;
}

#page-wrapper,
#body-wrapper,
.content-item,
.e-content,
#item {
  max-width: 100%;
  min-width: 0;
}

.e-content,
.content-item .e-content,
article.h-entry .e-content {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.e-content table,
.content-item table,
article.h-entry table {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1rem 0;
  border-collapse: collapse;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 0.75rem;
  line-height: 1.35;
  box-sizing: border-box;
}

.e-content thead,
.e-content tbody,
.e-content tr {
  width: 100%;
}

.e-content th,
.e-content td,
.content-item th,
.content-item td,
article.h-entry th,
article.h-entry td {
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  vertical-align: top;
}

.e-content th,
.content-item th,
article.h-entry th {
  font-weight: 650;
  white-space: normal;
}

@media (max-width: 700px) {
  .e-content table,
  .content-item table,
  article.h-entry table {
    font-size: 0.68rem;
  }

  .e-content th,
  .e-content td,
  .content-item th,
  .content-item td,
  article.h-entry th,
  article.h-entry td {
    padding: 0.3rem 0.35rem;
    font-size: 0.68rem;
  }
}

/* ---- Article FAQ card (part of article, visually distinct) ---- */
.e-content .article-faq,
.content-item .article-faq {
  margin: 2rem 0 1.75rem;
  padding: 1.15rem 1.25rem 1.05rem;
  background: var(--q2-bg-muted, rgba(0,0,0,.04));
  border: 1px solid var(--q2-border-ring, rgba(0,0,0,.08));
  border-left: 4px solid var(--q2-accent, #8250df);
  border-radius: var(--q2-radius-md, 12px);
  box-shadow: var(--q2-shadow-card, 0 8px 24px rgba(0,0,0,.04));
}
.e-content .article-faq > h3,
.content-item .article-faq > h3 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.e-content .article-faq__item,
.content-item .article-faq__item {
  padding: 0.65rem 0;
  border-top: 1px solid var(--q2-divider, rgba(0,0,0,.08));
}
.e-content .article-faq__item:first-of-type,
.content-item .article-faq__item:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.e-content .article-faq__q,
.content-item .article-faq__q {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}
.e-content .article-faq__a,
.content-item .article-faq__a {
  margin: 0;
  color: var(--q2-text-muted, #666);
  font-size: 0.92rem;
  line-height: 1.5;
}


/* Related posts block (item pages) */
.related-posts {
  margin: 2.5rem 0 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--q2-divider, rgba(0,0,0,.08));
}
.related-posts__title {
  margin: 0 0 1.1rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.related-posts__grid {
  margin: 0;
}
.related-posts__grid > .card.card--cover-title {
  margin: 0;
}
.related-posts__grid .card-cover__title h3 {
  font-size: 1.05rem;
  line-height: 1.35;
}


/* ---- Article short intro plaque («Коротко» / LSI) ---- */
.e-content .article-short,
.content-item .article-short {
  margin: 1.25rem 0 1.5rem;
  padding: 0.95rem 1.15rem 1rem;
  background: var(--q2-bg-muted, rgba(0, 0, 0, 0.035));
  border: 1px solid var(--q2-border-ring, rgba(0, 0, 0, 0.07));
  border-radius: var(--q2-radius-md, 12px);
  box-shadow: var(--q2-shadow-card, 0 6px 18px rgba(0, 0, 0, 0.035));
}

:root[data-theme="dark"] .e-content .article-short,
:root[data-theme="dark"] .content-item .article-short {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.e-content .article-short__label,
.content-item .article-short__label {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.12rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--q2-accent, #8250df);
  background: color-mix(in srgb, var(--q2-accent, #8250df) 12%, transparent);
  border-radius: 999px;
}

.e-content .article-short > p,
.content-item .article-short > p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--q2-text, inherit);
}

.e-content .article-short > p:last-child,
.content-item .article-short > p:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .e-content .article-short,
  .content-item .article-short {
    margin: 1rem 0 1.25rem;
    padding: 0.85rem 0.95rem 0.9rem;
  }
  .e-content .article-short > p,
  .content-item .article-short > p {
    font-size: 0.92rem;
  }
}


/* Mobile hamburger: vertically center in header bar (плашка) */
@media (max-width: 860px) {
  .mobile-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    right: 12px;
    height: 64px; /* match #header .navbar min-height on mobile */
    z-index: 70;
  }
  body.header-animated.scrolled .mobile-menu {
    height: 60px;
  }
  /* Optical center of the three bars inside the pill */
  button.button_container,
  .button_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
  }
}

/* ---- Compact article heroes (blog item pages) ---- */
.article-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-sizing: border-box;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  min-height: clamp(200px, 36vw, 280px);
  padding: clamp(3rem, 7vw, 5rem) 1.25rem clamp(1.5rem, 3.5vw, 2.5rem);
  margin: 0;
}

@media (min-width: 861px) {
  .article-hero {
    min-height: clamp(280px, 30vw, 360px);
    padding-top: clamp(4rem, 6vw, 5.5rem);
  }
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(8, 10, 18, 0.42) 0%,
    rgba(8, 10, 18, 0.55) 40%,
    rgba(8, 10, 18, 0.82) 100%
  );
}

.article-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(46rem, 100%);
  margin: 0 auto;
  text-align: center;
  padding-top: calc(var(--q2-header-height, 4.5rem) * 0.35);
  box-sizing: border-box;
}

.article-hero__title {
  display: block;
  width: 100%;
  margin: 0 0 0.4em;
  padding: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.8vw + 0.7rem, 2.35rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.article-hero__title .toc-anchor {
  display: none !important;
}

.article-hero__dek {
  display: block;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto 0.85rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1vw + 0.7rem, 1.15rem);
  line-height: 1.4;
  font-weight: 500;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.article-hero__meta .blog-date,
.article-hero__meta time,
.article-hero__meta i {
  color: inherit;
}

.article-hero__meta .tags,
.article-hero__meta .labels {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.article-hero__meta a.label,
.article-hero__meta .tags a {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.article-hero__meta a.label:hover,
.article-hero__meta .tags a:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

/* When hero carries the H1, tighten top of article body a little */
body.has-article-hero #body-wrapper.blog-listing {
  padding-top: clamp(1.25rem, 3vw, 2rem);
}

@media (max-width: 700px) {
  .article-hero {
    min-height: clamp(200px, 48vw, 260px);
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .article-hero__title {
    font-size: clamp(1.25rem, 5.5vw + 0.4rem, 1.85rem);
  }
}
