.vg-hero,
.vg-topic-hero,
.vg-article-header {
  padding: 72px 0 42px;
}

.vg-home-hero {
  padding-top: 42px;
}

.vg-home-hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 48px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--vg-radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 239, 231, 0.82)),
    var(--vg-paper);
  box-shadow: var(--vg-shadow-panel);
  padding: clamp(28px, 5vw, 64px);
}

.vg-home-hero-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.52), rgba(255, 177, 77, 0.10));
  pointer-events: none;
}

.vg-home-hero-copy,
.vg-resource-preview {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.vg-kicker,
.vg-meta {
  margin: 0 0 12px;
  color: rgba(30, 30, 30, 0.46);
  font-family: var(--vg-font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.vg-hero h1,
.vg-topic-hero h1,
.vg-article-header h1 {
  max-width: 940px;
  margin: 0;
  color: #000;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 700;
  line-height: 1;
}

.vg-topic-hero h1,
.vg-article-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
}

.vg-hero-copy,
.vg-excerpt {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--vg-text-secondary);
  font-family: var(--vg-font-ui);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.55;
}

.vg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.vg-resource-preview {
  overflow: hidden;
  border: 1px solid var(--vg-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(255, 144, 0, 0.13);
}

.vg-resource-preview-bar {
  display: flex;
  gap: 7px;
  border-bottom: 1px solid var(--vg-border);
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.76);
}

.vg-resource-preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.16);
}

.vg-resource-preview-body {
  padding: clamp(24px, 4vw, 36px);
}

.vg-resource-preview-body h2 {
  margin: 0;
  color: #000;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.vg-resource-feature {
  margin-top: 26px;
  border: 1px solid rgba(255, 144, 0, 0.42);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(255, 144, 0, 0.12);
  padding: 22px;
}

.vg-resource-feature span,
.vg-resource-feature small {
  display: block;
  color: var(--vg-text-secondary);
  font-family: var(--vg-font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.vg-resource-feature strong {
  display: block;
  margin: 8px 0;
  color: var(--vg-text-primary);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.18;
}

.vg-resource-feature-empty {
  border-color: var(--vg-border);
  box-shadow: var(--vg-shadow-soft);
}

.vg-resource-preview-lines {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.vg-resource-preview-lines span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: var(--vg-bg-frame);
}

.vg-resource-preview-lines span:nth-child(1) {
  width: 86%;
}

.vg-resource-preview-lines span:nth-child(2) {
  width: 64%;
}

.vg-resource-preview-lines span:nth-child(3) {
  width: 72%;
}

.vg-section {
  padding: 68px 0;
}

.vg-section-muted {
  background: rgba(248, 248, 247, 0.72);
}

.vg-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.vg-section-heading h2 {
  margin: 0;
  color: #000;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.05;
}

.vg-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.vg-topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.vg-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--vg-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--vg-shadow-soft);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.vg-card:hover {
  box-shadow: var(--vg-shadow-card);
  transform: translateY(-3px);
}

.vg-card a {
  display: grid;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.vg-card-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--vg-bg-frame);
}

.vg-card-media img,
.vg-article-thumb img,
.vg-topic-image,
.vg-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vg-card-body {
  position: relative;
  min-width: 0;
  padding: 22px;
}

.vg-card h3 {
  margin: 0;
  color: #000;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.16;
}

.vg-card p:not(.vg-meta) {
  margin: 10px 0 0;
  color: var(--vg-text-secondary);
  font-family: var(--vg-font-ui);
  line-height: 1.55;
}

.vg-card-placeholder {
  position: relative;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 177, 77, 0.14)),
    var(--vg-bg-frame);
}

.vg-card-placeholder::before,
.vg-card-placeholder::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.10);
}

.vg-card-placeholder::before {
  width: 46%;
  height: 14px;
  left: 10%;
  bottom: 22%;
}

.vg-card-placeholder::after {
  width: 30%;
  height: 14px;
  left: 10%;
  bottom: 13%;
}

.vg-card-arrow {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  border: 1px solid rgba(255, 144, 0, 0.38);
  border-radius: 999px;
  background: #FFF8EE;
  color: var(--vg-amber-dark);
  font-size: 1.1rem;
  font-weight: 700;
}

.vg-empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--vg-border-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--vg-shadow-soft);
  padding: 34px;
}

.vg-empty-state h3 {
  margin: 0;
  color: var(--vg-text-primary);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.22;
}

.vg-article-list {
  display: grid;
  gap: 18px;
}

.vg-article-row {
  overflow: hidden;
  border: 1px solid var(--vg-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--vg-shadow-soft);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.vg-article-row:hover {
  box-shadow: var(--vg-shadow-card);
  transform: translateY(-2px);
}

.vg-article-row-link {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 180px;
  color: inherit;
  padding: 14px 22px 14px 14px;
  text-decoration: none;
}

.vg-article-thumb {
  height: 152px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--vg-bg-frame);
}

.vg-article-row-body {
  min-width: 0;
}

.vg-article-row h2,
.vg-article-row h3 {
  margin: 0;
  color: #000;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.vg-article-row p:last-child {
  max-width: 740px;
  margin: 10px 0 0;
  color: var(--vg-text-secondary);
  font-family: var(--vg-font-ui);
  line-height: 1.58;
}

.vg-topic-hero {
  padding-top: 58px;
}

.vg-topic-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: 52px;
  align-items: center;
}

.vg-topic-hero-copy {
  min-width: 0;
}

.vg-topic-intro {
  max-width: 720px;
  margin-top: 22px;
  color: var(--vg-text-secondary);
  font-family: var(--vg-font-ui);
  font-size: 1.08rem;
  line-height: 1.65;
}

.vg-topic-intro p {
  margin: 0;
}

.vg-topic-visual {
  overflow: hidden;
  border: 1px solid var(--vg-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--vg-shadow-card);
  padding: 10px;
}

.vg-topic-image {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: var(--vg-bg-frame);
}

.vg-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--vg-text-secondary);
  font-family: var(--vg-font-ui);
  font-size: 0.92rem;
}

.vg-breadcrumbs a {
  color: var(--vg-text-primary);
  font-weight: 600;
  text-decoration: none;
}

.vg-breadcrumbs a:hover {
  color: var(--vg-cta-strong);
}

.vg-article-header {
  padding-top: 42px;
}

.vg-article-header-card {
  max-width: 980px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 239, 231, 0.82)),
    var(--vg-paper);
  box-shadow: var(--vg-shadow-panel);
  padding: clamp(28px, 5vw, 58px);
}

.vg-featured-image {
  overflow: hidden;
  margin: 0 0 48px;
  border: 1px solid var(--vg-border);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--vg-shadow-card);
  padding: 10px;
}

.vg-featured-image img {
  aspect-ratio: 16 / 8.5;
  border-radius: 22px;
  background: var(--vg-bg-frame);
}

.vg-article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--vg-readable));
  justify-content: center;
}

.vg-prose {
  color: var(--vg-text-primary);
  font-family: var(--vg-font-ui);
  font-size: 1.08rem;
  line-height: 1.78;
}

.vg-prose > * + * {
  margin-top: 1.35rem;
}

.vg-prose h2 {
  margin: 2.5rem 0 0.8rem;
  color: #000;
  font-family: var(--vg-font-brand);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.12;
}

.vg-prose h3 {
  margin: 2rem 0 0.65rem;
  color: #000;
  font-family: var(--vg-font-brand);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.18;
}

.vg-prose h4 {
  margin: 1.7rem 0 0.55rem;
  color: #000;
  font-family: var(--vg-font-brand);
  font-size: 1.15rem;
  line-height: 1.25;
}

.vg-prose p,
.vg-prose li {
  color: var(--vg-text-primary);
}

.vg-prose a {
  color: var(--vg-text-primary);
  font-weight: 700;
  text-decoration-color: rgba(255, 144, 0, 0.55);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

.vg-prose ul,
.vg-prose ol {
  padding-left: 1.35rem;
}

.vg-prose li + li {
  margin-top: 0.45rem;
}

.vg-figure,
.vg-before-after {
  margin: 2.4rem 0;
}

.vg-figure {
  overflow: hidden;
  border: 1px solid var(--vg-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--vg-shadow-soft);
  padding: 10px;
}

.vg-figure img {
  width: 100%;
  border-radius: 17px;
  background: var(--vg-bg-frame);
}

.vg-figure figcaption,
.vg-before-after figcaption {
  margin: 12px 4px 2px;
  color: var(--vg-text-secondary);
  font-family: var(--vg-font-ui);
  font-size: 0.92rem;
  line-height: 1.5;
}

.vg-before-after {
  overflow: hidden;
  border: 1px solid rgba(255, 144, 0, 0.42);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(255, 144, 0, 0.13);
  padding: 10px;
}

.vg-before-after-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 20px;
  background: var(--vg-bg-frame);
}

.vg-before-after-layer {
  position: absolute;
  inset: 0;
}

.vg-before-after-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vg-before-after-layer span {
  position: absolute;
  top: 16px;
  z-index: 2;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--vg-font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.vg-before-after-layer-before {
  z-index: 2;
  clip-path: polygon(0 0, 52% 0, 52% 100%, 0 100%);
  transition: clip-path 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.vg-before-after:hover .vg-before-after-layer-before {
  clip-path: polygon(0 0, 64% 0, 64% 100%, 0 100%);
}

.vg-before-after-layer-before span {
  left: 16px;
  background: rgba(255, 255, 255, 0.90);
  color: var(--vg-ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.vg-before-after-layer-after span {
  right: 16px;
  background: rgba(255, 248, 238, 0.92);
  color: var(--vg-amber-dark);
  box-shadow: 0 10px 26px rgba(255, 144, 0, 0.18);
}

.vg-before-after-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  z-index: 3;
  width: 3px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
  transition: left 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.vg-before-after:hover .vg-before-after-edge {
  left: 64%;
}

.vg-callout,
.vg-inline-cta,
.vg-final-cta {
  border: 1px solid var(--vg-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--vg-shadow-soft);
}

.vg-callout {
  border-left: 6px solid var(--vg-cta-strong);
  padding: 24px;
}

.vg-callout-warning {
  border-left-color: #B84A3A;
}

.vg-callout-note {
  border-left-color: var(--vg-green);
}

.vg-callout-important {
  border-left-color: #000;
}

.vg-callout p:first-child {
  margin-top: 0;
}

.vg-callout p:last-child {
  margin-bottom: 0;
}

.vg-inline-cta,
.vg-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.vg-inline-cta {
  border-color: rgba(255, 144, 0, 0.32);
  box-shadow: 0 18px 46px rgba(255, 144, 0, 0.10);
}

.vg-inline-cta h2,
.vg-final-cta h2 {
  margin: 0;
  color: #000;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.12;
}

.vg-inline-cta p {
  margin: 10px 0 0;
  color: var(--vg-text-secondary);
}

.vg-final-cta-wrap {
  max-width: 980px;
}

.vg-final-cta {
  border-color: rgba(255, 144, 0, 0.30);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 238, 0.88)),
    #fff;
  box-shadow: 0 20px 60px rgba(255, 144, 0, 0.14);
}

.vg-faq {
  display: grid;
  gap: 12px;
  margin: 2.4rem 0;
}

.vg-faq details {
  border: 1px solid var(--vg-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--vg-shadow-soft);
  padding: 18px 20px;
}

.vg-faq summary {
  cursor: pointer;
  color: #000;
  font-family: var(--vg-font-brand);
  font-weight: 700;
}

.vg-faq details div {
  margin-top: 14px;
  color: var(--vg-text-secondary);
}

.vg-related-card {
  background: #fff;
}

.vg-featured-image figcaption,
.vg-figure figcaption,
.vg-table-block figcaption {
  display: grid;
  gap: 4px;
  padding: 12px 4px 0;
  color: var(--vg-text-secondary);
  font-size: 0.88rem;
  line-height: 1.45;
}

.vg-key-takeaways,
.vg-table-block,
.vg-sources {
  margin: 2.4rem 0;
}

.vg-key-takeaways {
  border: 1px solid rgba(255, 144, 0, 0.28);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 238, 0.88)),
    #fff;
  box-shadow: 0 18px 46px rgba(255, 144, 0, 0.10);
  padding: 24px;
}

.vg-key-takeaways h2,
.vg-sources h2 {
  margin: 0 0 16px;
  color: #000;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.vg-key-takeaways ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vg-key-takeaways li {
  position: relative;
  padding-left: 26px;
  color: var(--vg-text-primary);
  line-height: 1.55;
}

.vg-key-takeaways li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--vg-cta);
  box-shadow: 0 0 0 5px rgba(255, 177, 77, 0.22);
}

.vg-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--vg-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--vg-shadow-soft);
}

.vg-table-block table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.vg-table-block th,
.vg-table-block td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--vg-border);
  text-align: left;
  vertical-align: top;
}

.vg-table-block th {
  color: #000;
  background: var(--vg-bg-frame);
  font-family: var(--vg-font-brand);
  font-weight: 800;
}

.vg-table-block tr:last-child td {
  border-bottom: 0;
}

.vg-sources {
  border-top: 1px solid var(--vg-border);
  padding-top: 28px;
}

.vg-sources ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 1.35rem;
}

.vg-sources li {
  color: var(--vg-text-secondary);
  line-height: 1.5;
}

.vg-sources li a {
  display: block;
  color: #000;
  font-weight: 800;
  text-decoration: none;
}

.vg-sources li a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vg-sources li span {
  display: inline-block;
  margin-right: 10px;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .vg-home-hero-panel,
  .vg-topic-hero-grid {
    grid-template-columns: 1fr;
  }

  .vg-resource-preview {
    max-width: 620px;
  }

  .vg-article-row-link {
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  }

  .vg-article-row-link > .vg-card-arrow {
    display: none;
  }

  .vg-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .vg-hero,
  .vg-topic-hero,
  .vg-article-header {
    padding: 32px 0 28px;
  }

  .vg-home-hero-panel {
    border-radius: 26px;
    padding: 24px;
  }

  .vg-section {
    padding: 48px 0;
  }

  .vg-article-row-link {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .vg-article-thumb {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .vg-article-row-body {
    padding: 4px 8px 10px;
  }

  .vg-topic-visual,
  .vg-featured-image,
  .vg-before-after,
  .vg-figure {
    border-radius: 22px;
  }

  .vg-inline-cta,
  .vg-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .vg-before-after-frame {
    aspect-ratio: 4 / 3;
  }

  .vg-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .vg-related-grid {
    grid-template-columns: 1fr;
  }

  .vg-topic-grid {
    grid-template-columns: 1fr;
  }

  .vg-resource-preview-body,
  .vg-card-body,
  .vg-empty-state,
  .vg-inline-cta,
  .vg-final-cta {
    padding: 20px;
  }

  .vg-before-after-layer span {
    top: 10px;
    padding: 6px 9px;
    font-size: 0.66rem;
  }

  .vg-before-after-layer-before span {
    left: 10px;
  }

  .vg-before-after-layer-after span {
    right: 10px;
  }
}
