.po-detail-hero {
  position: relative;
}

.po-detail-hero__panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #15231d;
  border-radius: 1rem;
  background: #15231d;
  color: #fffef9;
  box-shadow: 0 28px 70px -50px rgba(21, 35, 29, 0.9);
  backdrop-filter: none;
}

.po-detail-hero__panel::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 0.5rem;
  background: linear-gradient(90deg, #4cae50 0 42%, #e1493f 42% 68%, #5370ff 68% 88%, #efb92f 88%);
}

.po-detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 35rem;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
}

.po-detail-hero__copy {
  min-width: 0;
}

.po-detail-hero__breadcrumbs {
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.po-detail-hero__breadcrumbs a,
.po-detail-hero__breadcrumbs span,
.po-detail-hero__breadcrumbs svg {
  color: rgba(255, 254, 249, 0.58);
}

.po-editorial-kicker {
  color: #cdea81;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.po-detail-hero__title {
  max-width: 17ch;
  margin-top: 1rem;
  color: #fffef9;
  font-size: clamp(2.8rem, 5.5vw, 5.75rem);
  font-weight: 850;
  line-height: 0.94;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .po-detail-hero__title {
    overflow-wrap: normal;
  }
}

.po-detail-hero__lead {
  max-width: 42rem;
  margin-top: 1.5rem;
  color: rgba(255, 254, 249, 0.68);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.65;
}

.po-detail-hero__meta,
.po-detail-hero__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.75rem;
}

.po-detail-meta,
.po-detail-hero__flags > span {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 254, 249, 0.17);
  border-radius: 0.35rem;
  color: rgba(255, 254, 249, 0.7);
  font-size: 0.76rem;
  font-weight: 650;
}

.po-detail-meta svg {
  width: 0.95rem;
  height: 0.95rem;
}

.po-detail-meta--accent,
.po-detail-hero__flags > .is-live {
  border-color: #cdea81;
  background: #cdea81;
  color: #15231d;
}

.po-detail-hero__flags {
  margin-top: 0.9rem;
}

.po-detail-hero__flags > span {
  min-height: 1.9rem;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.po-detail-hero__flags > .is-live::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #e1493f;
}

.po-detail-hero__flags > .is-sold-out {
  border-color: #e1493f;
  color: #ff8179;
}

.po-detail-hero__visual {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 254, 249, 0.24);
  border-radius: 0.75rem;
  background: #fffef9;
  color: #15231d;
}

.po-detail-hero__visual.is-clickable {
  cursor: pointer;
}

.po-detail-hero__image {
  position: relative;
}

.po-detail-hero__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.po-detail-hero__visual figcaption {
  padding: 1.25rem;
}

.po-detail-hero__visual figcaption span {
  display: block;
  margin-bottom: 0.45rem;
  color: #3f9843;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.po-detail-hero__visual figcaption strong {
  display: block;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.35;
}

.po-detail-hero__play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 50%;
  background: #fffef9;
  color: #15231d;
  transform: translate(-50%, -50%);
}

.po-detail-hero__play svg {
  width: 1.5rem;
  height: 1.5rem;
}

.po-detail-hero__price-flag {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  background: #cdea81;
  color: #15231d;
  font-size: 0.7rem;
  font-weight: 800;
}

.po-detail-body {
  position: relative;
}

.po-detail-content .po-detail-section {
  border: 1px solid rgba(21, 35, 29, 0.18);
  border-radius: 0.75rem;
  background: #fffef9;
  box-shadow: none;
  backdrop-filter: none;
}

.po-detail-content .po-detail-section h2,
.po-instructor-card h2 {
  color: #15231d;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.045em;
}

/* Instructor card: dark green editorial variant (moved to the left content column) */
.po-instructor-card {
  border: 1px solid #15231d;
  border-radius: 0.75rem;
  background: #15231d;
  box-shadow: none;
  backdrop-filter: none;
}

.po-instructor-card h2,
.po-instructor-card h3 {
  color: #fffef9;
}

.po-instructor-card p {
  color: rgba(255, 254, 249, 0.66);
}

.po-instructor-card img {
  width: 8rem;
  height: 10rem;
  border-radius: 0.4rem;
  border-color: rgba(255, 254, 249, 0.2);
  filter: grayscale(1);
}

/* Inside the ink band (.page-bleed--left, feature.css) the paper sections
   turn into thin outlines and their headings go paper white. */
.po-detail-content .page-bleed--left .po-detail-section {
  border-color: rgba(255, 254, 249, 0.2);
  background: rgba(255, 254, 249, 0.04);
}

.po-detail-content .page-bleed--left .po-detail-section h2 {
  color: #fffef9;
}

.po-detail-content .page-bleed--left .po-detail-section .surface-muted {
  border-color: rgba(255, 254, 249, 0.16);
  background: rgba(255, 254, 249, 0.08);
}

.po-detail-content .po-detail-section .surface-muted {
  border: 1px solid rgba(21, 35, 29, 0.13);
  border-radius: 0.45rem;
  background: #edf2e9;
}

.po-detail-content .po-detail-section .prose-content {
  font-size: 1.02rem;
  line-height: 1.78;
}

.po-detail-content .po-detail-section [class*='rounded-full'] {
  border-radius: 0.35rem;
}

.po-pricing-card {
  border: 1px solid #15231d;
  border-radius: 0.75rem;
  background: #fffef9;
  box-shadow: 0 24px 55px -42px rgba(21, 35, 29, 0.85);
  backdrop-filter: none;
}

.po-course-detail .po-pricing-card > .glass-solid {
  border: 0;
  border-radius: 0 0 0.75rem 0.75rem;
  background: #fffef9;
  box-shadow: none;
}

.po-pricing-card button[class*='bg-primary'],
.po-pricing-card button:not([class*='outline']):not([class*='ghost']) {
  border-radius: 0.45rem;
}

@media (max-width: 1023px) {
  .po-detail-hero__grid {
    grid-template-columns: 1fr;
  }

  .po-detail-hero__visual {
    max-width: 44rem;
  }

  .po-detail-sidebar {
    overflow: visible;
  }
}

@media (max-width: 639px) {
  .po-detail-hero__grid {
    min-height: auto;
    gap: 2rem;
    padding: 2rem 1.2rem 1.2rem;
  }

  .po-detail-hero__breadcrumbs {
    margin-bottom: 2rem;
  }

  /* Long Lithuanian words (pradedantiesiems) must fit one 390 px line: smaller
     minimum, hyphenation as the fallback, never a mid-word hard break. */
  .po-detail-hero__title {
    font-size: clamp(1.8rem, 9vw, 3.2rem);
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .po-detail-hero__lead {
    margin-top: 1rem;
    font-size: 0.97rem;
  }

  .po-detail-meta {
    min-height: 2rem;
    font-size: 0.7rem;
  }

  .po-detail-hero__visual figcaption {
    padding: 1rem;
  }

  .po-detail-body {
    padding-top: 1.25rem;
  }
}
