/*
 * Gupy redesign v2 — blog pages (html/redesign/blog/*.php, behaviour in
 * js/redesign/gupy-v2-blog.js): article archive (+ category / tag archives),
 * article, collections archive, collection. The archive heroes and pills reuse the
 * archive page classes (gupy-v2-archive.css), "More articles" is a .gv2-section.
 * Every rule is scoped under gv2- classes: nothing here reaches the v1 blog markup.
 * Container widths / breakpoints follow .gv2-section (gupy-v2.css): 480 / 768 / 1024 / 1600.
 */

/* --------------------------------------------------------------------------
   Containers
   -------------------------------------------------------------------------- */

/* Article body and collection introduction use the page width too, aligned on
   the hero title: a narrow centred column read as cramped next to the full-width
   hero and sections. */
.gv2-blog__panel,
.gv2-blog-hero__inner,
.gv2-blog-article,
.gv2-ranking,
.gv2-blog-comments {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: 80px;
  box-sizing: border-box;
}
@media (max-width: 1024px) {
  .gv2-blog__panel,
  .gv2-blog-hero__inner,
  .gv2-blog-article,
  .gv2-ranking,
  .gv2-blog-comments {
    padding-inline: 40px;
  }
}
@media (max-width: 768px) {
  .gv2-blog__panel,
  .gv2-blog-hero__inner,
  .gv2-blog-article,
  .gv2-ranking,
  .gv2-blog-comments {
    padding-inline: 20px;
  }
}
@media (min-width: 1600px) {
  .gv2-blog__panel,
  .gv2-blog-hero__inner,
  .gv2-blog-article,
  .gv2-ranking,
  .gv2-blog-comments {
    max-width: 1920px;
    padding-inline: 160px;
  }
}
@media (min-width: 2200px) {
  .gv2-blog__panel,
  .gv2-blog-hero__inner,
  .gv2-blog-article,
  .gv2-ranking,
  .gv2-blog-comments {
    max-width: 2400px;
  }
}

.gv2-blog__panel {
  padding-block: 20px 60px;
}
.gv2-blog__empty {
  padding-block: 60px;
  text-align: center;
  color: var(--gv2-text-muted);
}
.gv2-blog__more {
  padding-block: 30px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Archive hero extras (eyebrow, category pills)
   -------------------------------------------------------------------------- */

.gv2-blog__eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--vrd-primary);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gv2-blog__eyebrow:hover {
  text-decoration: underline;
}
.gv2-blog .gv2-blog__cats {
  margin-top: 10px;
}
.gv2-blog .gv2-blog__cats a.gv2-filter-bar__pill {
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Article card + grid
   -------------------------------------------------------------------------- */

.gv2-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1024px) {
  .gv2-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .gv2-article-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.gv2-article-card {
  min-width: 0;
}
.gv2-article-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--gv2-surface);
  border: 1px solid var(--gv2-border);
  border-radius: var(--gv2-radius-md);
  overflow: hidden;
  color: var(--gv2-text);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.gv2-article-card__link:hover,
.gv2-article-card__link:focus-visible {
  color: var(--gv2-text);
  transform: translateY(-3px);
  border-color: var(--vrd-primary);
  box-shadow: var(--gv2-shadow);
}
.gv2-article-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--gv2-surface-alt);
  overflow: hidden;
}
.gv2-article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gv2-article-card__link:hover .gv2-article-card__thumb img {
  transform: scale(1.04);
}
.gv2-article-card__thumb.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gv2-text-dim);
  font-size: 40px;
}
.gv2-article-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: var(--gv2-radius-sm);
  background: var(--vrd-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gv2-article-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  padding: 18px 20px 20px;
}
.gv2-article-card__title {
  margin: 0;
  font-family: var(--gv2-font-heading);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  color: var(--gv2-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gv2-article-card__excerpt {
  margin: 0;
  color: var(--gv2-text-muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gv2-article-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: auto 0 0;
  padding-top: 4px;
  color: var(--gv2-text-dim);
  font-size: 12px;
  font-weight: 700;
}

/* First article of /blog/: full row, image beside the text. */
@media (min-width: 1025px) {
  .gv2-article-grid.has-featured > .gv2-article-card:first-child {
    grid-column: 1 / -1;
  }
  .gv2-article-grid.has-featured > .gv2-article-card:first-child .gv2-article-card__link {
    flex-direction: row;
  }
  .gv2-article-grid.has-featured > .gv2-article-card:first-child .gv2-article-card__thumb {
    flex: 0 0 60%;
    aspect-ratio: 16 / 8;
  }
  .gv2-article-grid.has-featured > .gv2-article-card:first-child .gv2-article-card__body {
    justify-content: center;
    padding: 40px;
    gap: 16px;
  }
  .gv2-article-grid.has-featured > .gv2-article-card:first-child .gv2-article-card__title {
    font-size: 34px;
  }
  .gv2-article-grid.has-featured > .gv2-article-card:first-child .gv2-article-card__excerpt {
    font-size: 16px;
    -webkit-line-clamp: 5;
  }
  .gv2-article-grid.has-featured > .gv2-article-card:first-child .gv2-article-card__meta {
    margin-top: 0;
  }
}

/* --------------------------------------------------------------------------
   Collection card + grid
   -------------------------------------------------------------------------- */

.gv2-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (min-width: 1600px) {
  .gv2-collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .gv2-collection-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.gv2-collection-card {
  min-width: 0;
}
.gv2-collection-card__link {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  height: 100%;
  border: 1px solid var(--gv2-border);
  border-radius: var(--gv2-radius-md);
  overflow: hidden;
  background: var(--gv2-surface);
  color: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.gv2-collection-card__link:hover,
.gv2-collection-card__link:focus-visible {
  color: #fff;
  transform: translateY(-3px);
  border-color: var(--vrd-primary);
  box-shadow: var(--gv2-shadow);
}
.gv2-collection-card__cover {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--vrd-primary), var(--gv2-surface-alt));
}
.gv2-collection-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.4s ease;
}
.gv2-collection-card__link:hover .gv2-collection-card__cover img {
  transform: scale(1.04);
}
.gv2-collection-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.05) 100%);
}
.gv2-collection-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px;
}
.gv2-collection-card__count {
  padding: 4px 10px;
  border-radius: var(--gv2-radius-sm);
  background: var(--vrd-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gv2-collection-card__title {
  margin: 0;
  font-family: var(--gv2-font-heading);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.gv2-collection-card__meta {
  display: flex;
  gap: 10px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 700;
}
.gv2-collection-card__private {
  color: var(--gv2-warning);
}
@media (max-width: 768px) {
  .gv2-collection-card__link {
    min-height: 200px;
  }
  .gv2-collection-card__title {
    font-size: 22px;
  }
}

/* --------------------------------------------------------------------------
   Article / collection hero (cover backdrop)
   -------------------------------------------------------------------------- */

.gv2-blog-hero {
  position: relative;
  isolation: isolate;
}
.gv2-blog-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.gv2-blog-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.gv2-blog-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--gv2-bg) 0%, rgba(var(--gv2-bg-rgb), 0.75) 40%, rgba(var(--gv2-bg-rgb), 0.25) 100%),
    linear-gradient(90deg, rgba(var(--gv2-bg-rgb), 0.85) 0%, rgba(var(--gv2-bg-rgb), 0.3) 70%);
}
.gv2-blog-hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 14px;
  padding-block: 40px 30px;
}
.gv2-blog-hero.has-cover .gv2-blog-hero__inner {
  min-height: 460px;
  padding-top: 60px;
}
.gv2-blog-hero__crumbs {
  color: var(--gv2-text-muted);
  font-size: 12px;
  margin-bottom: auto;
}
.gv2-blog-hero__crumbs a {
  color: inherit;
}
.gv2-blog-hero__crumbs a:hover {
  color: var(--vrd-primary);
}
.gv2-blog-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gv2-blog-hero__chip {
  padding: 5px 12px;
  border-radius: var(--gv2-radius-sm);
  background: var(--vrd-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gv2-blog-hero__chip:hover {
  color: #fff;
  filter: brightness(1.1);
}
.gv2-blog-hero__title {
  max-width: 1000px;
  margin: 0;
  font-family: var(--gv2-font-heading);
  font-weight: 800;
  font-size: 48px;
  line-height: 1.08;
  color: var(--gv2-text);
  text-shadow: var(--gv2-text-shadow);
}
.gv2-blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--gv2-text-muted);
  font-size: 14px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .gv2-blog-hero.has-cover .gv2-blog-hero__inner {
    min-height: 340px;
  }
  .gv2-blog-hero__title {
    font-size: 32px;
  }
}

/* --------------------------------------------------------------------------
   Share row
   -------------------------------------------------------------------------- */

.gv2-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.gv2-share__label {
  margin-right: 4px;
  color: var(--gv2-text-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gv2-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--gv2-border);
  border-radius: 50%;
  background: var(--gv2-glass-bg);
  color: var(--gv2-text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.gv2-share__btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.gv2-share__btn i {
  font-size: 15px;
}
.gv2-share__btn:hover,
.gv2-share__btn:focus-visible {
  background: var(--vrd-primary);
  border-color: var(--vrd-primary);
  color: #fff;
}
.gv2-share__copied {
  color: var(--gv2-success);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gv2-share__copied.is-visible {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Article body (prose)
   Element rules skip .gv2-prose-embed (program carousels inserted with the
   [gupy_programs] shortcode): the v2 cards keep their own typography. The block
   library stylesheet is not loaded on the site, so the core blocks an editor is
   likely to use (buttons, group, columns, details, pullquote, separator, table,
   embeds) are styled here.
   -------------------------------------------------------------------------- */

.gv2-blog-article {
  padding-block: 30px 10px;
}
.gv2-blog-intro {
  padding-bottom: 0;
}
.gv2-prose {
  color: var(--gv2-text);
  font-family: var(--gv2-font-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: break-word;
}
.gv2-prose > :first-child {
  margin-top: 0;
}
.gv2-prose .is-style-lead {
  color: var(--gv2-text);
  font-size: 1.2em;
  line-height: 1.6;
}
/* :where() keeps this at (0,2,0): block rules below (columns, groups, details) override it. */
.gv2-prose :where(p, ul, ol, figure, blockquote, table, details, .wp-block-buttons, .wp-block-columns, .wp-block-group):not(.gv2-prose-embed *) {
  margin: 0 0 1.3em;
}
.gv2-prose :is(h2, h3, h4):not(.gv2-prose-embed *) {
  margin: 1.8em 0 0.6em;
  font-family: var(--gv2-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gv2-text);
}
.gv2-prose h2:not(.gv2-prose-embed *) {
  font-size: 30px;
}
.gv2-prose h3:not(.gv2-prose-embed *) {
  font-size: 24px;
}
.gv2-prose h4:not(.gv2-prose-embed *) {
  font-size: 20px;
}
.gv2-prose a:not([class]):not(.gv2-prose-embed *) {
  color: var(--vrd-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.gv2-prose strong {
  color: inherit;
}
.gv2-prose :is(ul, ol):not(.gv2-prose-embed *) {
  padding-left: 1.4em;
}
.gv2-prose li:not(.gv2-prose-embed *) + li {
  margin-top: 0.35em;
}
/* The theme removes list markers everywhere: back for the article lists. */
.gv2-prose ul:is(:not([class]), .wp-block-list) {
  list-style: disc;
}
.gv2-prose ol:is(:not([class]), .wp-block-list) {
  list-style: decimal;
}
.gv2-prose :is(ul, ol):is(:not([class]), .wp-block-list) > li {
  list-style: inherit;
}
.gv2-prose :is(ul, ol):is(:not([class]), .wp-block-list) > li::marker {
  color: var(--vrd-primary);
  font-weight: 900;
}
.gv2-prose :is(img, video, iframe):not(.gv2-prose-embed *) {
  max-width: 100%;
  height: auto;
  border-radius: var(--gv2-radius-md);
}
.gv2-prose iframe:is([src*="youtube"], [src*="vimeo"], [src*="dailymotion"]),
.gv2-prose .wp-block-embed__wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.gv2-prose figure:not(.gv2-prose-embed *) {
  max-width: 100%;
}
/* Full-size images (2000px+ width attributes) would fill the whole page width:
   capped in height and centred, a portrait poster stays a poster. */
.gv2-prose .wp-block-image,
.gv2-prose .wp-caption {
  text-align: center;
}
.gv2-prose .wp-block-image img,
.gv2-prose .wp-caption img,
.gv2-prose p > img,
.gv2-prose p > a > img {
  display: block;
  width: auto;
  max-height: min(640px, 75vh);
  margin-inline: auto;
  object-fit: contain;
}
.gv2-prose .aligncenter {
  display: block;
  margin-inline: auto;
}
.gv2-prose .alignleft {
  float: left;
  margin: 0.3em 1.5em 1em 0;
}
.gv2-prose .alignright {
  float: right;
  margin: 0.3em 0 1em 1.5em;
}
.gv2-prose::after {
  content: "";
  display: table;
  clear: both;
}
.gv2-prose :is(figcaption, .wp-caption-text, .wp-element-caption) {
  margin-top: 8px;
  color: var(--gv2-text-muted);
  font-size: 13px;
  text-align: center;
}
.gv2-prose .wp-caption {
  max-width: 100%;
}
.gv2-prose blockquote:not(.gv2-prose-embed *) {
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--vrd-primary);
  color: var(--gv2-text-muted);
  font-size: 19px;
  font-style: italic;
}
.gv2-prose blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  color: var(--gv2-text-dim);
}
.gv2-prose .wp-block-pullquote {
  margin: 2em 0;
  padding: 30px 0;
  border-block: 2px solid var(--vrd-primary);
  text-align: center;
}
.gv2-prose .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--gv2-text);
  font-family: var(--gv2-font-heading);
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25;
}
.gv2-prose hr,
.gv2-prose .wp-block-separator {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid var(--gv2-border);
}
.gv2-prose table:not(.gv2-prose-embed *) {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.gv2-prose .wp-block-table {
  overflow-x: auto;
}
/* The parent theme styles every table with `table:not(#wp-calendar) ...` (an ID
   in the specificity): T = table:not(#gv2-t1):not(#gv2-t2) outranks it. */
.gv2-prose table:not(#gv2-t1):not(#gv2-t2) :is(tr, th, td) {
  background: transparent;
  font-weight: 400;
  letter-spacing: 0;
}
.gv2-prose table:not(#gv2-t1):not(#gv2-t2) :is(th, td) {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--gv2-border);
  color: var(--gv2-text);
  text-align: left;
}
.gv2-prose table:not(#gv2-t1):not(#gv2-t2) thead th {
  border-bottom: 2px solid var(--vrd-primary);
  background: var(--gv2-surface);
  font-weight: 900;
}
.gv2-prose table:not(#gv2-t1):not(#gv2-t2) tbody tr:nth-child(even) td {
  background: rgba(var(--gv2-fg-rgb), 0.03);
}
.gv2-prose table:not(#gv2-t1):not(#gv2-t2) tbody td:first-child {
  font-weight: 900;
}

/* Buttons (core/buttons): call to action, primary by default, outline style too. */
.gv2-prose .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.gv2-prose .wp-block-buttons.is-content-justification-center {
  justify-content: center;
}
.gv2-prose .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--vrd-primary);
  border-radius: var(--gv2-radius-sm);
  background: var(--vrd-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  transition: filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.gv2-prose .wp-block-button__link:hover {
  color: #fff;
  filter: brightness(1.1);
}
.gv2-prose .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--gv2-text);
  border-color: var(--gv2-glass-border);
}
.gv2-prose .is-style-outline .wp-block-button__link:hover {
  border-color: var(--vrd-primary);
  color: var(--vrd-primary);
  filter: none;
}

/* Group (core/group) with a background: callout box. Extra class gv2-cta
   (Advanced > Additional CSS class) turns it into the pink call-to-action banner. */
.gv2-prose .wp-block-group.has-background {
  padding: 28px 32px;
  border: 1px solid var(--gv2-border);
  border-radius: var(--gv2-radius-lg);
  background: var(--gv2-surface) !important;
}
/* Without block layout support the group keeps a .wp-block-group__inner-container. */
.gv2-prose .wp-block-group > :first-child,
.gv2-prose .wp-block-group__inner-container > :first-child {
  margin-top: 0;
}
.gv2-prose .wp-block-group > :last-child,
.gv2-prose .wp-block-group__inner-container > :last-child {
  margin-bottom: 0;
}
.gv2-prose .wp-block-group.gv2-cta {
  padding: 36px 40px;
  border: 0;
  border-radius: var(--gv2-radius-lg);
  background: linear-gradient(120deg, var(--vrd-primary) 0%, #7b1fa2 100%) !important;
  color: #fff;
}
.gv2-prose .gv2-cta :is(h2, h3, h4, p, strong) {
  color: #fff;
}
.gv2-prose .gv2-cta .wp-block-button__link {
  background: #fff;
  border-color: #fff;
  color: var(--vrd-primary);
}
.gv2-prose .gv2-cta .wp-block-button__link:hover {
  color: var(--vrd-primary);
}
.gv2-prose .gv2-cta .is-style-outline .wp-block-button__link {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* Columns (core/columns). Extra class gv2-steps: one card per column. */
.gv2-prose .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.gv2-prose .wp-block-column {
  min-width: 0;
}
.gv2-prose .wp-block-columns.gv2-steps .wp-block-column {
  padding: 24px;
  border: 1px solid var(--gv2-border);
  border-radius: var(--gv2-radius-md);
  background: var(--gv2-surface);
}
.gv2-prose .wp-block-column > :first-child {
  margin-top: 0;
}
.gv2-prose .wp-block-column > :last-child {
  margin-bottom: 0;
}
.gv2-prose .gv2-steps .wp-block-column h3 {
  font-size: 20px;
}
.gv2-prose .gv2-steps .wp-block-column p {
  color: var(--gv2-text-muted);
  font-size: 15px;
  line-height: 1.6;
}
.gv2-prose .gv2-steps .wp-block-column p.gv2-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--vrd-primary);
  color: #fff;
  font-family: var(--gv2-font-heading);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}
.gv2-prose .gv2-steps .gv2-step-num + h3 {
  margin-top: 0;
}

/* Details (core/details): FAQ. */
/* style.css dresses .wp-block-details for v1 (pink gradient, padding, shadow,
   hover lift, animation): reset here. */
.gv2-prose details,
.gv2-prose details.wp-block-details,
.gv2-prose details.wp-block-details[open],
.gv2-prose details.wp-block-details:hover {
  padding: 0;
  border: 1px solid var(--gv2-border);
  border-radius: var(--gv2-radius-md);
  background: var(--gv2-surface);
  box-shadow: none;
  transform: none;
  animation: none;
}
.gv2-prose details.wp-block-details[open] {
  border-color: rgba(var(--gv2-fg-rgb), 0.18);
}
.gv2-prose .wp-block-details summary {
  font-size: inherit;
  color: var(--gv2-text);
}
.gv2-prose .wp-block-details p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gv2-text-muted);
}
.gv2-prose details + details {
  margin-top: -0.7em;
}
.gv2-prose summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}
.gv2-prose summary::-webkit-details-marker {
  display: none;
}
.gv2-prose summary::after,
.gv2-prose .wp-block-details summary::after {
  content: "\f067"; /* Font Awesome plus / minus */
  flex: 0 0 auto;
  color: var(--vrd-primary);
  font-family: "Font Awesome 6 Free";
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  transform: none;
}
.gv2-prose details[open] summary::after,
.gv2-prose .wp-block-details[open] summary::after {
  content: "\f068";
  transform: none;
}
.gv2-prose details.wp-block-details > :not(summary),
.gv2-prose details:not([class]) > :not(summary) {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--gv2-text-muted);
}

/* [gupy_programs]: a v2 poster carousel inside the article. */
.gv2-prose .gv2-prose-embed {
  margin-block: 1.8em;
}
.gv2-prose-embed__title {
  margin: 0 0 10px;
  font-family: var(--gv2-font-heading);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--gv2-text);
}

@media (max-width: 768px) {
  .gv2-prose {
    font-size: 16px;
  }
  .gv2-prose h2:not(.gv2-prose-embed *) {
    font-size: 25px;
  }
  .gv2-prose h3:not(.gv2-prose-embed *) {
    font-size: 21px;
  }
  .gv2-prose .alignleft,
  .gv2-prose .alignright {
    float: none;
    margin: 0 0 1.3em;
  }
  .gv2-prose .wp-block-group.has-background,
  .gv2-prose .wp-block-group.gv2-cta {
    padding: 24px 20px;
  }
  .gv2-prose .wp-block-pullquote blockquote {
    font-size: 23px;
  }
}

.gv2-blog-article__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--gv2-border);
}
.gv2-blog-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gv2-blog-article__tags a {
  padding: 5px 12px;
  border: 1px solid var(--gv2-border);
  border-radius: 999px;
  background: var(--gv2-surface);
  color: var(--gv2-text-muted);
  font-size: 13px;
  font-weight: 700;
}
.gv2-blog-article__tags a:hover {
  border-color: var(--vrd-primary);
  color: var(--vrd-primary);
}

/* --------------------------------------------------------------------------
   Collection: ranked list
   -------------------------------------------------------------------------- */

.gv2-ranking {
  padding-block: 30px 60px;
}
.gv2-ranking__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gv2-ranking__item {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 170px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
  border: 1px solid var(--gv2-border);
  border-radius: var(--gv2-radius-lg);
  background: var(--gv2-surface);
  overflow: hidden;
}
.gv2-ranking__item:not(:has(.gv2-ranking__rank)) {
  grid-template-columns: 170px minmax(0, 1fr);
}
.gv2-ranking__bg {
  position: absolute;
  inset: 0 0 0 auto;
  width: 60%;
  z-index: -1;
  opacity: 0.35;
}
.gv2-ranking__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gv2-ranking__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gv2-surface) 0%, rgba(var(--gv2-bg-rgb), 0.4) 60%, rgba(var(--gv2-bg-rgb), 0.2) 100%);
}
.gv2-ranking__rank {
  min-width: 2.2ch;
  font-family: var(--gv2-font-heading);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--vrd-primary);
  text-align: center;
}
.gv2-ranking__poster {
  min-width: 0;
}
.gv2-ranking__poster .gv2-poster-card {
  width: 100%;
}
.gv2-ranking__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.gv2-ranking__title {
  margin: 0;
  font-family: var(--gv2-font-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
}
.gv2-ranking__title a {
  color: var(--gv2-text);
}
.gv2-ranking__title a:hover {
  color: var(--vrd-primary);
}
.gv2-ranking__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0;
  color: var(--gv2-text-muted);
  font-size: 13px;
  font-weight: 700;
}
.gv2-ranking__plot {
  max-width: 900px;
  margin: 0;
  color: var(--gv2-text-muted);
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gv2-ranking__cast {
  margin: 0;
  color: var(--gv2-text-muted);
  font-size: 13px;
}
.gv2-ranking__cast a {
  color: var(--gv2-text);
  font-weight: 700;
}
.gv2-ranking__cast a:hover {
  color: var(--vrd-primary);
}
.gv2-ranking__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 18px;
  border-radius: var(--gv2-radius-sm);
  background: var(--vrd-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.gv2-ranking__btn:hover {
  color: #fff;
  filter: brightness(1.1);
}
@media (max-width: 768px) {
  .gv2-ranking__item,
  .gv2-ranking__item:not(:has(.gv2-ranking__rank)) {
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 16px;
  }
  .gv2-ranking__rank {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    min-width: 0;
    padding: 2px 8px;
    border-radius: var(--gv2-radius-sm);
    background: var(--vrd-primary);
    color: #fff;
    font-size: 18px;
  }
  .gv2-ranking__bg {
    width: 100%;
    opacity: 0.18;
  }
  .gv2-ranking__title {
    font-size: 21px;
  }
  .gv2-ranking__plot {
    font-size: 14px;
    -webkit-line-clamp: 3;
  }
  .gv2-ranking__cast {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   More articles, comments
   -------------------------------------------------------------------------- */

.gv2-blog-comments {
  padding-block: 10px 60px;
  color: var(--gv2-text);
}
