/**
 * Helia Aesthetic Clinic – front-end theme styles.
 * Brand tokens + polish on top of Tailwind CDN.
 */

:root {
  --helia-primary: #227671;
  --helia-primary-dark: #185652;
  --helia-accent: #f59556;
  --helia-accent-dark: #e07f3e;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/*
 * Keep horizontal bleed clipped on content shells only.
 * Do NOT set overflow-x on html/body/#main-navigation — that breaks
 * position:sticky (browsers pair overflow-x:clip with a scrollport).
 */
.helia-main,
#app-footer {
  overflow-x: clip;
  max-width: 100vw;
}

#main-navigation {
  max-width: 100vw;
}

.font-serif-luxury,
.helia-prose h1,
.helia-prose h2,
.helia-prose h3,
.helia-prose h4 {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #227671;
}

/* Keep header + homepage hero as one continuous white surface; pin to viewport top */
#main-navigation {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 0 !important;
  box-shadow: none;
}

/* Sticky header scrolled — frost over later sections, no hairline seam */
#main-navigation.is-scrolled {
  background: #fff !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 0 !important;
  box-shadow: 0 10px 30px -12px rgba(28, 25, 23, 0.08);
}

/* Mega menu open state + hover bridge over the mt-3 gap */
[data-helia-mega-panel] {
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out,
    visibility 0.2s;
}
[data-helia-mega-panel]::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
[data-helia-mega-panel].is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Feature reel */
.helia-reel-card {
  opacity: 0.15;
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(231, 229, 228, 0.5);
}
.helia-reel-card.is-adjacent {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(231, 229, 228, 0.9);
  opacity: 0.4;
  transform: scale(0.95);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.helia-reel-card.is-active {
  background: #fff;
  border: 2px solid #227671;
  opacity: 1;
  transform: scale(1);
  z-index: 10;
  box-shadow:
    0 0 0 4px rgba(34, 118, 113, 0.15),
    0 25px 50px -12px rgba(0, 0, 0, 0.2);
}
.helia-reel-card.is-active .helia-reel-badge {
  color: #e07535;
  background: rgba(245, 149, 86, 0.15);
  border-color: rgba(245, 149, 86, 0.4);
}
.helia-reel-card.is-active .helia-reel-title {
  color: #1d6b67;
}
.helia-reel-card.is-active .helia-reel-text {
  color: #44403c;
  font-weight: 400;
}

/* Story fade */
.helia-story-fade {
  animation: heliaFadeIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes heliaFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateX(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll reveal */
.helia-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.helia-reveal--left {
  transform: translateX(-48px);
}
.helia-reveal--far-left {
  transform: translateX(-120px);
  opacity: 0;
}
.helia-reveal--far-left.is-visible {
  opacity: 1;
  transform: none;
}
.helia-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Homepage hero (screenshot-matched) ---------- */
.helia-hero {
  background: #fff;
  color: #1c1917;
  overflow: hidden;
}
.helia-hero-shell {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 1.15rem 1rem 0;
}
.helia-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-bottom: 2rem;
}
.helia-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.helia-hero-mini {
  position: relative;
  width: 13.5rem;
  aspect-ratio: 4 / 3;
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.12);
  background: #f5f5f4;
  margin-bottom: 0.85rem;
}
.helia-hero-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.helia-hero-mini::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent);
  pointer-events: none;
}
.helia-hero-mini-caption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.55rem;
  z-index: 1;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  line-height: 1.2;
}
.helia-hero-rating {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}
.helia-hero-avatars {
  display: flex;
  flex-shrink: 0;
}
.helia-hero-avatars img {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -0.45rem;
}
.helia-hero-avatars img:first-child {
  margin-left: 0;
}
.helia-hero-rating-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem 0.35rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1c1917;
  line-height: 1.3;
}
.helia-hero-rating-count {
  font-weight: 400;
  color: #78716c;
}
.helia-hero-star {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: #f59556;
  fill: #f59556;
}
.helia-hero-headings {
  max-width: 36rem;
}
.helia-hero-headings h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 2.15rem;
  font-weight: 800;
  color: #227671;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.7rem;
}
.helia-hero-headings h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f59556;
  letter-spacing: 0.01em;
  line-height: 1.35;
  margin: 0 0 0.85rem;
}
.helia-hero-headings p {
  font-size: 0.875rem;
  font-weight: 400;
  color: #57534e;
  line-height: 1.7;
  margin: 0;
  max-width: 36rem;
}
.helia-hero-cta-wrap {
  margin-top: 1.35rem;
}
.helia-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.8rem 1.85rem;
  border: 0;
  border-radius: 9999px;
  background: #f59556;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(245, 149, 86, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}
.helia-hero-cta:hover {
  background: #e07f3e;
  transform: translateY(-1px);
}
.helia-hero-cta svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #fff;
  stroke: #fff;
  stroke-width: 2.75;
}
.helia-hero-frame {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 1.75rem;
  overflow: hidden;
  background: #f5f5f4;
  box-shadow: 0 22px 40px -18px rgba(28, 25, 23, 0.28);
}
.helia-hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.helia-hero-ribbon {
  background: #f6f7f4;
  padding: 0.95rem 1rem;
}
.helia-hero-ribbon-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 2.5rem;
}
.helia-hero-ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #227671;
  white-space: nowrap;
}
.helia-hero-ribbon-mark {
  color: #f59556;
  font-size: 0.85rem;
  line-height: 1;
}

@media (min-width: 640px) {
  .helia-hero-shell {
    padding: 1.35rem 1.5rem 0;
  }
  .helia-hero-mini {
    width: 14rem;
  }
  .helia-hero-headings h1 {
    font-size: 2.45rem;
  }
  .helia-hero-headings h2 {
    font-size: 1.15rem;
  }
  .helia-hero-frame {
    aspect-ratio: 5 / 4;
    border-radius: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .helia-hero-shell {
    padding: 1.15rem 2rem 0;
  }
  .helia-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 2rem 2.75rem;
    align-items: start;
    padding-bottom: 2.35rem;
  }
  .helia-hero-copy {
    padding-top: 0.85rem;
  }
  .helia-hero-mini {
    width: 14rem;
    margin-bottom: 0.9rem;
  }
  .helia-hero-rating {
    margin-bottom: 1.45rem;
  }
  .helia-hero-headings h1 {
    font-size: 2.85rem;
    margin-bottom: 0.75rem;
  }
  .helia-hero-headings h2 {
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
  }
  .helia-hero-headings p {
    font-size: 0.9rem;
  }
  .helia-hero-cta-wrap {
    margin-top: 1.5rem;
  }
  .helia-hero-cta {
    min-height: 3.05rem;
    padding: 0.85rem 2rem;
    font-size: 0.75rem;
  }
  .helia-hero-frame {
    aspect-ratio: auto;
    height: 600px;
    border-radius: 2.5rem;
  }
  .helia-hero-ribbon {
    padding: 1rem 2rem;
  }
  .helia-hero-ribbon-inner {
    justify-content: space-around;
  }
  .helia-hero-ribbon-item {
    font-size: 0.8rem;
  }
}

@media (min-width: 1280px) {
  .helia-hero-headings h1 {
    font-size: 3rem;
  }
}

/* ---------- Mobile layout fixes ---------- */
@media (max-width: 767px) {
  /* Don't hide content with off-screen reveals on phones */
  .helia-reveal,
  .helia-reveal--left,
  .helia-reveal--far-left {
    opacity: 1 !important;
    transform: none !important;
  }

  #main-navigation {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  #main-navigation #brand-logo-link img {
    max-height: 2.5rem;
    width: auto;
    max-width: min(52vw, 160px);
  }

  #mobile-menu-drawer {
    max-height: min(78vh, 640px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Hero: portrait first, then copy (clear visual hierarchy on phone) */
  .helia-hero-grid {
    display: flex;
    flex-direction: column;
  }
  .helia-hero-media {
    order: 1;
  }
  .helia-hero-copy {
    order: 2;
  }
  .helia-hero-mini {
    display: none;
  }

  /* Ribbon: centered as a block, left-aligned icons/text within */
  .helia-hero-ribbon-inner {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    gap: 0.7rem;
  }
  .helia-hero-ribbon-inner.helia-ribbon-ready .helia-hero-ribbon-item {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .helia-hero-ribbon-inner.helia-ribbon-ready .helia-hero-ribbon-item:nth-child(1) {
    transition-delay: 0.06s;
  }
  .helia-hero-ribbon-inner.helia-ribbon-ready .helia-hero-ribbon-item:nth-child(2) {
    transition-delay: 0.16s;
  }
  .helia-hero-ribbon-inner.helia-ribbon-ready .helia-hero-ribbon-item:nth-child(3) {
    transition-delay: 0.26s;
  }
  .helia-hero-ribbon-inner.helia-ribbon-ready .helia-hero-ribbon-item:nth-child(4) {
    transition-delay: 0.36s;
  }
  .helia-hero-ribbon-inner.helia-ribbon-ready.is-visible .helia-hero-ribbon-item {
    opacity: 1;
    transform: none;
  }

  /* Intro: shorter reel, stack cleanly */
  #helia-intro [data-helia-reel] {
    height: 360px !important;
  }
  #helia-intro .helia-reel-card {
    height: 150px !important;
  }
  #helia-intro [data-helia-video] .helia-video-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  #helia-intro [data-helia-video] .helia-video-bottom button {
    margin-left: 0 !important;
  }

  /* Stories: active spotlight image on top, card list below */
  #patient-experience .helia-stories-grid {
    display: flex;
    flex-direction: column;
  }
  #patient-experience .helia-stories-spotlight {
    order: 1;
    scroll-margin-top: var(--helia-header-h, 5rem);
  }
  #patient-experience .helia-stories-picker {
    order: 2;
  }
  #patient-experience [data-helia-story-spotlight] > div {
    height: 380px !important;
  }

  /* About: text then image on mobile; kill edge bleed overflow */
  #about-us .helia-about-grid {
    display: flex;
    flex-direction: column;
  }
  #about-us .helia-about-copy {
    order: 1;
  }
  #about-us .helia-about-media {
    order: 2;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Why: heading/features before decorative image */
  #why-choose-us .helia-why-grid {
    display: flex;
    flex-direction: column;
  }
  #why-choose-us .helia-why-copy {
    order: 1;
  }
  #why-choose-us .helia-why-media {
    order: 2;
  }

  /* Articles CTA full width */
  #articles .helia-articles-head > a {
    width: 100%;
    justify-content: center;
  }

  /* Location: keep CTAs from overflowing */
  #location .helia-location-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Floating actions safe area */
  .helia-floating {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: calc(0.75rem + env(safe-area-inset-right, 0px));
  }

  /* Booking modal */
  [data-helia-modal].is-open {
    display: flex !important;
    align-items: flex-end;
    padding: 0.75rem;
  }
  [data-helia-modal].is-open > div {
    max-height: min(92vh, 760px);
    overflow-y: auto;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 1.5rem 1.5rem 1rem 1rem;
    width: 100%;
  }

  /* Service single hero buttons stack */
  .helia-svc-hero__cta {
    width: 100%;
  }
  .helia-svc-hero__cta > * {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .helia-hero-ribbon-inner.helia-ribbon-ready .helia-hero-ribbon-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablet: avoid mega-menu style breakage; keep pill readable */
  #main-navigation [data-helia-navbar] {
    padding-left: 0.75rem;
  }
}


/* Booking modal */
[data-helia-modal].is-open {
  display: flex;
}

/* FAQ */
[data-helia-faq-item].is-open [data-helia-faq-panel] {
  display: block;
}
[data-helia-faq-item].is-open [data-helia-faq-icon] {
  background: #227671;
  color: #fff;
  transform: rotate(180deg);
}
[data-helia-faq-item].is-open {
  border-color: rgba(34, 118, 113, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Prose */
.helia-prose p + p {
  margin-top: 1rem;
}
.helia-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: #1c1917;
}
.helia-prose h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}
.helia-prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}
.helia-prose a {
  color: #227671;
  text-decoration: underline;
}
.helia-prose img {
  border-radius: 1rem;
  margin: 1.25rem 0;
}

/* Footer menu */
.helia-footer-menu a {
  color: #a8a29e;
  transition: color 0.2s;
}
.helia-footer-menu a:hover {
  color: #f59556;
}
.helia-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.helia-footer-menu li {
  margin: 0 0 0.625rem;
}

/* Pagination */
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #57534e;
  background: #f5f5f4;
  transition: all 0.2s;
}
.navigation.pagination .page-numbers.current,
.navigation.pagination .page-numbers:hover {
  background: #227671;
  color: #fff;
}

/* Post nav */
.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f5f5f4;
}
@media (min-width: 640px) {
  .post-navigation .nav-links {
    grid-template-columns: 1fr 1fr;
  }
  .post-navigation .nav-next {
    text-align: right;
  }
}
.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid #e7e5e4;
  transition: border-color 0.2s;
}
.post-navigation a:hover {
  border-color: rgba(34, 118, 113, 0.4);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-only:focus,
.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.admin-bar #main-navigation {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar #main-navigation {
    top: 46px;
  }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Fill star helper */
.fill-\[\#F59556\] {
  fill: #f59556;
}

/* Google Ads landings */
.helia-ads-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.helia-ads-reveal--delay {
  transition-delay: 0.12s;
}
.helia-ads-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.helia-ads-landing details > summary {
  list-style: none;
}
.helia-ads-landing details > summary::-webkit-details-marker {
  display: none;
}

/* Service group hub — overlay tiles */
.helia-service-tile {
  height: 260px;
  border-radius: 1.75rem;
}
@media (min-width: 640px) {
  .helia-service-tile {
    height: 320px;
    border-radius: 2rem;
  }
}
@media (min-width: 1024px) {
  .helia-service-tile {
    height: 360px;
    border-radius: 2.25rem;
  }
}
.helia-service-tile__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.28) 42%,
    rgba(0, 0, 0, 0) 72%
  );
}
.helia-service-tile__title {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  max-width: 92%;
  margin: 0;
  padding: 1.25rem 1.35rem;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
@media (min-width: 640px) {
  .helia-service-tile__title {
    padding: 1.5rem 1.75rem;
    font-size: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .helia-service-tile__title {
    padding: 1.75rem 2rem;
    font-size: 1.35rem;
  }
}

/* Hair-transplant hub — consult CTA */
.helia-consult-cta {
  padding: 2.75rem 0 4.5rem;
  overflow: visible;
}
@media (min-width: 768px) {
  .helia-consult-cta {
    padding: 3.25rem 0 5.5rem;
  }
}
.helia-consult-cta__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  background: #f3f3f1;
  border-radius: 2rem;
  overflow: visible;
}
.helia-consult-cta__copy {
  position: relative;
  z-index: 2;
  padding: 1.75rem 1.5rem 0.5rem;
}
.helia-consult-cta__title {
  margin: 0 0 0.85rem;
  color: #111;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.helia-consult-cta__text {
  margin: 0;
  max-width: 36rem;
  color: #6b6b6b;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.7;
}
.helia-consult-cta__media {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 250px;
  margin-top: -0.5rem;
  pointer-events: none;
}
.helia-consult-cta__photo {
  display: block;
  width: auto;
  max-width: min(86%, 360px);
  height: 280px;
  margin-top: -2.75rem;
  object-fit: contain;
  object-position: bottom center;
}
.helia-consult-cta__actions {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.35rem 1.5rem 1.5rem;
}
.helia-consult-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.helia-consult-cta__btn--ghost {
  color: #111;
  background: #fff;
  border: 1px solid #1f1f1f;
}
.helia-consult-cta__btn--ghost:hover {
  background: #fafafa;
}
.helia-consult-cta__btn--solid {
  color: #fff;
  background: #227671;
  border: 1px solid #227671;
}
.helia-consult-cta__btn--solid:hover {
  background: #185652;
  border-color: #185652;
}
.helia-consult-cta__btn--solid svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}
@media (min-width: 640px) {
  .helia-consult-cta__title {
    font-size: 2rem;
  }
  .helia-consult-cta__photo {
    height: 300px;
  }
}
@media (min-width: 900px) {
  .helia-consult-cta__panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.95fr);
    min-height: 292px;
    border-radius: 2.35rem;
  }
  .helia-consult-cta__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.4rem 1.25rem 2.4rem 2.75rem;
    max-width: 40rem;
  }
  .helia-consult-cta__title {
    font-size: 2.15rem;
  }
  .helia-consult-cta__text {
    font-size: 0.98rem;
  }
  .helia-consult-cta__media {
    min-height: 0;
    margin: 0;
  }
  .helia-consult-cta__photo {
    position: absolute;
    right: 6%;
    bottom: 0;
    left: auto;
    max-width: none;
    width: auto;
    height: calc(100% + 3.6rem);
    margin: 0;
  }
  .helia-consult-cta__actions {
    position: absolute;
    right: 1.6rem;
    bottom: 1.35rem;
    justify-content: flex-end;
    padding: 0;
  }
}
@media (min-width: 1200px) {
  .helia-consult-cta__panel {
    min-height: 318px;
    border-radius: 2.6rem;
  }
  .helia-consult-cta__copy {
    padding: 2.6rem 1.5rem 2.6rem 3.25rem;
  }
  .helia-consult-cta__title {
    font-size: 2.35rem;
  }
  .helia-consult-cta__photo {
    right: 8%;
    height: calc(100% + 4.1rem);
  }
  .helia-consult-cta__actions {
    right: 2rem;
    bottom: 1.5rem;
    gap: 0.85rem;
  }
  .helia-consult-cta__btn {
    min-height: 3rem;
    padding: 0.78rem 1.55rem;
    font-size: 0.9375rem;
  }
}

/* Hair-transplant hub — long-form sections after consult CTA */
.helia-ht-block {
  padding: 1.25rem 0 3.5rem;
}
@media (min-width: 768px) {
  .helia-ht-block {
    padding: 1.5rem 0 4.75rem;
  }
}
.helia-ht-head {
  max-width: 46rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .helia-ht-head {
    margin-bottom: 2.5rem;
  }
}
.helia-ht-head--narrow {
  max-width: 40rem;
  margin-bottom: 1.25rem;
}
.helia-ht-kicker {
  margin: 0 0 0.55rem;
  color: #227671;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.helia-ht-title {
  margin: 0 0 0.9rem;
  color: #111;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
}
.helia-ht-title--sm {
  font-size: 1.45rem;
}
@media (min-width: 768px) {
  .helia-ht-title {
    font-size: 2.15rem;
  }
  .helia-ht-title--sm {
    font-size: 1.75rem;
  }
}
.helia-ht-subtitle {
  margin: 0;
  color: #227671;
  font-size: 1.05rem;
  font-weight: 700;
}
.helia-ht-lead,
.helia-ht-prose p,
.helia-ht-step__text,
.helia-ht-method__text,
.helia-ht-equip__text,
.helia-ht-therapy__text {
  margin: 0;
  color: #6b6b6b;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.75;
}
.helia-ht-prose {
  max-width: 52rem;
  display: grid;
  gap: 1rem;
}
.helia-ht-process__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .helia-ht-process__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem 1.35rem;
  }
}
.helia-ht-step {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  padding: 1.35rem 1.3rem 1.4rem;
  background: #f3f3f1;
  border-radius: 1.5rem;
}
.helia-ht-step__num {
  flex: 0 0 auto;
  color: #227671;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  padding-top: 0.15rem;
}
.helia-ht-step__title {
  margin: 0 0 0.45rem;
  color: #111;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.helia-ht-techniques__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin-bottom: 2.75rem;
}
@media (min-width: 900px) {
  .helia-ht-techniques__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem;
  }
}
.helia-ht-method {
  padding: 1.6rem 1.45rem 1.7rem;
  background: #f3f3f1;
  border-radius: 1.65rem;
}
.helia-ht-method__badge {
  margin: 0 0 0.55rem;
  color: #e07f3e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.helia-ht-method__title {
  margin: 0 0 0.7rem;
  color: #111;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.helia-ht-micrograft {
  padding-top: 0.5rem;
}
.helia-ht-equipment__list {
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 768px) {
  .helia-ht-equipment__list {
    gap: 3rem;
  }
}
.helia-ht-equip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 900px) {
  .helia-ht-equip {
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
    gap: 2.25rem;
  }
  .helia-ht-equip--flip {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  }
  .helia-ht-equip--flip .helia-ht-equip__media {
    order: 2;
  }
}
.helia-ht-equip__media,
.helia-ht-therapy__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #e7e5e4;
}
.helia-ht-equip__media img,
.helia-ht-therapy__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.helia-ht-equip__media {
  min-height: 220px;
  aspect-ratio: 4 / 3;
}
.helia-ht-equip__media figcaption,
.helia-ht-therapy__media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 2.1rem 1rem 0.85rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.78), transparent);
}
.helia-ht-equip__title,
.helia-ht-therapy__title {
  margin: 0 0 0.7rem;
  color: #111;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
@media (min-width: 768px) {
  .helia-ht-equip__title {
    font-size: 1.4rem;
  }
}
.helia-ht-regen__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .helia-ht-regen__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}
.helia-ht-therapy {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f3f3f1;
  border-radius: 1.65rem;
}
.helia-ht-therapy__media {
  border-radius: 1.65rem 1.65rem 0 0;
  aspect-ratio: 16 / 11;
  min-height: 180px;
}
.helia-ht-therapy__copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.2rem 1.35rem;
}
.helia-ht-therapy__text {
  margin-bottom: 1.1rem;
}
.helia-ht-advice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 2.6rem;
  margin-top: auto;
  padding: 0.55rem 1.15rem;
  color: #fff;
  background: #227671;
  border: 1px solid #227671;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.helia-ht-advice:hover {
  background: #185652;
  border-color: #185652;
}
.helia-ht-results__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .helia-ht-results__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* ---------- Single service hero (screenshot-matched) ---------- */
html:has(body.helia-service-page) {
  scroll-padding-top: calc(var(--helia-header-h, 5.25rem) + var(--helia-toc-h, 3.5rem) + 0.75rem);
}

.helia-svc-hero {
  background: #fff;
  padding: 0.75rem 0 1.5rem;
}

.helia-svc-hero__shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

.helia-svc-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.helia-svc-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.45rem;
  margin: 0 0 1.15rem;
  color: #a8a29e;
  font-size: 0.78rem;
  line-height: 1.4;
}

.helia-svc-hero__crumbs a {
  color: #a8a29e;
  text-decoration: none;
  transition: color 0.15s ease;
}

.helia-svc-hero__crumbs a:hover {
  color: #227671;
}

.helia-svc-hero__crumb-current {
  color: #227671;
  font-weight: 700;
}

.helia-svc-hero__title {
  margin: 0 0 0.85rem;
  color: #1c1917;
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.75rem, 3.4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.helia-svc-hero__sub {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  color: #227671;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.55;
}

.helia-svc-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.helia-svc-hero__book,
.helia-svc-hero__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.helia-svc-hero__book {
  color: #fff;
  background: #f59556;
  border: 1px solid #f59556;
  box-shadow: 0 8px 18px rgba(245, 149, 86, 0.22);
}

.helia-svc-hero__book:hover {
  background: #e07f3e;
  border-color: #e07f3e;
  transform: translateY(-1px);
}

.helia-svc-hero__book svg {
  width: 1.05rem;
  height: 1.05rem;
  color: #fff;
  stroke: #fff;
}

.helia-svc-hero__wa {
  color: #f59556;
  background: #fff;
  border: 1.5px solid #f59556;
}

.helia-svc-hero__wa:hover {
  background: rgba(245, 149, 86, 0.08);
}

.helia-svc-hero__wa svg {
  width: 1.05rem;
  height: 1.05rem;
  stroke: currentColor;
}

.helia-svc-hero__media {
  min-width: 0;
}

.helia-svc-hero__frame {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 28rem;
  border-radius: 2.5rem;
  overflow: hidden;
  background: #f5f5f4;
}

.helia-svc-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.helia-svc-toc {
  position: sticky;
  top: var(--helia-header-h, 5.25rem);
  z-index: 40;
  background: #fff;
  border-top: 1px solid #e7e5e4;
  border-bottom: 1px solid #e7e5e4;
}

.helia-svc-toc__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.helia-svc-toc__links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.helia-svc-toc__links::-webkit-scrollbar {
  display: none;
}

.helia-svc-toc__links a {
  flex: 0 0 auto;
  color: #57534e;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.helia-svc-toc__links a:hover,
.helia-svc-toc__links a.is-active {
  color: #227671;
}

.helia-svc-toc__book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 0.4rem;
  min-height: 2.45rem;
  padding: 0.5rem 1rem 0.5rem 1.1rem;
  color: #fff;
  background: #227671;
  border: 1px solid #227671;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.helia-svc-toc__book:hover {
  background: #185652;
  border-color: #185652;
}

.helia-svc-toc__book svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
}

.helia-service #overview,
.helia-service #benefits,
.helia-service #procedure,
.helia-service #technology,
.helia-service #candidacy,
.helia-service #packages,
.helia-service #faqs {
  scroll-margin-top: calc(var(--helia-header-h, 5.25rem) + var(--helia-toc-h, 3.5rem) + 0.5rem);
}

@media (min-width: 640px) {
  .helia-svc-hero__shell {
    padding: 0 1.5rem;
  }
  .helia-svc-hero__sub {
    font-size: 1.05rem;
  }
  .helia-svc-toc__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .helia-svc-toc__links a {
    font-size: 0.78rem;
  }
}

@media (min-width: 1024px) {
  .helia-svc-hero {
    min-height: calc(100svh - var(--helia-header-h, 5.5rem) - var(--helia-toc-h, 3.6rem));
    display: flex;
    align-items: center;
    padding: 1rem 0 1.75rem;
  }
  .helia-svc-hero__shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem 3.25rem;
    padding: 0 2rem;
    width: 100%;
  }
  .helia-svc-hero__crumbs {
    font-size: 0.8125rem;
    margin-bottom: 1.5rem;
  }
  .helia-svc-hero__title {
    font-size: clamp(2.35rem, 3.2vw, 3.15rem);
    margin-bottom: 1rem;
  }
  .helia-svc-hero__sub {
    font-size: 1.08rem;
    margin-bottom: 1.75rem;
  }
  .helia-svc-hero__book,
  .helia-svc-hero__wa {
    min-height: 3.15rem;
    padding: 0.8rem 1.35rem;
    font-size: 0.9375rem;
  }
  .helia-svc-hero__frame {
    aspect-ratio: auto;
    height: min(560px, calc(100svh - var(--helia-header-h, 5.5rem) - var(--helia-toc-h, 3.6rem) - 3.5rem));
    max-height: none;
    border-radius: 3.25rem;
  }
  .helia-svc-toc__inner {
    padding: 0.6rem 2rem;
  }
  .helia-svc-toc__links {
    gap: 1.35rem;
  }
  .helia-svc-toc__links a {
    font-size: 0.8125rem;
  }
  .helia-svc-toc__book {
    min-height: 2.65rem;
    padding: 0.55rem 1.15rem 0.55rem 1.2rem;
    font-size: 0.875rem;
  }
}

@media (min-width: 1280px) {
  .helia-svc-hero__frame {
    height: min(620px, calc(100svh - var(--helia-header-h, 5.5rem) - var(--helia-toc-h, 3.6rem) - 3.25rem));
    border-radius: 3.5rem;
  }
}

/* ============================================================
   Medical Journal archive (home.php) — mockup match
   ============================================================ */

.helia-journal {
  background: #fff;
  padding: 2.25rem 0 5rem;
}

.helia-journal__shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

.helia-journal__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: #a8a29e;
  margin-bottom: 1.15rem;
}

.helia-journal__crumbs a {
  color: #a8a29e;
  text-decoration: none;
  transition: color 0.15s ease;
}

.helia-journal__crumbs a:hover {
  color: #227671;
}

.helia-journal__crumb-current {
  color: #227671;
  font-weight: 700;
}

.helia-journal__intro {
  max-width: 46rem;
  margin-bottom: 1.75rem;
}

.helia-journal__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1c1917;
}

.helia-journal__lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #78716c;
  max-width: 40rem;
}

.helia-journal__toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.helia-journal__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.helia-journal__filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: #f5f5f4;
  color: #44403c;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.helia-journal__filter:hover {
  background: #e7e5e4;
  color: #1c1917;
}

.helia-journal__filter.is-active {
  background: #227671;
  color: #fff;
}

.helia-journal__filter.is-active:hover {
  background: #185652;
  color: #fff;
}

.helia-journal__search {
  position: relative;
  width: 100%;
}

.helia-journal__search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #a8a29e;
  pointer-events: none;
  display: inline-flex;
}

.helia-journal__search-icon svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
}

.helia-journal__search input[type='search'] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem 0.65rem 2.65rem;
  border: 0;
  border-radius: 9999px;
  background: #f5f5f4;
  color: #1c1917;
  font-size: 0.875rem;
  font-weight: 500;
  outline: none;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.helia-journal__search input[type='search']::placeholder {
  color: #a8a29e;
}

.helia-journal__search input[type='search']:focus {
  background: #fafaf9;
  box-shadow: 0 0 0 2px rgba(34, 118, 113, 0.28);
}

.helia-journal__featured {
  margin-bottom: 2.25rem;
}

.helia-journal-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 40px -18px rgba(28, 25, 23, 0.18);
  border: 1px solid rgba(231, 229, 228, 0.9);
}

.helia-journal-featured__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #f5f5f4;
}

.helia-journal-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.helia-journal-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(28, 25, 23, 0.82);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.helia-journal-featured__body {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem 1.4rem;
}

.helia-journal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a8a29e;
}

.helia-journal-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.helia-journal-meta__item svg {
  width: 0.875rem;
  height: 0.875rem;
  stroke: currentColor;
  flex-shrink: 0;
}

.helia-journal-meta__dot {
  color: #d6d3d1;
}

.helia-journal-featured__title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: #1c1917;
}

.helia-journal-featured__title a {
  color: inherit;
  text-decoration: none;
}

.helia-journal-featured__title a:hover {
  color: #227671;
}

.helia-journal-featured__excerpt {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #78716c;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.helia-journal-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
}

.helia-journal-hashtags a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  background: #f5f5f4;
  color: #57534e;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.helia-journal-hashtags a:hover {
  background: #e7e5e4;
  color: #227671;
}

.helia-journal-read {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  align-self: flex-end;
  color: #227671;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease, gap 0.15s ease;
}

.helia-journal-read svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: currentColor;
  transition: transform 0.15s ease;
}

.helia-journal-read:hover {
  color: #185652;
}

.helia-journal-read:hover svg {
  transform: translateX(2px);
}

.helia-journal-read--featured {
  font-size: 0.875rem;
}

.helia-journal__list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.15rem;
}

.helia-journal__list-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #1c1917;
}

.helia-journal__list-count {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #a8a29e;
}

.helia-journal__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.helia-journal-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(231, 229, 228, 0.95);
  box-shadow: 0 8px 28px -20px rgba(28, 25, 23, 0.22);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.helia-journal-card:hover {
  border-color: rgba(34, 118, 113, 0.28);
  box-shadow: 0 14px 36px -18px rgba(28, 25, 23, 0.28);
  transform: translateY(-2px);
}

.helia-journal-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f4;
}

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

.helia-journal-card:hover .helia-journal-card__img {
  transform: scale(1.04);
}

.helia-journal-bookmark {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.94);
  color: #57534e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px -6px rgba(28, 25, 23, 0.35);
  pointer-events: none;
}

.helia-journal-bookmark svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  fill: none;
}

.helia-journal-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.05rem 1.1rem 1.15rem;
}

.helia-journal-card__title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #227671;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.helia-journal-card__title a {
  color: inherit;
  text-decoration: none;
}

.helia-journal-card__title a:hover {
  color: #185652;
}

.helia-journal-card__excerpt {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #78716c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.helia-journal__empty {
  margin: 0;
  padding: 2rem 0;
  color: #78716c;
  font-size: 0.95rem;
}

.helia-journal__pagination {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.helia-journal__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  margin: 0 0.15rem;
  padding: 0 0.55rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #57534e;
  text-decoration: none;
}

.helia-journal__pagination .page-numbers.current,
.helia-journal__pagination a.page-numbers:hover {
  background: #227671;
  color: #fff;
}

@media (min-width: 640px) {
  .helia-journal {
    padding: 2.75rem 0 6rem;
  }

  .helia-journal__shell {
    padding: 0 1.5rem;
  }

  .helia-journal__lead {
    font-size: 1rem;
  }

  .helia-journal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1024px) {
  .helia-journal__shell {
    padding: 0 2rem;
  }

  .helia-journal__toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .helia-journal__filters {
    flex: 1;
    min-width: 0;
  }

  .helia-journal__search {
    width: min(320px, 34%);
    flex-shrink: 0;
  }

  .helia-journal-featured {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    min-height: 340px;
  }

  .helia-journal-featured__media {
    aspect-ratio: auto;
    min-height: 100%;
  }

  .helia-journal-featured__body {
    padding: 1.75rem 1.6rem 1.65rem 1.5rem;
  }

  .helia-journal__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .helia-journal__list-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 1280px) {
  .helia-journal-featured {
    min-height: 380px;
  }

  .helia-journal-featured__body {
    padding: 2rem 1.85rem 1.85rem 1.75rem;
  }

  .helia-journal-featured__title {
    font-size: 1.75rem;
  }
}
