/* =========================================================
   HOMEPAGE HERO
========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: var(--opacity-muted);
}

.hero-inner {
  position: relative;
  z-index: var(--z-content);
  transform: var(--translate-hero);
  color: var(--color-text-inverse);
}

.hero h1 {
  color: var(--color-text-inverse);
  opacity: var(--opacity-muted);
}

.hero p {
  font-size: var(--font-body-lg);
  margin-top: var(--space-5);
  color: var(--color-text-inverse);
  opacity: var(--opacity-muted);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    min-height: 80vh;
  }

  .hero-inner {
    max-width: 42.5rem;
  }
}

/* =========================================================
   STORY
========================================================= */
.story-content {
  display: flex;
  flex-direction: var(--story-direction);
  align-items: center;
  gap: var(--space-10);
  max-width: var(--content-width-wide);
  margin: var(--space-12) auto 0;
}

.profile-pic {
  width: 15rem;
  height: 15rem;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-pill);
  border: var(--stroke-profile) solid var(--color-primary);
  box-shadow: var(--elevation-floating);
}

.story-content p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: var(--line-reading);
}

.story-copy {
  flex: 1;
  min-width: 0;
}

.story-copy > p + p {
  margin-top: var(--space-4);
}

.story-more-toggle {
  cursor: pointer;
  list-style: none;
}

.story-more-toggle::-webkit-details-marker {
  display: none;
}

.story-more-label-open {
  display: none;
}

.story-more[open] .story-more-label-closed {
  display: none;
}

.story-more[open] .story-more-label-open {
  display: inline;
}

.story-more-content {
  margin-top: var(--space-4);
}

.story-more-content p + p {
  margin-top: var(--space-4);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .story-content {
    gap: var(--space-8);
  }

  .profile-pic {
    width: 12.5rem;
    height: 12.5rem;
  }
}

@media (max-width: 767px) {
  .story-content {
    flex-direction: column;
    gap: var(--space-6);
    text-align: center;
  }

  .profile-pic {
    width: 11.25rem;
    height: 11.25rem;
  }
}

/* =========================================================
   ARTICLE CONTENT
========================================================= */
.article-post {
  max-width: var(--content-width);
  margin-inline: auto;
}

.article-header {
  position: relative;
  margin-bottom: var(--space-12);
}

.article-header h1 {
  margin-top: var(--space-8);
  color: var(--color-primary);
  opacity: var(--opacity-muted);
}

.article-meta {
  color: var(--color-text-muted);
  font-size: var(--font-small);
  opacity: var(--opacity-muted);
}

.article-body table {
  display: block;
  width: 100%;
  margin-block: var(--space-8);
  overflow-x: auto;
  border-collapse: collapse;
  border-radius: var(--radius-control);
  box-shadow: var(--elevation-subtle);
  background: var(--surface-card);
}

.article-body th,
.article-body td {
  min-width: 11rem;
  padding: var(--space-3) var(--space-4);
  border: var(--stroke-thin) solid var(--accent-sage);
  text-align: start;
  vertical-align: top;
}

.article-body th {
  background: var(--accent-sage);
  color: var(--color-text);
  font-weight: var(--weight-bold);
}

.article-body td:first-child {
  min-width: 8rem;
  color: var(--color-primary);
  font-weight: var(--weight-medium);
}

.article-hero {
  position: relative;
  width: 100vw;
  margin-inline-start: calc(50% - 50vw);
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.article-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.75));
  pointer-events: none;
  z-index: 1;
}

.article-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding-bottom: var(--space-8);
}

.article-hero-overlay h1,
.article-hero-overlay .article-meta {
  color: var(--color-text-inverse);
  margin-top: 0;
}

.article-cta {
  border-radius: var(--radius-card);
  padding: var(--space-8);
  box-shadow: var(--elevation-card);
  text-align: center;
  margin: var(--space-12) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-cta h3 {
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

@media (max-width: 767px) {
  .article-hero {
    height: 320px;
  }

  .article-hero-overlay {
    padding-inline: var(--space-5);
  }

  .article-cta {
    padding: var(--space-6) var(--space-4);
  }
}

/* =========================================================
   BREADCRUMBS
========================================================= */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--font-small);
}

.breadcrumbs a,
.breadcrumbs a:visited {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumb-separator { opacity: 0.6; }
.breadcrumb-current { font-weight: var(--weight-medium); }

/* =========================================================
   RTL
========================================================= */
html[dir="rtl"] .article-header,
html[dir="rtl"] .hero-inner {
  text-align: center;
}
