.public-editorial-canvas.page-canvas {
  background:
    linear-gradient(rgba(21, 35, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 35, 29, 0.035) 1px, transparent 1px), #edf2e9;
  background-size: 32px 32px;
}

.public-editorial-canvas > .bg-mesh,
.public-editorial-canvas > .bg-noise {
  display: none;
}

.public-editorial-canvas > main {
  position: relative;
  z-index: 1;
}

.page-frame {
  width: min(100%, 90rem);
}

.page-frame--default {
  max-width: 90rem;
}

.page-hero.glass-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(21, 35, 29, 0.85);
  border-radius: 1rem;
  background: #15231d;
  box-shadow: 0 24px 70px -48px rgba(21, 35, 29, 0.9);
  color: #fffef9;
  backdrop-filter: none;
}

.page-hero.glass-card::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%);
}

.page-hero.glass-card::after {
  width: 24rem;
  height: 24rem;
  top: auto;
  right: -8rem;
  bottom: -13rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 234, 129, 0.13), transparent 68%);
  filter: none;
}

.page-hero__content {
  padding-block: clamp(1rem, 3vw, 3rem);
}

.page-hero__title {
  max-width: 14ch;
  color: #fffef9;
  font-size: clamp(2.8rem, 6vw, 6.6rem);
  font-weight: 850;
  line-height: 0.93;
  letter-spacing: -0.065em;
}

.page-hero--compact .page-hero__title {
  max-width: 18ch;
  font-size: clamp(2.5rem, 5vw, 5.25rem);
}

.page-hero__title .text-gradient,
.page-hero__title em {
  display: inline;
  background: none;
  color: #cdea81;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.055em;
  -webkit-text-fill-color: currentColor;
}

.page-hero__description {
  max-width: 38rem;
  color: rgba(255, 254, 249, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

.page-eyebrow {
  color: #cdea81;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.page-hero__actions > a,
.page-hero__actions > button {
  min-height: 3.25rem;
  border-radius: 0.55rem;
  border-color: rgba(255, 254, 249, 0.28);
  background: #e1493f;
  color: #fff;
  box-shadow: none;
  font-weight: 800;
}

.page-hero__actions > a:hover,
.page-hero__actions > button:hover {
  border-color: #fffef9;
  background: #fffef9;
  color: #15231d;
}

.page-hero__actions > a + a,
.page-hero__actions > button + button {
  background: transparent;
  color: #fffef9;
}

.page-hero__aside {
  border: 1px solid rgba(255, 254, 249, 0.16);
  border-radius: 0.75rem;
  background: #fffef9;
  box-shadow: none;
}

.page-hero__aside > a {
  border-radius: 0;
}

.page-hero__aside > a > div:last-child {
  background: #fffef9;
}

.page-hero__aside .text-foreground {
  color: #15231d;
}

.page-hero__aside .text-muted-foreground {
  color: #667068;
}

.page-section {
  border-top: 1px solid rgba(21, 35, 29, 0.18);
  padding-top: clamp(2rem, 5vw, 4.5rem);
}

.section-heading__title {
  max-width: 18ch;
  color: #15231d;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-heading__description {
  color: #657068;
  line-height: 1.7;
}

.section-divider {
  border-color: rgba(21, 35, 29, 0.2);
}

.public-catalog-page {
  color: #15231d;
}

.public-catalog-intro {
  width: min(calc(100% - 2rem), 56rem);
  margin: clamp(1.5rem, 4vw, 3.5rem) auto 0;
  padding: 0 0 0 1.25rem;
  border-left: 0.35rem solid #4cae50;
  text-align: left;
}

.public-catalog-intro p {
  margin: 0;
  color: #566159;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.75;
}

.public-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(21, 35, 29, 0.2);
}

.public-section-heading h2 {
  max-width: 16ch;
  color: #15231d;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.public-section-heading p,
.public-section-heading span {
  color: #667068;
  font-size: 0.82rem;
}

/* The count badge rule above must not reach the WordReveal spans inside h2 */
.public-section-heading h2 span {
  color: inherit;
  font-size: inherit;
}

.glass-filter-bar {
  border: 1px solid rgba(21, 35, 29, 0.18);
  border-radius: 0.7rem;
  background: rgba(255, 254, 249, 0.96);
  box-shadow: 0 16px 38px -30px rgba(21, 35, 29, 0.8);
  backdrop-filter: none;
}

.pill-tag {
  min-height: 2.55rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  color: #5d675f;
  font-size: 0.77rem;
  font-weight: 750;
  touch-action: manipulation;
}

.pill-tag:hover {
  border-color: rgba(21, 35, 29, 0.18);
  background: #edf2e9;
  color: #15231d;
}

.pill-tag-active {
  border-color: #15231d;
  background: #15231d;
  color: #fffef9;
}

.public-empty-state {
  padding: 4rem 1.5rem;
  border: 1px dashed rgba(21, 35, 29, 0.3);
  background: rgba(255, 254, 249, 0.64);
  text-align: center;
}

@media (max-width: 767px) {
  .page-frame {
    padding-block: 1.5rem;
  }

  .page-hero.glass-card {
    padding: 2rem 1.1rem 1.1rem;
  }

  .page-hero__title {
    /* Long Lithuanian words (programavimo, prenumeratoje) must fit one line:
       smaller minimum plus hyphenation, never a mid-word hard break. */
    font-size: clamp(2rem, 10vw, 2.8rem);
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .page-hero__aside {
    margin-top: 0.5rem;
  }

  .public-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Documentary photo + paper caption in a mediaAside hero (PageHeroFigure).
   The figure owns the frame ratio, so photos of any ratio fill the same box;
   the caption's inset is larger than its parallax drop (motion.css), so the
   caption is never clipped while it sinks. */
.page-hero__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.page-hero__figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(21, 35, 29, 0.28));
  pointer-events: none;
}

.page-hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__figure figcaption {
  position: absolute;
  z-index: 2;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 254, 249, 0.94);
  color: #15231d;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 1023px) {
  .page-hero__figure {
    aspect-ratio: 16 / 10;
  }

  .page-hero__figure figcaption {
    right: 0.9rem;
    bottom: 0.9rem;
    left: 0.9rem;
    padding: 0.75rem 0.85rem;
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero__actions > a,
  .page-hero__actions > button,
  .pill-tag {
    transition: none;
  }
}
