/* ==========================================================================
   Tribe Aura — Journal
   --------------------------------------------------------------------------
   Archive (lead post + card grid, category filter) and single post.

   Mobile-first; breakpoints written literally: 480 / 768 / 1024 / 1280.
   Long-form prose styling (.ta-prose) is shared with the support pages.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Archive
   -------------------------------------------------------------------------- */

.ta-journal-archive {
  padding-bottom: var(--ta-section-y);
}

.ta-journal-archive__hero {
  background-color: var(--ta-color-bg-alt);
  padding-block: var(--ta-section-y-tight);
  margin-bottom: var(--ta-section-y-tight);
}

.ta-journal-archive__title {
  margin-top: var(--ta-space-3xs);
  font-size: var(--ta-text-3xl);
}

.ta-journal-archive__intro {
  margin-top: var(--ta-space-sm);
  max-width: var(--ta-measure);
  font-size: var(--ta-text-md);
  line-height: var(--ta-leading-relaxed);
  color: var(--ta-color-text-muted);
}

.ta-journal-archive__filters {
  margin-top: var(--ta-space-lg);
}

/* Reuses the shop's pill component; only the active state is new here. */
.ta-subcats__link--current {
  background-color: var(--ta-color-text);
  border-color: var(--ta-color-text);
  color: var(--ta-color-text-invert);
}

.ta-subcats__link--current .ta-subcats__count {
  color: var(--ta-color-text-invert);
  opacity: 0.7;
}

/* --- Grid --- */

.ta-journal-archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ta-gap-lg);
}

@media (min-width: 640px) {
  .ta-journal-archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .ta-journal-archive__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ta-space-xl) var(--ta-gap-lg);
  }
}


/* --------------------------------------------------------------------------
   Post card
   -------------------------------------------------------------------------- */

.ta-jcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ta-jcard__media {
  display: block;
  aspect-ratio: var(--ta-ratio-wide);
  background-color: var(--ta-color-bg-alt);
  border-radius: var(--ta-radius-image);
  overflow: hidden;
}

.ta-jcard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ta-duration-slow) var(--ta-ease-out);
}

.ta-jcard:hover .ta-jcard__img {
  transform: scale(1.03);
}

/* Stand-in until featured images exist — matches the product cards. */
.ta-jcard__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--ta-color-bg-alt);
}

.ta-jcard__mark {
  font-family: var(--ta-font-display);
  font-size: var(--ta-text-4xl);
  font-weight: var(--ta-weight-light);
  color: var(--ta-color-border-strong);
  line-height: 1;
  user-select: none;
}

.ta-jcard__body {
  padding-top: var(--ta-space-sm);
}

.ta-jcard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ta-space-2xs);
  margin: 0;
  max-width: none;
  font-size: var(--ta-text-2xs);
  letter-spacing: var(--ta-tracking-wide);
  text-transform: uppercase;
  color: var(--ta-color-text-subtle);
}

.ta-jcard__cat {
  color: var(--ta-color-accent-text);
}

.ta-jcard__title {
  margin-top: var(--ta-space-2xs);
  font-family: var(--ta-font-display);
  font-size: var(--ta-text-xl);
  font-weight: var(--ta-weight-medium);
  line-height: var(--ta-leading-snug);
}

.ta-jcard__title a {
  color: var(--ta-color-heading);
  text-decoration: none;
}

.ta-jcard__title a:hover {
  color: var(--ta-color-link-hover);
}

.ta-jcard__excerpt {
  margin-top: var(--ta-space-2xs);
  font-size: var(--ta-text-sm);
  line-height: var(--ta-leading-relaxed);
  color: var(--ta-color-text-muted);
}

.ta-jcard__more {
  display: inline-flex;
  align-items: center;
  gap: var(--ta-space-3xs);
  margin-top: var(--ta-space-sm);
  font-size: var(--ta-text-2xs);
  font-weight: var(--ta-weight-medium);
  letter-spacing: var(--ta-tracking-wide);
  text-transform: uppercase;
  color: var(--ta-color-accent-text);
}

.ta-jcard__more .ta-icon {
  transition: transform var(--ta-transition);
}

.ta-jcard:hover .ta-jcard__more .ta-icon {
  transform: translateX(3px);
}

/* --- Lead post --- */

@media (min-width: 640px) {
  /* Spans the full row so it reads as the featured story rather than the
     first of several equals. */
  .ta-jcard--lead {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .ta-jcard--lead {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: var(--ta-space-xl);
    align-items: center;
    padding-bottom: var(--ta-space-xl);
    margin-bottom: var(--ta-space-sm);
    border-bottom: var(--ta-border-width) solid var(--ta-color-border);
  }

  .ta-jcard--lead .ta-jcard__body {
    padding-top: 0;
  }

  .ta-jcard--lead .ta-jcard__title {
    font-size: var(--ta-text-2xl);
  }

  .ta-jcard--lead .ta-jcard__excerpt {
    font-size: var(--ta-text-base);
  }
}


/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.ta-journal-archive .navigation.pagination {
  margin-top: var(--ta-space-2xl);
}

.ta-journal-archive .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--ta-space-3xs);
}

.ta-journal-archive .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding-inline: var(--ta-space-2xs);
  border-radius: var(--ta-radius-sm);
  font-size: var(--ta-text-sm);
  text-decoration: none;
  color: var(--ta-color-text);
}

.ta-journal-archive a.page-numbers:hover {
  background-color: var(--ta-color-bg-alt);
}

.ta-journal-archive .page-numbers.current {
  background-color: var(--ta-btn-primary-bg);
  color: var(--ta-btn-primary-text);
}


/* --------------------------------------------------------------------------
   Single post
   -------------------------------------------------------------------------- */

.ta-post-single {
  padding-bottom: var(--ta-section-y);
}

.ta-post-single__hero {
  padding-block: var(--ta-section-y-tight);
}

.ta-post-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ta-space-2xs);
  margin: 0;
  max-width: none;
  font-size: var(--ta-text-2xs);
  letter-spacing: var(--ta-tracking-wide);
  text-transform: uppercase;
  color: var(--ta-color-text-subtle);
}

.ta-post-single__title {
  margin-top: var(--ta-space-2xs);
  font-size: var(--ta-text-3xl);
}

.ta-post-single__standfirst {
  margin-top: var(--ta-space-md);
  font-size: var(--ta-text-md);
  line-height: var(--ta-leading-relaxed);
  color: var(--ta-color-text-muted);
}

.ta-post-single__figure {
  margin: 0 0 var(--ta-section-y-tight);
}

.ta-post-single__img {
  width: 100%;
  height: auto;
  border-radius: var(--ta-radius-image);
}

/*
 * The body is inside .ta-container--narrow (46rem), which lands the measure in
 * the 65–75ch range the plan asks for at the base body size.
 */
.ta-post-single__body {
  font-size: var(--ta-text-md);
}

.ta-post-single__body > p:first-child {
  margin-top: 0;
}


/* --------------------------------------------------------------------------
   Share
   -------------------------------------------------------------------------- */

.ta-share {
  display: flex;
  align-items: center;
  gap: var(--ta-space-sm);
  margin-top: var(--ta-space-2xl);
  padding-top: var(--ta-space-md);
  border-top: var(--ta-border-width) solid var(--ta-color-border);
}

.ta-share__label {
  font-size: var(--ta-text-2xs);
  font-weight: var(--ta-weight-semibold);
  letter-spacing: var(--ta-tracking-wider);
  text-transform: uppercase;
  color: var(--ta-color-text-subtle);
}

.ta-share__list {
  display: flex;
  gap: var(--ta-space-3xs);
}

.ta-share__list li { margin: 0; }

.ta-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 44px touch target. */
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: var(--ta-radius-circle);
  color: var(--ta-color-text-muted);
  text-decoration: none;
  transition: color var(--ta-transition), background-color var(--ta-transition);
}

.ta-share__link:hover {
  background-color: var(--ta-color-bg-alt);
  color: var(--ta-color-link-hover);
}


/* --------------------------------------------------------------------------
   Shop This Story
   -------------------------------------------------------------------------- */

.ta-shopstory {
  background-color: var(--ta-color-bg-alt);
  margin-top: var(--ta-section-y-tight);
}

.ta-shopstory__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--ta-gap-md);
}

@media (min-width: 768px) {
  .ta-shopstory__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ta-gap-lg);
  }
}

.ta-shopstory__grid li { margin: 0; }

/* The card sits on the sand band here, so its media well needs to lift off it
   rather than disappear into it. */
.ta-shopstory .ta-card__media,
.ta-shopstory .ta-card__placeholder {
  background-color: var(--ta-color-surface);
}


/* --------------------------------------------------------------------------
   Prev / next
   -------------------------------------------------------------------------- */

.ta-postnav__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--ta-gap-md);
  padding-top: var(--ta-space-lg);
  border-top: var(--ta-border-width) solid var(--ta-color-border);
}

@media (min-width: 768px) {
  .ta-postnav__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ta-postnav__link {
  display: flex;
  flex-direction: column;
  gap: var(--ta-space-3xs);
  padding: var(--ta-space-md);
  background-color: var(--ta-color-bg-alt);
  border-radius: var(--ta-radius-card);
  text-decoration: none;
}

.ta-postnav__link:hover {
  background-color: var(--ta-color-border);
}

/* The "next" card right-aligns so the pair reads outward from the centre. */
@media (min-width: 768px) {
  .ta-postnav__link--next {
    text-align: right;
  }
}

.ta-postnav__label {
  font-size: var(--ta-text-2xs);
  letter-spacing: var(--ta-tracking-wider);
  text-transform: uppercase;
  color: var(--ta-color-text-subtle);
}

.ta-postnav__title {
  font-family: var(--ta-font-display);
  font-size: var(--ta-text-lg);
  line-height: var(--ta-leading-snug);
  color: var(--ta-color-heading);
}
