/**
 * Grove Web Digital — Enterprise Blog / Publication System
 */

.gw-be,
.gw-be-detail {
  --be-heading: var(--color-text-heading, #13009a);
  --be-body: var(--color-text-body, #1b1b1b);
  --be-green: var(--color-button-primary-bg, #137f15);
  --be-surface: var(--color-surface-raised, #ffffff);
  --be-canvas: var(--color-surface-body, #f9fafb);
  background: var(--be-canvas);
}

.gw-be-hero,
.gw-be-detail-hero {
  position: relative;
  overflow: hidden;
  padding: 3.25rem 0 2rem;
  background:
    radial-gradient(ellipse 70% 55% at 85% 0%, color-mix(in srgb, var(--be-heading) 9%, transparent), transparent 55%),
    radial-gradient(ellipse 40% 40% at 0% 100%, color-mix(in srgb, var(--be-green) 6%, transparent), transparent 55%),
    var(--be-canvas);
}

/* Blog / case studies hub hero — homepage-matched split (see page-hero-hub.css) */
.gw-be-hero > .container {
  position: relative;
  z-index: 1;
}

.gw-be-hero__glow {
  position: absolute;
  width: 18rem;
  height: 18rem;
  top: -6rem;
  right: -3rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--be-heading) 16%, transparent);
  filter: blur(56px);
  pointer-events: none;
}

.gw-be-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--be-body) 70%, transparent);
}

.gw-be-breadcrumb a {
  color: var(--be-heading);
  font-weight: 600;
  text-decoration: none;
}

.gw-be-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--be-green);
}

.gw-be-hero__title,
.gw-be-detail-hero__title {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.125rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--be-heading);
  line-height: 1.08;
}

.gw-be-hero__desc,
.gw-be-detail-hero__lead {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--be-body);
}

.gw-be-toolbar {
  padding: 1.25rem 1rem 0.5rem;
  display: grid;
  gap: 1rem;
}

.gw-be-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  max-width: 40rem;
}

.gw-be-search input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid color-mix(in srgb, var(--be-heading) 14%, transparent);
  background: var(--be-surface);
  color: var(--be-body);
}

.gw-be-btn,
.gw-be-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gw-be-btn--primary,
.gw-be-search button {
  color: #ffffff !important;
  background: #137f15 !important;
  background: var(--be-green, #137f15) !important;
  border: 1px solid #137f15;
  box-shadow: 0 0 20px color-mix(in srgb, #137f15 28%, transparent);
}

.gw-be-btn--ghost {
  color: var(--be-heading, #13009a);
  background: var(--be-surface, #ffffff);
  border: 1px solid color-mix(in srgb, var(--be-heading, #13009a) 18%, transparent);
}

.gw-be-btn:hover,
.gw-be-search button:hover {
  transform: translateY(-2px);
}

.gw-be-btn--primary:hover,
.gw-be-search button:hover {
  background: #0f6b12 !important;
  color: #ffffff !important;
}

.gw-be-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.gw-be-filter {
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--be-heading);
  background: var(--be-surface);
  border: 1px solid color-mix(in srgb, var(--be-heading) 12%, transparent);
}

.gw-be-filter.is-active,
.gw-be-filter:hover {
  color: #ffffff;
  background: var(--be-heading);
  border-color: var(--be-heading);
}

.gw-be-main { padding: 1rem 1rem 4rem; }
.gw-be-count {
  margin: 0 0 1.15rem;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--be-body) 72%, transparent);
}

.gw-be-featured {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--be-surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--be-heading) 10%, transparent);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--be-heading) 8%, transparent);
}

@media (min-width: 960px) {
  .gw-be-featured {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

.gw-be-featured h2 {
  margin: 0.5rem 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--be-heading);
}

.gw-be-featured h2 a {
  color: inherit;
  text-decoration: none;
}

.gw-be-featured p {
  color: var(--be-body);
  line-height: 1.6;
}

.gw-be-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .gw-be-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .gw-be-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.gw-be-grid--related {
  margin-top: 1.25rem;
}

.gw-be-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.1rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--be-surface) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--be-heading) 12%, transparent);
  box-shadow:
    0 12px 32px color-mix(in srgb, var(--be-heading) 8%, transparent),
    0 0 0 1px color-mix(in srgb, #ffffff 4%, transparent) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: gw-be-fade 0.55s ease both;
}

.gw-be-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px color-mix(in srgb, var(--be-heading) 12%, transparent);
}

.gw-be-card__ratio {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: color-mix(in srgb, var(--be-heading) 8%, transparent);
}

.gw-be-card__ratio--lg { aspect-ratio: 16 / 9; }

.gw-be-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gw-be-card:hover .gw-be-card__img,
.gw-be-featured:hover .gw-be-card__img {
  transform: scale(1.05);
}

.gw-be-card__cat {
  display: inline-flex;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: color-mix(in srgb, var(--be-heading) 82%, #000008);
}

.gw-be-card__media .gw-be-card__cat {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
}

.gw-be-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}

.gw-be-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--be-body) 70%, transparent);
}

.gw-be-card__title {
  margin: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
}

.gw-be-card__title a {
  color: var(--be-heading);
  text-decoration: none;
}

.gw-be-card__excerpt {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--be-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gw-be-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
}

.gw-be-page {
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--be-heading);
  background: var(--be-surface);
  border: 1px solid color-mix(in srgb, var(--be-heading) 12%, transparent);
}

.gw-be-page.is-current {
  color: #ffffff;
  background: var(--be-heading);
  border-color: var(--be-heading);
}

.gw-be-page.is-disabled { opacity: 0.45; pointer-events: none; }

.gw-be-empty,
.gw-be-cta,
.gw-be-inline-cta {
  text-align: center;
}

.gw-be-cta {
  padding: 3rem 1rem;
  border-top: 1px solid color-mix(in srgb, var(--be-heading) 8%, transparent);
}

.gw-be-cta h2,
.gw-be-inline-cta h2,
.gw-be-related h2,
.gw-be-takeaways h2,
.gw-be-faq h2 {
  margin: 0 0 0.65rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  color: var(--be-heading);
}

.gw-be-cta p,
.gw-be-inline-cta p {
  margin: 0 0 1.15rem;
  color: var(--be-body);
}

/* Reading progress */
.gw-be-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: 3px;
  background: color-mix(in srgb, var(--be-heading) 10%, transparent);
  pointer-events: none;
}

.gw-be-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--be-heading), var(--be-green));
  box-shadow: 0 0 16px color-mix(in srgb, var(--be-heading) 35%, transparent);
  transition: width 0.08s linear;
}

/* Detail hero */
.gw-be-detail-hero__inner { max-width: 920px; }

.gw-be-detail-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.gw-be-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--be-heading);
  background: color-mix(in srgb, var(--be-heading) 8%, var(--be-surface));
  border: 1px solid color-mix(in srgb, var(--be-heading) 12%, transparent);
}

.gw-be-badge--verified {
  color: #ffffff;
  background: var(--be-green);
  border-color: var(--be-green);
}

.gw-be-author {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.35rem 0 1rem;
  padding: 1rem;
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--be-surface) 86%, transparent);
  border: 1px solid color-mix(in srgb, var(--be-heading) 10%, transparent);
  backdrop-filter: blur(12px);
}

.gw-be-author__identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.gw-be-author__avatar {
  display: block;
  width: 56px;
  height: 56px;
  min-width: 56px;
  max-width: 56px;
  min-height: 56px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid color-mix(in srgb, var(--be-heading) 18%, transparent);
  background: color-mix(in srgb, var(--be-heading) 8%, var(--be-surface));
}

.gw-be-author__avatar--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  background: var(--be-heading);
}

.gw-be-author__avatar--lg {
  width: 88px;
  height: 88px;
  min-width: 88px;
  max-width: 88px;
  min-height: 88px;
  font-size: 1.75rem;
}

.gw-be-author-bio__media img {
  display: block;
  width: 88px;
  height: 88px;
  min-width: 88px;
  max-width: 88px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid color-mix(in srgb, var(--be-heading) 18%, transparent);
  background: color-mix(in srgb, var(--be-heading) 8%, var(--be-surface));
}

.gw-be-author__name {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--be-heading);
  font-size: 1rem;
}

.gw-be-author__verified {
  display: inline-flex;
  width: 1.1rem;
  height: 1.1rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.65rem;
  color: #ffffff;
  background: var(--be-green);
}

.gw-be-author__role,
.gw-be-author span {
  display: block;
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--be-body) 75%, transparent);
}

.gw-be-card__meta--hero { align-content: center; }

.gw-be-share--hero {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
}

.gw-be-share--hero a,
.gw-be-share--hero button {
  padding: 0.45rem 0.8rem;
  border-radius: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--be-heading) 14%, transparent);
  background: var(--be-surface);
  color: var(--be-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.gw-be-detail-hero__media {
  margin-top: 0.5rem;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--be-heading) 12%, transparent);
  box-shadow:
    0 24px 56px color-mix(in srgb, var(--be-heading) 12%, transparent),
    0 0 40px color-mix(in srgb, var(--be-heading) 10%, transparent);
}

.gw-be-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.gw-be-tags li {
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--be-heading);
  background: color-mix(in srgb, var(--be-heading) 7%, transparent);
}

.gw-be-detail-layout {
  display: grid;
  gap: 2rem;
  padding: 1.5rem 1rem 3rem;
}

@media (min-width: 1100px) {
  .gw-be-detail-layout {
    grid-template-columns: 240px minmax(0, 800px);
    justify-content: center;
    align-items: start;
  }
}

.gw-be-toc {
  position: sticky;
  top: 5.5rem;
  max-height: calc(100vh - 7rem);
  overflow: auto;
  padding: 1rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--be-surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--be-heading) 10%, transparent);
  backdrop-filter: blur(14px);
}

.gw-be-toc ol {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.gw-be-toc a {
  color: var(--be-body);
  text-decoration: none;
  font-size: 0.8125rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.gw-be-toc a:hover,
.gw-be-toc a.is-active {
  color: var(--be-heading);
  font-weight: 700;
}

.gw-be-share {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.gw-be-share a,
.gw-be-share button {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--be-heading);
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.gw-be-article { max-width: 800px; }

.gw-be-prose {
  color: var(--be-body);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.gw-be-prose > p:first-child {
  font-size: 1.15rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--be-body) 92%, var(--be-heading));
}

.gw-be-prose h2,
.gw-be-prose h3 {
  color: var(--be-heading);
  font-family: "Space Grotesk", Inter, sans-serif;
  scroll-margin-top: 6rem;
  letter-spacing: -0.02em;
}

.gw-be-prose h2 {
  margin: 2.75rem 0 1rem;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.25;
}

.gw-be-prose h3 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.2rem;
}

.gw-be-prose p { margin: 0 0 1.15rem; }
.gw-be-prose ul,
.gw-be-prose ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.gw-be-prose li { margin: 0.35rem 0; }
.gw-be-prose a { color: var(--be-heading); font-weight: 600; }

/* Premium content blocks */
.gw-be-callout {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-radius: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--be-heading) 12%, transparent);
  background: color-mix(in srgb, var(--be-surface) 92%, transparent);
}

.gw-be-callout strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--be-heading);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gw-be-callout p { margin: 0; }

.gw-be-callout--tip {
  border-left: 3px solid var(--be-green);
  box-shadow: 0 0 24px color-mix(in srgb, var(--be-green) 10%, transparent);
}

.gw-be-callout--insight {
  border-left: 3px solid var(--be-heading);
  box-shadow: 0 0 24px color-mix(in srgb, var(--be-heading) 10%, transparent);
}

.gw-be-callout--warn {
  border-left: 3px solid color-mix(in srgb, #b45309 80%, var(--be-heading));
  background: color-mix(in srgb, #b45309 6%, var(--be-surface));
}

.gw-be-callout--case {
  border-left: 3px solid color-mix(in srgb, var(--be-heading) 55%, var(--be-green));
}

.gw-be-stat {
  display: grid;
  gap: 0.35rem;
  margin: 1.5rem 0;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--be-heading) 12%, transparent), transparent 55%),
    var(--be-surface);
  border: 1px solid color-mix(in srgb, var(--be-heading) 12%, transparent);
}

.gw-be-stat__num {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--be-heading);
  letter-spacing: -0.03em;
}

.gw-be-stat p { margin: 0; }

.gw-be-quote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.35rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--be-heading) 12%, transparent);
  background: color-mix(in srgb, var(--be-heading) 5%, var(--be-surface));
}

.gw-be-quote p {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--be-heading);
  font-family: "Space Grotesk", Inter, sans-serif;
}

.gw-be-quote cite {
  font-size: 0.8125rem;
  font-style: normal;
  color: color-mix(in srgb, var(--be-body) 72%, transparent);
}

.gw-be-checklist {
  margin: 1.75rem 0;
  padding: 1.25rem;
  border-radius: 1rem;
  background: var(--be-surface);
  border: 1px solid color-mix(in srgb, var(--be-heading) 12%, transparent);
}

.gw-be-checklist h3 {
  margin: 0 0 0.75rem;
  color: var(--be-heading);
  font-family: "Space Grotesk", Inter, sans-serif;
}

.gw-be-checklist ul { margin: 0; }

.gw-be-takeaways,
.gw-be-faq,
.gw-be-author-bio,
.gw-be-end-cta,
.gw-be-inline-cta {
  margin-top: 2.25rem;
  padding: 1.35rem 1.4rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--be-surface) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--be-heading) 10%, transparent);
}

.gw-be-takeaways ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--be-body);
}

.gw-be-faq details {
  padding: 0.85rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--be-heading) 8%, transparent);
}

.gw-be-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--be-heading);
}

.gw-be-faq details p {
  margin: 0.65rem 0 0;
  color: var(--be-body);
}

.gw-be-author-bio {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .gw-be-author-bio {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.gw-be-author-bio__name {
  margin: 0.15rem 0;
  font-size: 1.35rem;
  color: var(--be-heading);
  font-family: "Space Grotesk", Inter, sans-serif;
}

.gw-be-author-bio__role {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--be-body) 72%, transparent);
}

.gw-be-author-bio__text { margin: 0; line-height: 1.65; }

.gw-be-end-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.gw-be-end-cta .gw-be-btn--primary {
  color: #ffffff !important;
  background: #137f15 !important;
  border-color: #137f15;
}

.gw-be-related {
  padding: 2.5rem 1rem 4rem;
}

.gw-be-detail,
.gw-be-detail-hero {
  background: var(--be-canvas);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes gw-be-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

html.dark .gw-be,
html.dark .gw-be-detail,
html.dark .gw-be-hero,
html.dark .gw-be-detail-hero,
html.dark .gw-be-cta {
  --be-heading: var(--color-dm-text);
  --be-body: var(--color-dm-text-muted);
  --be-surface: var(--color-dm-elevated);
  --be-canvas: var(--color-dm-canvas);
  --be-card: var(--color-dm-card);
  --be-border: var(--color-dm-border);
  --be-accent: var(--color-dm-accent);
}

html.dark .gw-be-card,
html.dark .gw-be-enterprise-card {
  background: var(--be-card) !important;
  border: 1px solid var(--be-border) !important;
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.35);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

html.dark .gw-be-card:hover,
html.dark .gw-be-enterprise-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--color-chrome-0) 32%, transparent) !important;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.45), 0 0 32px var(--color-dm-glow);
}

html.dark .gw-be-prose {
  color: var(--be-body);
  font-size: 1.0625rem;
  line-height: 1.8;
}

html.dark .gw-be-prose h2,
html.dark .gw-be-prose h3,
html.dark .gw-be-prose h4 {
  color: var(--be-heading) !important;
}

html.dark .gw-be-prose a {
  color: var(--be-accent);
}

html.dark .gw-be-prose code {
  background: var(--color-dm-elevated);
  border: 1px solid var(--be-border);
  color: var(--be-accent);
  border-radius: 0.35rem;
  padding: 0.12em 0.4em;
  font-size: 0.9em;
}

html.dark .gw-be-prose pre {
  position: relative;
  background: #0a0f1c !important;
  border: 1px solid var(--be-border);
  border-radius: 0.85rem;
  padding: 1.1rem 1.15rem 1.15rem;
  color: #e2e8f0;
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.35);
  overflow-x: auto;
}

html.dark .gw-be-prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

html.dark .gw-be-prose .gw-code-copy {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.45rem;
  border: 1px solid var(--be-border);
  background: color-mix(in srgb, var(--color-dm-elevated) 88%, transparent);
  color: var(--color-dm-text-soft);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

html.dark .gw-be-prose .gw-code-copy:hover,
html.dark .gw-be-prose .gw-code-copy:focus-visible {
  color: var(--color-dm-text);
  border-color: color-mix(in srgb, var(--color-chrome-0) 40%, transparent);
  background: var(--color-dm-elevated);
}

html.dark .gw-be-prose .gw-code-copy.is-copied {
  color: var(--color-button-primary-bg);
  border-color: color-mix(in srgb, var(--color-button-primary-bg) 40%, transparent);
}

/* Code copy — light mode */
.gw-be-prose .gw-code-copy,
.gw-prose .gw-code-copy {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.45rem;
  border: 1px solid color-mix(in srgb, var(--color-text-heading) 12%, transparent);
  background: color-mix(in srgb, var(--color-surface-raised) 92%, transparent);
  color: color-mix(in srgb, var(--color-text-body) 65%, transparent);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.gw-be-prose .gw-code-copy:hover,
.gw-be-prose .gw-code-copy:focus-visible,
.gw-prose .gw-code-copy:hover,
.gw-prose .gw-code-copy:focus-visible {
  color: var(--color-text-heading);
  border-color: color-mix(in srgb, var(--color-text-heading) 28%, transparent);
}

.gw-be-prose .gw-code-copy.is-copied,
.gw-prose .gw-code-copy.is-copied {
  color: var(--color-button-primary-bg);
}

html.dark .gw-be-prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: color-mix(in srgb, var(--color-dm-elevated) 72%, transparent);
  border: 1px solid var(--be-border);
  border-left: 3px solid var(--be-accent);
  border-radius: 0 0.75rem 0.75rem 0;
  box-shadow: 0 0 28px var(--color-dm-glow);
  color: var(--be-body);
  backdrop-filter: blur(8px);
}

html.dark .gw-be-callout,
html.dark .gw-be-expert {
  background: color-mix(in srgb, var(--color-dm-elevated) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-chrome-0) 28%, transparent);
  box-shadow: 0 0 32px var(--color-dm-glow);
  border-radius: 0.85rem;
}

html.dark .gw-be-callout--warn {
  background: color-mix(in srgb, var(--color-chrome-0) 14%, var(--be-surface));
}

@media (prefers-reduced-motion: reduce) {
  .gw-be-card,
  .gw-be-card__img,
  .gw-be-progress span { animation: none !important; transition: none !important; }
}
