/*
 * enoughX article detail pages
 *
 * The detail template deliberately reuses the same card, type and navigation
 * language as the public enoughX pages.  Page-specific rules stay scoped so
 * the shared homepage/listing styles remain the single source of truth.
 */

.article-detail-page {
  --article-detail-gap: clamp(1.25rem, 2.4vw, 2rem);
}

/* Keep the footer shell identical to the homepage shell; article content uses
   a narrower shell than the shared footer. */
body.enoughx-article-detail-page #footer.ex-footer > .ex-shell {
  width: min(calc(100% - 2rem), 1440px);
  margin-inline: auto;
}

.article-detail-page .ex-shell {
  width: min(calc(100% - 2rem), 1240px);
  margin-inline: auto;
}

.article-detail-page .ex-section {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 0;
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  text-align: left;
}

/* Article detail pages retain the home classes for the shared surface, so the
   legacy #hero rules need a page-scoped ID-level override. */
body.enoughx-article-detail-page #hero.article-detail__hero {
  display: flex;
  align-items: center;
  min-height: min(88vh, 54rem);
  padding: clamp(6rem, 11vw, 9rem) 0 clamp(3rem, 7vw, 6rem);
  text-align: left;
}

.article-detail-page .article-detail__hero-card {
  min-height: clamp(30rem, 62vh, 44rem);
  overflow: hidden;
}

.article-detail-page .article-detail__hero-card .ex-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, .95fr);
  gap: 0;
  min-height: inherit;
}

.article-detail-page .article-detail__hero-copy {
  position: relative;
  z-index: 2;
  order: 1;
  width: 100%;
}

.article-detail-page .article-detail__hero-copy .ex-eyebrow {
  max-width: 56ch;
}

body.enoughx-article-detail-page #hero.article-detail__hero .article-detail__hero-copy h1 {
  margin: .75rem 0;
  font-size: clamp(2.5rem, 4vw, 5rem);
  line-height: 1.03;
  text-wrap: balance;
}

body.enoughx-article-detail-page #hero.article-detail__hero .article-detail__hero-copy .ex-lead {
  max-width: 58ch;
  margin: 1.5rem 0 0 !important;
  color: var(--text-secondary, #a3a3a3);
  font: clamp(1rem, 1.5vw, 1.2rem) / 1.7 "metropolis-regular", Arial, sans-serif;
  text-align: left;
}

.article-detail-page .article-detail__hero-card .ex-card__visual {
  position: relative;
  inset: auto;
  order: 2;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  border-left: 1px solid rgba(241, 238, 232, .14);
  background: rgba(15, 10, 10, .74);
  opacity: 1;
  pointer-events: none;
}

.article-detail-page .article-detail__hero-card .ex-card__visual::before {
  display: none;
}

.article-detail-page .article-detail__hero-card .ex-card__visual::after {
  display: none;
}

.article-detail-page .article-detail__hero-media {
  position: relative;
  inset: auto;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 3.5vw, 3.5rem);
}

.article-detail-page .article-detail__hero-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 34rem;
  max-height: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1.25rem;
  border: 1px solid rgba(241, 238, 232, .16);
  background: rgba(0, 0, 0, .16);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, .3);
  opacity: 1;
  mix-blend-mode: normal;
  filter: none;
  transform: none;
}

.article-detail-page .article-detail__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--text-secondary, #a3a3a3);
  font: .78rem/1.5 "metropolis-semibold", Arial, sans-serif;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.article-detail-page .article-detail__hero-meta > * + *::before {
  content: "/";
  margin-right: 1.25rem;
  color: var(--ex-red, #e74c3c);
}

.article-detail-page .article-detail__content-section {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.article-detail-page .article-detail__layout {
  display: block;
}

.article-detail-page .article-detail__article-card {
  min-width: 0;
  border-color: rgba(231, 76, 60, .48);
}

.article-detail-page .article-detail__article-card .ex-card__content {
  padding: clamp(1.35rem, 3.6vw, 3.8rem);
}

.article-detail-page .article-detail__body {
  color: var(--text-secondary, #a3a3a3);
  font: 1rem/1.82 "metropolis-regular", Arial, sans-serif;
}

.article-detail-page .article-detail__body > :first-child {
  margin-top: 0;
}

.article-detail-page .article-detail__body h2,
.article-detail-page .article-detail__body h3,
.article-detail-page .article-detail__body h4 {
  color: var(--text-primary, #f5f5f5);
  font-family: var(--font-logo, "Yeseva One"), Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.article-detail-page .article-detail__body h2 {
  margin: clamp(2rem, 5vw, 3.5rem) 0 1rem;
  font-size: clamp(1.75rem, 3.1vw, 3rem);
}

.article-detail-page .article-detail__body h3 {
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 .75rem;
  font-size: clamp(1.35rem, 2.25vw, 2rem);
}

.article-detail-page .article-detail__body h4 {
  margin: 1.5rem 0 .55rem;
  font-size: 1.35rem;
}

.article-detail-page .article-detail__body p,
.article-detail-page .article-detail__body ul,
.article-detail-page .article-detail__body ol,
.article-detail-page .article-detail__body blockquote,
.article-detail-page .article-detail__body table {
  margin: 0 0 1.15rem;
}

.article-detail-page .article-detail__body p {
  margin: 0 0 1.15rem !important;
  color: inherit;
  font: inherit;
}

.article-detail-page .article-detail__body ul,
.article-detail-page .article-detail__body ol {
  padding-left: 1.35rem;
}

.article-detail-page .article-detail__body li + li {
  margin-top: .45rem;
}

.article-detail-page .article-detail__body strong,
.article-detail-page .article-detail__body b {
  color: var(--text-primary, #f5f5f5);
  font-family: "metropolis-semibold", Arial, sans-serif;
  font-weight: 600;
}

.article-detail-page .article-detail__body a {
  display: inline;
  gap: 0;
  margin: 0;
  color: #ff8173;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: underline;
  text-decoration-color: rgba(255, 129, 115, .45);
  text-underline-offset: .18em;
  transition: none;
}

.article-detail-page .article-detail__body a::after {
  content: none;
}

.article-detail-page .article-detail__body a:hover,
.article-detail-page .article-detail__body a:focus-visible {
  gap: 0;
  color: var(--text-primary, #f5f5f5);
  text-decoration-color: currentColor;
}

.article-detail-page .article-detail__body blockquote {
  margin-block: 1.75rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--ex-red, #e74c3c);
  color: #d7d1cd;
  background: rgba(231, 76, 60, .06);
}

.article-detail-page .article-detail__body pre,
.article-detail-page .article-detail__body code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.article-detail-page .article-detail__body pre {
  overflow-x: auto;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(241, 238, 232, .14);
  border-radius: 12px;
  color: #f5f5f5;
  background: rgba(0, 0, 0, .3);
  font-size: .86rem;
  line-height: 1.65;
}

.article-detail-page .article-detail__body code {
  color: #ffd0c8;
  font-size: .9em;
}

.article-detail-page .article-detail__body pre code {
  color: inherit;
  font-size: inherit;
}

.article-detail-page .article-detail__body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  color: var(--text-secondary, #a3a3a3);
}

.article-detail-page .article-detail__body th,
.article-detail-page .article-detail__body td {
  padding: .7rem .85rem;
  border: 1px solid rgba(241, 238, 232, .16);
  text-align: left;
}

.article-detail-page .article-detail__body th {
  color: var(--text-primary, #f5f5f5);
  font-family: "metropolis-semibold", Arial, sans-serif;
}

.article-detail-page .article-detail__body img,
.article-detail-page .article-detail__body figure {
  max-width: 100%;
}

.article-detail-page .article-detail__body img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(20rem, 55vw, 32rem);
  margin: 1.6rem auto 2rem;
  border: 1px solid rgba(241, 238, 232, .16);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
}

.article-detail-page .article-detail__body figure {
  margin: 1.6rem 0 2rem;
  text-align: center;
}

.article-detail-page .article-detail__body figure img {
  margin: 0 auto;
}

.article-detail-page .article-detail__body figcaption {
  margin-top: .55rem;
  color: rgba(245, 245, 245, .58);
  font-size: .78rem;
}

.article-detail-page .article-detail__lead-media {
  margin: 0 0 clamp(1.75rem, 4vw, 3rem);
}

.article-detail-page .article-detail__lead-media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(20rem, 55vw, 32rem);
  margin: 0 auto;
  object-fit: contain;
}

.article-detail-page .article-detail__related-section {
  padding-top: clamp(3rem, 6vw, 5rem);
}

.article-detail-page .article-detail__related-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.article-detail-page .article-detail__related-head h2 {
  margin: .55rem 0 0;
  color: var(--text-primary, #f5f5f5);
  font-family: var(--font-logo, "Yeseva One"), Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.article-detail-page .article-detail__related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--article-detail-gap);
}

.article-detail-page .article-detail__related-grid .ex-card {
  min-width: 0;
}

.article-detail-page .article-detail__related-grid .ex-card__content {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.article-detail-page .article-detail__related-grid .ex-photo-card__media {
  aspect-ratio: 16 / 10;
}

.article-detail-page .article-detail__related-grid .ex-photo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-detail-page .article-detail__related-grid h3 {
  font-size: clamp(1.15rem, 1.75vw, 1.55rem);
}

.article-detail-page .article-detail__cta {
  padding-top: clamp(3rem, 7vw, 6rem);
}

@media (min-width: 992px) {
  .article-detail-page .ex-shell {
    width: min(calc(100% - 9.5rem), 1240px);
    margin-inline: auto;
  }

  body.enoughx-article-detail-page #footer.ex-footer > .ex-shell {
    width: min(calc(100% - 9.5rem), 1440px);
  }
}

@media (max-width: 980px) {
  .article-detail-page .article-detail__hero-card .ex-hero-grid {
    grid-template-columns: 1fr;
  }

  .article-detail-page .article-detail__hero-copy {
    width: 100%;
  }

  .article-detail-page .article-detail__hero-card .ex-card__visual {
    min-height: clamp(20rem, 52vw, 30rem);
    border-top: 1px solid rgba(241, 238, 232, .14);
    border-left: 0;
  }

  .article-detail-page .article-detail__related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .article-detail-page .ex-shell {
    width: min(calc(100% - 1.5rem), 1180px);
  }

  body.enoughx-article-detail-page #footer.ex-footer > .ex-shell {
    width: min(calc(100% - 1.5rem), 1180px);
  }

  .article-detail-page .ex-section {
    padding: 4rem 0;
  }

  body.enoughx-article-detail-page #hero.article-detail__hero {
    min-height: 0;
    padding-top: 6rem;
  }

  .article-detail-page .article-detail__hero-card {
    min-height: 0;
  }

  .article-detail-page .article-detail__hero-copy {
    width: 100%;
  }

  .article-detail-page .article-detail__hero-card .ex-card__visual {
    min-height: clamp(18rem, 72vw, 26rem);
    opacity: 1;
  }

  .article-detail-page .article-detail__hero-media {
    padding: 1.25rem;
  }

  .article-detail-page .article-detail__hero-media img {
    width: 100%;
    height: auto;
    max-width: 24rem;
    max-height: none;
    opacity: 1;
  }

  .article-detail-page .article-detail__related-grid {
    grid-template-columns: 1fr;
  }

  .article-detail-page .article-detail__related-head {
    display: block;
  }
}

/* -------------------------------------------------------------------------- */
/* SEO article hero experiment                                                */
/*                                                                            */
/* This layout is intentionally scoped to the Slovak SEO article while the   */
/* new composition is being reviewed. The shared article-detail template and */
/* the English branch keep their existing hero layout for now.                */
/* -------------------------------------------------------------------------- */

.article-detail-page--seo-hero .article-detail__hero-card .ex-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .82fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "title title"
    "lead media"
    "meta media"
    "actions media";
  align-items: start;
  column-gap: clamp(1.5rem, 4.5vw, 4rem);
  row-gap: 0;
  min-height: inherit;
  padding: clamp(2rem, 4.5vw, 4.5rem);
}

.article-detail-page--seo-hero .article-detail__hero-copy {
  display: contents;
}

.article-detail-page--seo-hero .article-detail__hero-copy > .ex-eyebrow {
  grid-area: eyebrow;
  margin: 0;
}

.article-detail-page--seo-hero #hero.article-detail__hero .article-detail__hero-copy > h1 {
  grid-area: title;
  width: 100%;
  max-width: none;
  margin: .75rem 0 clamp(1.75rem, 3vw, 2.5rem);
}

.article-detail-page--seo-hero #hero.article-detail__hero .article-detail__hero-copy > .ex-lead {
  grid-area: lead;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  align-self: start;
}

.article-detail-page--seo-hero .article-detail__hero-copy > .article-detail__hero-meta {
  grid-area: meta;
  align-self: start;
}

.article-detail-page--seo-hero .article-detail__hero-copy > .ex-actions {
  grid-area: actions;
  align-self: start;
}

.article-detail-page--seo-hero .article-detail__hero-card .ex-card__visual {
  grid-area: media;
  align-self: stretch;
  width: 100%;
  min-height: 0;
  border-left: 1px solid rgba(241, 238, 232, .14);
  border-top: 0;
  border-radius: 0;
}

.article-detail-page--seo-hero .article-detail__hero-media {
  display: grid;
  place-items: center;
  height: 100%;
  padding: clamp(.5rem, 1.25vw, 1.25rem) 0 clamp(.5rem, 1.25vw, 1.25rem) clamp(1rem, 2.5vw, 2rem);
}

.article-detail-page--seo-hero .article-detail__hero-media img {
  width: 100%;
  max-width: 32rem;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}

@media (max-width: 980px) {
  .article-detail-page--seo-hero .article-detail__hero-card .ex-hero-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "lead"
      "meta"
      "actions"
      "media";
    row-gap: 0;
  }

  .article-detail-page--seo-hero .article-detail__hero-card .ex-card__visual {
    align-self: start;
    min-height: 0;
    margin-top: clamp(2rem, 6vw, 3.5rem);
    border-top: 1px solid rgba(241, 238, 232, .14);
    border-left: 0;
  }

  .article-detail-page--seo-hero .article-detail__hero-media {
    height: auto;
    padding: clamp(1.25rem, 4vw, 2.5rem) 0 0;
  }

  .article-detail-page--seo-hero .article-detail__hero-media img {
    width: min(100%, 32rem);
  }
}

@media (max-width: 760px) {
  .article-detail-page--seo-hero .article-detail__hero-card .ex-hero-grid {
    padding: 1.35rem;
  }

  .article-detail-page--seo-hero #hero.article-detail__hero .article-detail__hero-copy > h1 {
    max-width: none;
  }
}

/* Single-article footer composition under review. */
.article-detail-page--seo-hero #footer.ex-footer .ex-footer-grid > div:last-child .social-links {
  margin-top: 0.5rem;
}

.article-detail-page--seo-hero #footer.ex-footer .ex-footer-bottom {
  justify-content: center;
}
