/* Foundation */

.jth-section {
  margin: var(--jth-space-4) 0;
}

.jth-section h2 {
  font-size: var(--jth-text-xl);
  color: var(--jth-ink);
  line-height: 1.3;
  margin-bottom: var(--jth-space-1);
}

.jth-section h3 {
  font-size: var(--jth-text-lg);
  color: var(--jth-ink);
  line-height: 1.3;
}

.jth-section p {
  font-size: var(--jth-text-base);
  color: var(--jth-muted);
  line-height: 1.7;
}

/* Foundation: section headings.
   Cocoon/WordPress sometimes adds a gray heading block style to top-level
   block headings. For the travel-guide sections, we want a lighter, more
   editorial look with the heading sitting directly in the flow. */
.jth-section > h2.wp-block-heading,
.home .entry-content > h2.wp-block-heading {
  margin: 0 0 var(--jth-space-1) !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--jth-ink-strong);
  font-size: var(--jth-text-xl);
  line-height: 1.25;
}

.home .entry-content > h2.wp-block-heading {
  margin-top: var(--jth-space-4) !important;
}

/* Foundation: contextual nav */

.jth-related-nav {
  border-top: 1px solid var(--jth-border);
  padding-top: var(--jth-space-2);
  margin-top: var(--jth-space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--jth-space-1);
}

.jth-related-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--jth-space-2);
  border: 1px solid var(--jth-border-soft);
  border-radius: var(--jth-radius);
  background: var(--jth-bg-panel);
  color: var(--jth-accent);
  text-decoration: none;
}

.jth-related-nav a:hover {
  border-color: var(--jth-accent);
  box-shadow: var(--jth-shadow-card);
}

.jth-article-footer {
  margin: var(--jth-space-4) 0 0;
  padding: var(--jth-space-2);
  border: 1px solid var(--jth-border-soft);
  border-radius: var(--jth-radius-lg);
  background: var(--jth-bg);
  box-shadow: var(--jth-shadow-card);
}

.jth-article-footer h2 {
  margin: 0 0 var(--jth-space-1);
  font-size: var(--jth-text-xl);
  color: var(--jth-ink-strong);
}

/* Foundation: curated article cards in Related guides. */
.jth-related-guides__articles {
  margin-top: var(--jth-space-3);
}

.jth-related-guides__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--jth-space-1);
}

.jth-related-guide-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--jth-border-soft);
  border-radius: var(--jth-radius);
  background: var(--jth-bg-panel);
  color: var(--jth-ink);
  text-decoration: none;
  transition: var(--jth-transition);
}

.jth-related-guide-card:hover {
  border-color: var(--jth-accent);
  box-shadow: var(--jth-shadow-hover);
  transform: translateY(-1px);
}

.jth-related-guide-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.jth-related-guide-card__body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: var(--jth-space-1) var(--jth-space-2);
}

.jth-related-guide-card__context {
  color: var(--jth-muted);
  font-size: var(--jth-text-sm);
}

.jth-related-guide-card__title {
  color: var(--jth-ink-strong);
  font-weight: 700;
  line-height: 1.35;
}

@media (min-width: 768px) {
  .jth-related-guides__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Foundation: compact source note for researched articles.
   Keep this quieter than CTAs and theme-injected related guides. */
.jth-sources-checked {
  margin: var(--jth-space-3) 0 0;
  padding-top: var(--jth-space-1);
  border-top: 1px solid var(--jth-border-soft);
  color: var(--jth-muted);
  font-size: var(--jth-text-sm);
  line-height: 1.6;
}

.jth-sources-checked p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.jth-sources-checked a {
  color: var(--jth-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Foundation: affiliate disclosure */

.jth-affiliate-disclosure {
  font-size: var(--jth-text-sm);
  color: var(--jth-muted);
  border-top: 1px solid var(--jth-border);
  padding-top: var(--jth-space-1);
  margin-top: var(--jth-space-3);
}
