/* Voltis Labs - static article cards + article layout */

.vl-blog-hero {
  padding-top: 2rem;
  padding-bottom: 0.5rem;
}

.vl-blog-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.vl-blog-hero__lead {
  max-width: 42rem;
  margin: 0;
  opacity: 0.92;
}

.vl-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 1.25rem;
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .vl-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .vl-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}

.vl-blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.vl-blog-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.vl-blog-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.vl-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vl-blog-card__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.vl-blog-card__meta {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.vl-blog-card__title {
  font-size: 1.125rem;
  line-height: 1.25;
  margin: 0;
  font-weight: 600;
}

.vl-blog-card__title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.vl-blog-card__title a:hover,
.vl-blog-card__title a:focus {
  border-bottom-color: currentColor;
}

.vl-blog-card__excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  opacity: 0.88;
  flex: 1;
}

.vl-blog-article {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.vl-blog-article__header .p2 {
  margin-top: 0.35rem;
  opacity: 0.8;
}

.vl-blog-article__figure {
  margin: 1.5rem 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vl-blog-article__figure img {
  width: 100%;
  height: auto;
  display: block;
}

.vl-blog-article__prose {
  max-width: 46rem;
}

.vl-blog-article__prose h2 {
  font-size: inherit;
  line-height: inherit;
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}

.vl-blog-article__prose p,
.vl-blog-article__prose li {
  font-size: 1rem;
  line-height: 1.55;
}

.vl-blog-article__prose .lead {
  font-size: 1.05rem;
  opacity: 0.95;
}

.vl-blog-back {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* --- Articles index (Hygraph feed; mirrors Next.js `/blog` route) --- */

.vl-blog-section .vl-blog-shell {
  width: 100%;
  max-width: 75rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 1.5rem) 3rem;
  box-sizing: border-box;
}

/* Homepage (#vl-home-blog-posts) - newspaper-style list */
.vl-home-blog__inner {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 4vw, 1.5rem) clamp(2.5rem, 5vw, 4rem);
  box-sizing: border-box;
}

body.home .vl-home-blog .vl-blog-posts-mount {
  min-height: 10rem;
  margin-top: 0.65rem;
  padding-inline: var(--space-grid-padding, 1rem);
  box-sizing: border-box;
}

.vl-home-blog__empty {
  margin: 0;
  opacity: 0.75;
  grid-column: 1 / -1;
}

/* ----- Home Articles - newspaper section (replaces hero-sized grid cards) ----- */
body.home .vl-home-blog--newspaper.vl-news-edition {
  background: var(--vl-news-print);
  color: var(--vl-news-ink);
}

body.home .vl-home-blog--newspaper.vl-news-edition .vl-blog-posts-mount {
  color: var(--vl-news-ink);
}

body.home .vl-home-blog--newspaper.vl-news-edition .vl-home-blog__inner {
  max-width: var(--body-text-max, 58rem);
  margin-inline: auto;
}

body.home .vl-home-news-masthead {
  position: relative;
  background: var(--vl-news-print);
  /* Matches home `.section.section-title` / tagline divider rhythm above About Voltis Labs */
  padding: var(--vl-home-about-rule-pad, clamp(1.5rem, 3.8vw, 2.4rem)) 0 0.25rem;
  border-bottom: 3px double var(--vl-news-rule);
  margin-bottom: 0.25rem;
}

body.home .vl-home-news-masthead__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--vl-news-muted);
}

body.home .vl-home-news-masthead__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

body.home .vl-home-news-masthead__title {
  margin: 0;
  font-family: var(--font-secondary, Georgia, 'Times New Roman', serif);
  font-size: clamp(3rem, 16vw, 9.25rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--vl-news-ink);
}

body.home .vl-home-news-masthead__title-visual {
  display: inline;
}

body.home .vl-home-news-masthead__caret {
  display: inline-block;
  width: 0.055em;
  height: 0.78em;
  margin-left: 0.06em;
  background: currentColor;
  vertical-align: -0.09em;
  animation: vl-home-articles-caret-blink 1s steps(1, end) infinite;
}

@media (prefers-reduced-motion: reduce) {
  body.home .vl-home-news-masthead__caret {
    animation: none;
    opacity: 1;
  }
}

@keyframes vl-home-articles-caret-blink {
  50% {
    opacity: 0;
  }
}

/*
 * Homepage Articles: masthead + list share `.parallax-section__inner` so the whole newspaper
 * block scrubs as one unit (same GSAP y as footer). Stack stays below About for overlap masking.
 */
body.home .page-template-homepage-static > .vl-home-articles-stack {
  position: relative;
  z-index: 1;
  overflow: visible;
  margin-bottom: 0;
  padding-bottom: 0;
  /* Fills any seam under the list where body (dark) would otherwise show */
  background-color: var(--vl-news-print);
}

/*
 * Desktop parallax (`md` in voltis-main.js): `.vl-home-articles-stack__inner` scrubs in Y by up
 * to ~50vh while the document still reserves normal flow height - that exposes the dark body
 * between this block and the footer. Cream padding + equal negative margin pulls the footer up
 * through that band so only paper colour sits under the scrub, not `body` background.
 */
@media (min-width: 1024px) {
  body.home .page-template-homepage-static > .vl-home-articles-stack {
    padding-bottom: clamp(2.5rem, 22vh, 16rem);
    margin-bottom: calc(-1 * clamp(2.5rem, 22vh, 16rem));
  }
}

/* Mobile uses a smaller runway, but still needs overlap compensation to avoid the dark seam below Articles. */
@media (max-width: 1023px) {
  body.home .page-template-homepage-static > .vl-home-articles-stack {
    padding-bottom: clamp(1.2rem, 10vh, 4.5rem);
    margin-bottom: calc(-1 * clamp(1.2rem, 10vh, 4.5rem));
    background-color: var(--vl-news-print);
  }
}

body.home .page-template-homepage-static > .vl-home-articles-stack > .vl-home-articles-stack__inner {
  will-change: transform;
  overflow: visible;
  /* Cream buffer inside the transformed layer: keep overlap with About without a tall empty band. */
  padding-top: clamp(1.25rem, min(8vh, 7vw), 4rem);
  box-sizing: border-box;
  background-color: var(--vl-news-print);
}

/* Inner shares newspaper tokens with the section so the parallax buffer matches light/dark edition */
body.home .page-template-homepage-static > .vl-home-articles-stack .vl-home-blog__inner {
  padding-top: clamp(0.65rem, 2vw, 1.15rem);
}

@media (prefers-reduced-motion: reduce) {
  body.home .page-template-homepage-static > .vl-home-articles-stack > .vl-home-articles-stack__inner {
    transform: none !important;
    will-change: auto;
  }
}

body.home .vl-home-news-masthead__all.vl-liquid-btn {
  text-decoration: none;
}

body.home .vl-home-news-masthead__sub {
  margin: 0.55rem 0 0;
  font-family: var(--font-primary, system-ui, sans-serif);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--vl-news-muted);
  max-width: 36rem;
}

body.home .vl-home-news-masthead__hr {
  margin: 0.85rem 0 0;
  border: 0;
  border-top: 1px solid var(--vl-news-rule);
}

/* Articles block: stacking handled by `.vl-home-articles-stack`; section stays in normal flow inside parallax inner */
body.home .page-template-homepage-static .vl-home-blog--newspaper.vl-news-edition {
  position: relative;
  margin-top: 0;
  /* Top inset carried by `.vl-home-news-masthead` so the newspaper banner matches tagline/divider rhythm */
  padding-top: 0;
}

body.home .page-template-homepage-static > .vl-home-about-block,
body.home .page-template-homepage-static > .section-about,
body.home .page-template-homepage-static > .grid.section.section-title {
  position: relative;
  z-index: 3;
  box-sizing: border-box;
  width: 100%;
  isolation: isolate;
  /* Opaque fill + viewport-wide stripe so Article cream cannot show as a left "sliver" */
  background-color: var(--color-background);
}

body.home .page-template-homepage-static > .vl-home-about-block::before,
body.home .page-template-homepage-static > .section-about::before,
body.home .page-template-homepage-static > .grid.section.section-title::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  top: 0;
  bottom: 0;
  background-color: var(--color-background);
  z-index: -1;
  pointer-events: none;
}

/*
 * Graphene `.section` adds ~4.375rem margin-bottom on `.grid.section.section-title`, which
 * opens a band of body background (often white mid-scroll / vl-theme-middle) between tagline
 * and About. Replace with padding so blacks stay continuous but copy still breathes.
 */
body.home .page-template-homepage-static > .vl-home-about-block > .grid.section.section-title,
body.home .page-template-homepage-static > .grid.section.section-title {
  margin-bottom: 0;
  padding-bottom: clamp(1.85rem, 4.5vw, 3rem);
}

body.home .page-template-homepage-static > .vl-home-about-block > .section-about,
body.home .page-template-homepage-static > .section-about {
  margin-top: 0;
  padding-top: clamp(1.35rem, 3.5vw, 2.35rem);
  padding-bottom: clamp(0.65rem, 1.5vw, 1rem);
}

body.home .page-template-homepage-static > .vl-home-about-block {
  margin-bottom: 0;
  padding-top: var(--vl-home-about-rule-pad, clamp(1.5rem, 3.8vw, 2.4rem));
  padding-bottom: clamp(0.65rem, 1.5vw, 1rem);
}

body.home .page-template-homepage-static > .vl-home-about-block > .grid.section.section-title {
  padding-top: 0;
  padding-bottom: clamp(1.85rem, 4.5vw, 3rem);
}

body.home .page-template-homepage-static > .vl-home-about-block > .section-about {
  padding-top: clamp(1.35rem, 3.5vw, 2.35rem);
  padding-bottom: 0;
}

/* Full-bleed tech icon marquee: sibling of half-width About copy, not inside .section-about. */
body.home .vl-home-about-block > .vl-home-about-tech-marquee-line {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: clamp(0.75rem, 2vw, 1.15rem);
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* About: non-interactive tech icon strip (CSS loop only; decorative). */
body.home .vl-home-about-tech-marquee {
  width: 100%;
  max-width: none;
  margin: clamp(0.75rem, 2vw, 1.15rem) 0 0;
  padding: clamp(0.45rem, 1.2vw, 0.65rem) 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

body.home .vl-home-about-tech-marquee__mask {
  overflow: hidden;
  width: 100%;
}

body.home .vl-home-about-tech-marquee__track {
  display: flex;
  width: max-content;
  flex-wrap: nowrap;
  will-change: transform;
}

body.home .vl-home-about-tech-marquee--ready .vl-home-about-tech-marquee__track {
  animation: vl-home-about-tech-marquee-x 72s linear infinite;
}

body.home .vl-home-about-tech-marquee__list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(2rem, 5vw, 3.25rem);
  margin: 0;
  padding: 0 clamp(1.25rem, 3vw, 2rem) 0 0;
  list-style: none;
  flex-shrink: 0;
}

body.home .vl-home-about-tech-marquee__list li {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

body.home .vl-home-about-tech-marquee__list img {
  display: block;
  height: clamp(1.65rem, 3.2vw, 2.35rem);
  width: auto;
  max-width: min(7.5rem, 22vw);
  object-fit: contain;
  opacity: 0.88;
}

/* Next/Unity SVG naming: "* dark mode*" / Unity darkmode = light ink for dark UI; "* light mode*" = dark ink for light UI.
   About strip uses body --color-background (site-wide): dark at rest, white when body.home.vl-theme-middle mid-scroll. */
body.home:not(.vl-theme-middle) .vl-about-tech-marquee__item--for-light-canvas {
  display: none;
}

body.home.vl-theme-middle .vl-about-tech-marquee__item--for-dark-canvas {
  display: none;
}

@keyframes vl-home-about-tech-marquee-x {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-100% / var(--vl-about-marquee-segs, 2)), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .vl-home-about-tech-marquee--ready .vl-home-about-tech-marquee__track,
  body.home .vl-home-about-tech-marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    row-gap: 0.75rem;
    transform: none;
  }

  body.home .vl-home-about-tech-marquee__list {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }

  body.home .vl-home-about-tech-marquee__list ~ .vl-home-about-tech-marquee__list {
    display: none;
  }
}

/* Contain margins so body (dark canvas) does not peek between homepage main and footer */
body.home main {
  display: flow-root;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.home .vl-home-blog--newspaper .vl-blog-posts--list {
  gap: 0;
  max-width: none;
  margin-inline: 0;
}

body.home .vl-home-blog--newspaper .vl-blog-item--list {
  width: 100%;
  max-width: none;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--vl-news-rule);
  align-items: flex-start;
  border-radius: 0;
}

body.home .vl-home-blog--newspaper .vl-blog-item--list:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

body.home .vl-home-blog--newspaper .vl-blog-item:hover {
  transform: none;
  background: var(--vl-news-row-hover);
}

body.home .vl-home-blog--newspaper .vl-blog-item__thumb {
  width: min(9.5rem, 32vw);
  aspect-ratio: 16 / 10;
  border-radius: 2px;
  border-color: var(--vl-news-thumb-border);
  background: var(--vl-news-thumb-bg);
}

@media (min-width: 768px) {
  body.home .vl-home-blog--newspaper .vl-blog-item__thumb {
    width: 11.5rem;
  }
}

body.home .vl-home-blog--newspaper .vl-blog-item__text {
  width: auto;
  flex: 1;
  min-width: 0;
  padding: 0.15rem 0 0;
}

body.home .vl-home-blog--newspaper .vl-blog-item__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-secondary, Georgia, 'Times New Roman', serif);
  font-size: clamp(1.1rem, 2.1vw, 1.35rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--vl-news-ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.home .vl-home-blog--newspaper .vl-blog-item__meta {
  font-family: var(--font-primary, system-ui, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 1;
  color: var(--vl-news-muted);
}

body.home .vl-home-blog--newspaper .vl-blog-item__cat {
  font-weight: 700;
  color: var(--vl-news-ink);
}

body.home.vl-theme-middle .vl-home-blog--newspaper.vl-news-edition[data-news-effective="light"] .vl-blog-item__thumb {
  background: #ece8df;
}

body.home .vl-home-blog--newspaper .vl-home-blog__empty {
  padding: 1.5rem 0 0;
  text-align: left;
  color: var(--vl-news-muted);
}

body.home .vl-home-blog--newspaper .vl-blog-skel__pulse {
  background: var(--vl-news-skel-pulse);
}

body.home .vl-home-blog--newspaper .vl-blog-skel__line {
  background: var(--vl-news-skel-line);
}

body.home .vl-home-blog--newspaper .vl-blog-skel__thumb {
  border: 1px solid var(--vl-news-skel-thumb-border);
  box-sizing: border-box;
}

/* ----- Newspaper edition: shared light/dark tokens (articles index + home) ----- */
.vl-news-edition {
  --vl-news-accent: var(--color-accent, #ff2b2b);
  --vl-news-ink: #141414;
  --vl-news-muted: #3d3d3d;
  --vl-news-print: #f4f1eb;
  --vl-news-rule: rgba(20, 20, 20, 0.28);
  --vl-news-input-border: rgba(20, 20, 20, 0.28);
  --vl-news-input-bg: rgba(255, 255, 255, 0.55);
  --vl-news-icon-border: rgba(20, 20, 20, 0.18);
  --vl-news-icon-bg: rgba(255, 255, 255, 0.65);
  --vl-news-icon-hover-bg: rgba(20, 20, 20, 0.04);
  --vl-news-thumb-bg: #e8e4dc;
  --vl-news-thumb-border: rgba(20, 20, 20, 0.12);
  --vl-news-fallback-a: #dcd7cc;
  --vl-news-fallback-b: #cbc4b6;
  --vl-news-row-hover: rgba(0, 0, 0, 0.035);
  --vl-news-empty-bg: rgba(255, 255, 255, 0.55);
  --vl-news-cat-skel: rgba(20, 20, 20, 0.09);
  --vl-news-skel-pulse: rgba(20, 20, 20, 0.08);
  --vl-news-skel-line: rgba(20, 20, 20, 0.1);
  --vl-news-skel-thumb-border: rgba(20, 20, 20, 0.1);
  --vl-news-loading-bg: rgba(255, 255, 255, 0.5);
  --vl-news-spinner-track: rgba(20, 20, 20, 0.2);
  --vl-news-error-inner-border: rgba(180, 35, 35, 0.35);
  --vl-news-error-inner-bg: rgba(255, 240, 240, 0.75);
  --vl-news-newsletter-bg: rgba(255, 255, 255, 0.35);
  --vl-news-newsletter-input-bg: rgba(255, 255, 255, 0.88);
  --vl-news-back-top-border: rgba(20, 20, 20, 0.28);
  --vl-news-back-top-bg: rgba(255, 255, 255, 0.95);
  --vl-news-date-error: #b42318;
  --vl-news-loadmore-err: #8a1f1f;
}

.vl-news-edition[data-news-effective="dark"] {
  --vl-news-ink: #ece8df;
  --vl-news-muted: #a9a198;
  --vl-news-print: #141210;
  --vl-news-rule: rgba(236, 232, 223, 0.2);
  --vl-news-input-border: rgba(236, 232, 223, 0.22);
  --vl-news-input-bg: rgba(255, 255, 255, 0.07);
  --vl-news-icon-border: rgba(236, 232, 223, 0.2);
  --vl-news-icon-bg: rgba(255, 255, 255, 0.09);
  --vl-news-icon-hover-bg: rgba(255, 255, 255, 0.06);
  --vl-news-thumb-bg: #2a2724;
  --vl-news-thumb-border: rgba(236, 232, 223, 0.12);
  --vl-news-fallback-a: #35322e;
  --vl-news-fallback-b: #2a2724;
  --vl-news-row-hover: rgba(255, 255, 255, 0.06);
  --vl-news-empty-bg: rgba(255, 255, 255, 0.05);
  --vl-news-cat-skel: rgba(255, 255, 255, 0.1);
  --vl-news-skel-pulse: rgba(255, 255, 255, 0.08);
  --vl-news-skel-line: rgba(255, 255, 255, 0.1);
  --vl-news-skel-thumb-border: rgba(236, 232, 223, 0.12);
  --vl-news-loading-bg: rgba(255, 255, 255, 0.06);
  --vl-news-spinner-track: rgba(255, 255, 255, 0.18);
  --vl-news-error-inner-border: rgba(255, 130, 120, 0.45);
  --vl-news-error-inner-bg: rgba(45, 22, 22, 0.65);
  --vl-news-newsletter-bg: rgba(255, 255, 255, 0.04);
  --vl-news-newsletter-input-bg: rgba(255, 255, 255, 0.08);
  --vl-news-back-top-border: rgba(236, 232, 223, 0.28);
  --vl-news-back-top-bg: rgba(30, 28, 26, 0.94);
  --vl-news-date-error: #ff9a88;
  --vl-news-loadmore-err: #ffb4a8;
}

/*
 * Edition ink + pour base follow Light/Dark/Auto on [data-news-edition] only - not the header
 * white-scroll zone (body.vl-theme-middle), which otherwise flips --vl-red-pour-base for main h2.
 */
.vl-news-edition[data-news-effective="light"],
.vl-news-edition[data-news-effective="dark"] {
  --vl-red-pour-base: var(--vl-news-ink);
  color: var(--vl-news-ink);
}

body.home.vl-theme-middle .vl-news-edition[data-news-effective="light"],
body.home.vl-theme-middle .vl-news-edition[data-news-effective="dark"] {
  --color-text: var(--vl-news-ink);
  --vl-red-pour-base: var(--vl-news-ink);
  color: var(--vl-news-ink);
}

body.home .vl-news-tone__btn.vl-liquid-btn {
  --liquid-button-color: var(--vl-news-accent);
}

body.home .vl-home-news-masthead__all.vl-liquid-btn {
  --liquid-button-color: var(--vl-news-accent);
}

body.home .vl-news-edition .vl-blog-error-inner .vl-liquid-btn {
  --liquid-button-color: var(--vl-news-accent);
}

.vl-home-news-masthead__rail {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

/* Blog page baseline (matches home newspaper controls) */
html:has(body.vl-blog-page:not(.vl-news-dark)) {
  background-color: #f4f1eb;
}

html:has(body.vl-blog-page.vl-news-dark) {
  background-color: #141210;
}

body.vl-blog-page {
  min-height: 100vh;
}

body.vl-blog-page:not(.vl-news-dark) {
  background-color: #f4f1eb;
}

body.vl-blog-page.vl-news-dark {
  background-color: #141210;
}

body.vl-blog-page .vl-blog-section.vl-news-edition {
  background-color: var(--vl-news-print);
  color: var(--vl-news-ink);
}

body.vl-blog-page .vl-blog-section .vl-blog-shell {
  max-width: var(--body-text-max, 58rem);
}

body.vl-blog-page .vl-blog-masthead {
  padding: 0 0 0.35rem;
  border-bottom: 3px double var(--vl-news-rule);
  margin: 0 0 1.25rem;
}

body.vl-blog-page .vl-blog-masthead__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--vl-news-muted);
}

body.vl-blog-page .vl-blog-masthead__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

body.vl-blog-page .vl-blog-masthead__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: min(100%, 12rem);
  padding-right: clamp(0.5rem, 3vw, 1.25rem);
  font-family: var(--font-secondary, Georgia, "Times New Roman", serif);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--vl-news-ink);
}

body.vl-blog-page .vl-blog-masthead__dek {
  margin: 0.55rem 0 0;
  font-family: var(--font-primary, system-ui, sans-serif);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--vl-news-muted);
  max-width: 36rem;
  opacity: 1;
}

body.vl-blog-page .vl-blog-masthead__hr {
  margin: 0.85rem 0 0;
  border: 0;
  border-top: 1px solid var(--vl-news-rule);
}

/* Articles edition: accent + newspaper-style controls (outline + red base bar; no filled primary pills) */
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-news-tone__btn.vl-liquid-btn,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-cat.vl-liquid-btn,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-clear.vl-liquid-btn,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-newsletter .vl-liquid-btn,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-error-inner .vl-liquid-btn,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-loadmore-err .vl-liquid-btn {
  --liquid-button-color: var(--vl-news-accent);
}

body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-cat.vl-liquid-btn .vl-liquid-btn__fill,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-news-tone__btn.vl-liquid-btn .vl-liquid-btn__fill,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-clear.vl-liquid-btn .vl-liquid-btn__fill,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-newsletter .vl-liquid-btn .vl-liquid-btn__fill,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-error-inner .vl-liquid-btn .vl-liquid-btn__fill,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-loadmore-err .vl-liquid-btn .vl-liquid-btn__fill {
  opacity: 0;
  visibility: hidden;
}

body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-cat.vl-liquid-btn,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-news-tone__btn.vl-liquid-btn,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-clear.vl-liquid-btn,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-newsletter .vl-liquid-btn,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-error-inner .vl-liquid-btn,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-loadmore-err .vl-liquid-btn {
  --liquid-btn-radius: 6px;
  --liquid-button-background-color: transparent;
  border: 1px solid var(--vl-news-input-border);
  border-bottom: 3px solid color-mix(in srgb, var(--vl-news-accent) 75%, transparent);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--vl-news-accent) 42%, transparent),
    0 6px 18px rgba(255, 43, 43, 0.1);
  color: var(--vl-news-ink);
  transform: none;
}

body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-cat.vl-liquid-btn:hover,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-cat.vl-liquid-btn:focus-visible,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-news-tone__btn.vl-liquid-btn:hover,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-news-tone__btn.vl-liquid-btn:focus-visible,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-clear.vl-liquid-btn:hover,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-clear.vl-liquid-btn:focus-visible,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-newsletter .vl-liquid-btn:hover,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-newsletter .vl-liquid-btn:focus-visible,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-error-inner .vl-liquid-btn:hover,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-error-inner .vl-liquid-btn:focus-visible,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-loadmore-err .vl-liquid-btn:hover,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-loadmore-err .vl-liquid-btn:focus-visible {
  transform: translateY(-1px);
  border-bottom-color: var(--vl-news-accent);
  border-color: color-mix(in srgb, var(--vl-news-accent) 35%, var(--vl-news-input-border));
  box-shadow:
    0 2px 0 color-mix(in srgb, var(--vl-news-accent) 55%, transparent),
    0 10px 26px rgba(255, 43, 43, 0.2),
    0 0 22px color-mix(in srgb, var(--vl-news-accent) 18%, transparent);
}

body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-cat.vl-liquid-btn:active,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-news-tone__btn.vl-liquid-btn:active,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-clear.vl-liquid-btn:active,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-newsletter .vl-liquid-btn:active {
  transform: translateY(0);
}

body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-cat--active.vl-liquid-btn {
  border-bottom-width: 4px;
  border-bottom-color: var(--vl-news-accent);
  font-weight: 700;
  box-shadow:
    0 3px 0 color-mix(in srgb, var(--vl-news-accent) 62%, transparent),
    0 8px 24px rgba(255, 43, 43, 0.18);
}

body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-cat.vl-liquid-btn .vl-liquid-btn__text,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-news-tone__btn .vl-liquid-btn__text,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-clear .vl-liquid-btn__text,
body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-newsletter .vl-liquid-btn .vl-liquid-btn__text {
  color: var(--vl-news-ink);
}

body.vl-blog-page .vl-blog-section.vl-news-edition .vl-blog-cat.vl-liquid-btn:not(.vl-blog-cat--active) .vl-liquid-btn__text {
  color: color-mix(in srgb, var(--vl-news-ink) 88%, var(--vl-news-muted));
}

body.vl-blog-page .vl-blog-shell__title {
  margin: 0;
}

body.vl-blog-page .vl-blog-filters-row {
  gap: 0.75rem 1rem;
  margin-bottom: 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--vl-news-rule);
}

body.vl-blog-page .vl-blog-controls-row {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0.85rem 0 1rem;
  border-bottom: 1px solid var(--vl-news-rule);
}

body.vl-blog-page .vl-blog-select,
body.vl-blog-page .vl-blog-input {
  border-radius: 2px;
  border-color: var(--vl-news-input-border);
  background: var(--vl-news-input-bg);
  color: var(--vl-news-ink);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

body.vl-blog-page .vl-blog-clear:not(.vl-liquid-btn) {
  border-radius: 2px;
  border-color: var(--vl-news-input-border);
  background: var(--vl-news-input-bg);
  color: var(--vl-news-ink);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

body.vl-blog-page .vl-blog-select:focus,
body.vl-blog-page .vl-blog-select:hover,
body.vl-blog-page .vl-blog-input:focus {
  border-color: color-mix(in srgb, var(--vl-news-accent) 48%, var(--vl-news-ink));
  outline: none;
}

body.vl-blog-page .vl-blog-date-error {
  color: var(--vl-news-date-error);
}

body.vl-blog-page .vl-blog-filters-row .vl-blog-clear.vl-liquid-btn {
  align-self: center;
}

body.vl-blog-page .vl-blog-cat-skel {
  background: var(--vl-news-cat-skel);
}

body.vl-blog-page .vl-blog-icon-btn {
  border-radius: 2px;
  border: 1px solid transparent;
}

body.vl-blog-page .vl-blog-icon-btn:focus-visible {
  outline: 2px dashed var(--vl-news-ink);
  outline-offset: 2px;
}

body.vl-blog-page .vl-blog-icon-btn:hover {
  background: var(--vl-news-icon-hover-bg);
}

body.vl-blog-page .vl-blog-icon-btn--on {
  border-color: var(--vl-news-icon-border);
  background: var(--vl-news-icon-bg);
}

body.vl-blog-page .vl-blog-count {
  margin-top: 0.95rem;
  font-family: var(--font-primary, system-ui, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--vl-news-muted);
}

body.vl-blog-page #vl-blog-posts.vl-blog-posts-mount {
  margin-top: 0.85rem;
  padding-inline: 0;
}

body.vl-blog-page .vl-blog-error-inner {
  border-radius: 2px;
  border-color: var(--vl-news-error-inner-border);
  background: var(--vl-news-error-inner-bg);
  color: var(--vl-news-ink);
}

body.vl-blog-page .vl-blog-posts--list {
  gap: 0;
  max-width: none;
  margin-inline: 0;
}

body.vl-blog-page .vl-blog-item:hover {
  transform: none;
}

body.vl-blog-page .vl-blog-item--list {
  width: 100%;
  max-width: none;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--vl-news-rule);
  align-items: flex-start;
  border-radius: 0;
}

body.vl-blog-page .vl-blog-item--list:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

body.vl-blog-page .vl-blog-item--list:hover,
body.vl-blog-page .vl-blog-item--grid:hover {
  background: var(--vl-news-row-hover);
}

body.vl-blog-page .vl-blog-item__thumb {
  border-radius: 2px;
  border-color: var(--vl-news-thumb-border);
  background: var(--vl-news-thumb-bg);
  aspect-ratio: 16 / 10;
}

body.vl-blog-page .vl-blog-item--list .vl-blog-item__thumb {
  width: min(9.5rem, 32vw);
}

@media (min-width: 768px) {
  body.vl-blog-page .vl-blog-item--list .vl-blog-item__thumb {
    width: 11.5rem;
  }
}

body.vl-blog-page .vl-blog-item--grid .vl-blog-item__thumb {
  width: min(100%, 12rem);
  margin-inline: 0;
}

body.vl-blog-page .vl-blog-card-fallback {
  background: linear-gradient(145deg, var(--vl-news-fallback-a), var(--vl-news-fallback-b));
}

body.vl-blog-page .vl-blog-item--list .vl-blog-item__text {
  width: auto;
  flex: 1;
  min-width: 0;
  padding: 0.15rem 0 0;
}

body.vl-blog-page .vl-blog-item__title {
  font-family: var(--font-secondary, Georgia, "Times New Roman", serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--vl-news-ink);
}

body.vl-blog-page .vl-blog-item--list .vl-blog-item__title {
  font-size: clamp(1.05rem, 2.05vw, 1.35rem);
  line-height: 1.28;
}

body.vl-blog-page .vl-blog-item__meta {
  font-family: var(--font-primary, system-ui, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--vl-news-muted);
  opacity: 1;
}

body.vl-blog-page .vl-blog-item--list .vl-blog-item__meta {
  font-size: 0.72rem;
}

body.vl-blog-page .vl-blog-item__cat {
  font-weight: 700;
  color: var(--vl-news-ink);
}

body.vl-blog-page .vl-blog-posts--grid {
  column-gap: 1.25rem;
  row-gap: 1.75rem;
}

body.vl-blog-page .vl-blog-empty {
  border-radius: 2px;
  border-color: var(--vl-news-rule);
  background: var(--vl-news-empty-bg);
  color: var(--vl-news-ink);
  text-align: left;
}

body.vl-blog-page .vl-blog-empty__title {
  font-family: var(--font-secondary, Georgia, "Times New Roman", serif);
}

body.vl-blog-page .vl-blog-skel__pulse {
  background: var(--vl-news-skel-pulse);
}

body.vl-blog-page .vl-blog-skel__thumb {
  border: 1px solid var(--vl-news-skel-thumb-border);
  box-sizing: border-box;
  border-radius: 2px;
}

body.vl-blog-page .vl-blog-skel__line {
  background: var(--vl-news-skel-line);
}

body.vl-blog-page .vl-blog-loading-more__inner {
  border-radius: 2px;
  border-color: var(--vl-news-rule);
  background: var(--vl-news-loading-bg);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

body.vl-blog-page .vl-blog-spinner {
  border-color: var(--vl-news-spinner-track);
  border-top-color: var(--vl-news-ink);
}

body.vl-blog-page .vl-blog-end__line {
  background: var(--vl-news-rule);
}

body.vl-blog-page .vl-blog-end__text {
  color: var(--vl-news-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

body.vl-blog-page .vl-blog-loadmore-err p {
  color: var(--vl-news-loadmore-err);
}

body.vl-blog-page .vl-blog-newsletter {
  margin-top: 2.75rem;
  padding: 1.75rem 1.25rem 2rem;
  border: 3px double var(--vl-news-rule);
  border-radius: 2px;
  background: var(--vl-news-newsletter-bg);
}

body.vl-blog-page .vl-blog-newsletter__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-secondary, Georgia, "Times New Roman", serif);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.vl-blog-page .vl-blog-newsletter__lead {
  color: var(--vl-news-muted);
  opacity: 1;
}

body.vl-blog-page .vl-blog-newsletter__input {
  border-radius: 2px;
  border-color: var(--vl-news-input-border);
  background: var(--vl-news-newsletter-input-bg);
  color: var(--vl-news-ink);
}

body.vl-blog-page .vl-blog-newsletter__form .vl-liquid-btn {
  flex-shrink: 0;
}

@media (min-width: 640px) {
  body.vl-blog-page .vl-blog-newsletter__form .vl-liquid-btn {
    align-self: center;
  }
}

body.vl-blog-page.vl-news-dark .vl-blog-back-top {
  box-shadow: 0 4px 26px rgba(0, 0, 0, 0.42);
}

body.vl-blog-page .vl-blog-item--grid .vl-blog-item__title {
  font-size: clamp(0.95rem, 1.9vw, 1.1rem);
  line-height: 1.3;
  -webkit-line-clamp: 4;
}

body.vl-blog-page .vl-blog-item--grid .vl-blog-item__text {
  width: min(100%, 12rem);
}

body.vl-blog-page .vl-blog-skel--grid .vl-blog-skel__thumb {
  aspect-ratio: 16 / 10;
}

body.vl-blog-page .vl-blog-skel--list .vl-blog-skel__thumb {
  aspect-ratio: 16 / 10;
}

body.vl-blog-page .vl-home-blog__empty {
  padding: 1.25rem 0 0;
  text-align: left;
  color: var(--vl-news-muted);
}

.vl-blog-shell__intro {
  max-width: 46rem;
  margin: 0 0 1.25rem;
  opacity: 0.9;
}

/* Spacing only: type matches inner-page `.hero__title` from voltis-main.css */
.vl-blog-shell__title {
  margin: 0 0 1.5rem;
}

/* Article pages: cap oversized post titles on small screens. */
body.vl-article-post .vl-blog-article__header h1 {
  margin: 0;
  font-family: var(--font-primary, system-ui, sans-serif);
  font-size: clamp(1.5rem, 8vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.vl-blog-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vl-blog-filters-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.vl-blog-select-wrap {
  position: relative;
  min-width: 8rem;
}

.vl-blog-select {
  appearance: none;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  padding: 0.5rem 2rem 0.5rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
}

.vl-blog-select:hover,
.vl-blog-select:focus {
  border-color: rgba(255, 43, 43, 0.45);
  outline: none;
}

.vl-blog-select-wrap::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  opacity: 0.45;
  pointer-events: none;
}

.vl-blog-select--compact {
  font-size: 0.875rem;
}

.vl-blog-date-field {
  flex: 1 1 14rem;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vl-blog-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.vl-blog-input--invalid {
  border-color: rgba(255, 80, 80, 0.85);
}

.vl-blog-date-error {
  font-size: 0.8rem;
  color: #ff8a8a;
}

.vl-blog-clear:not(.vl-liquid-btn) {
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: inherit;
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  opacity: 0.85;
  cursor: pointer;
}

.vl-blog-clear:not(.vl-liquid-btn):hover {
  border-color: rgba(255, 43, 43, 0.45);
  opacity: 1;
}

.vl-blog-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.vl-blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: center;
  min-height: 2.25rem;
}

.vl-blog-cat-skel {
  display: inline-block;
  width: 3.5rem;
  height: 0.85rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  animation: vl-blog-pulse 1.2s ease-in-out infinite;
}

.vl-blog-controls-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vl-blog-view-toggle {
  display: flex;
  gap: 0.15rem;
}

.vl-blog-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 0.35rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.55;
}

.vl-blog-icon-btn:hover {
  opacity: 0.9;
}

.vl-blog-icon-btn--on {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.vl-blog-count {
  font-size: 0.875rem;
  opacity: 0.72;
  margin: 0 0 1rem;
}

.vl-blog-error-banner {
  margin-bottom: 1.5rem;
}

.vl-blog-error-inner {
  text-align: center;
  max-width: 24rem;
  margin-inline: auto;
  padding: 2rem 1rem;
  border: 1px solid rgba(255, 80, 80, 0.35);
  border-radius: 0.75rem;
  background: rgba(255, 40, 40, 0.06);
}

.vl-blog-error__title {
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.vl-blog-error__msg {
  margin: 0 0 1rem;
  line-height: 1.45;
  opacity: 0.9;
}

.vl-blog-posts-mount {
  min-height: 8rem;
}

.vl-blog-posts {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: start;
  column-gap: 1.5rem;
  row-gap: 2.5rem;
}

@media (min-width: 640px) {
  .vl-blog-posts--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .vl-blog-posts--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .vl-blog-posts--grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .vl-blog-posts--grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.vl-blog-posts--list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vl-blog-item {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.vl-blog-item:hover {
  transform: scale(1.03);
}

.vl-blog-item--grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  width: fit-content;
  max-width: 100%;
}

.vl-blog-item--list {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.vl-blog-item__thumb {
  width: 9.75rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .vl-blog-item__thumb {
    width: 12rem;
  }
}

.vl-blog-item__thumb {
  aspect-ratio: 310 / 300;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vl-blog-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Let the wrapping <a> receive the click (avoids image-drag / hit-target quirks in some browsers). */
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.vl-blog-card-fallback {
  width: 100%;
  height: 100%;
  min-height: 6rem;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
}

.vl-blog-item__text {
  width: 9.75rem;
  padding: 0.35rem 0 0;
}

@media (min-width: 768px) {
  .vl-blog-item__text {
    width: 12rem;
  }
}

.vl-blog-item--list .vl-blog-item__text {
  width: auto;
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0.5rem 0;
}

.vl-blog-item__title {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .vl-blog-item__title {
    font-size: 0.9375rem;
  }
}

.vl-blog-item--list .vl-blog-item__title {
  font-size: 1rem;
  -webkit-line-clamp: 3;
}

.vl-blog-item__meta {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.35;
  opacity: 0.75;
}

@media (min-width: 640px) {
  .vl-blog-item__meta {
    font-size: 0.8rem;
  }
}

.vl-blog-item--list .vl-blog-item__meta {
  font-size: 0.875rem;
}

.vl-blog-item__cat {
  font-weight: 700;
  opacity: 1;
}

.vl-blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.vl-blog-empty__icon {
  display: block;
  margin: 0 auto 1rem;
  opacity: 0.45;
}

.vl-blog-empty__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.vl-blog-empty__text {
  margin: 0 auto;
  max-width: 28rem;
  opacity: 0.75;
  line-height: 1.45;
}

.vl-blog-skel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: flex-start;
}

.vl-blog-skel--list {
  flex-direction: row;
  width: 100%;
  gap: 1rem;
}

.vl-blog-skel__thumb {
  width: 9.75rem;
  aspect-ratio: 310 / 300;
  border-radius: 10px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .vl-blog-skel__thumb {
    width: 12rem;
  }
}

.vl-blog-skel__pulse {
  width: 100%;
  height: 100%;
  min-height: 5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  animation: vl-blog-pulse 1s ease-in-out infinite;
}

.vl-blog-skel__lines {
  width: 9.75rem;
}

@media (min-width: 768px) {
  .vl-blog-skel__lines {
    width: 12rem;
  }
}

.vl-blog-skel__line {
  height: 0.65rem;
  margin-bottom: 0.4rem;
  border-radius: 4px;
}

.vl-blog-skel__line--short {
  width: 75%;
}

@keyframes vl-blog-pulse {
  50% {
    opacity: 0.45;
  }
}

.vl-blog-sentinel {
  height: 1px;
  margin-top: 1.5rem;
}

.vl-blog-loading-more {
  margin-top: 1.5rem;
}

.vl-blog-loading-more__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  font-size: 0.9rem;
}

.vl-blog-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  animation: vl-blog-spin 0.75s linear infinite;
}

@keyframes vl-blog-spin {
  to {
    transform: rotate(360deg);
  }
}

.vl-blog-loadmore-err {
  margin-top: 1rem;
  text-align: center;
}

.vl-blog-loadmore-err p {
  color: #ff9a9a;
  margin: 0 0 0.75rem;
}

.vl-blog-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  text-align: center;
}

.vl-blog-end__line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.vl-blog-end__text {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.65;
  white-space: nowrap;
}

.vl-blog-newsletter {
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.75rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}

.vl-blog-newsletter__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.vl-blog-newsletter__lead {
  margin: 0 auto 1.25rem;
  max-width: 32rem;
  opacity: 0.78;
  line-height: 1.5;
}

.vl-blog-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 28rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .vl-blog-newsletter__form {
    flex-direction: row;
  }
}

.vl-blog-newsletter__input {
  flex: 1;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
}

.vl-blog-back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.75);
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.vl-blog-back-top:hover {
  border-color: rgba(255, 43, 43, 0.45);
}
