.journal-format-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 2.5rem;
  padding: 0.75rem;
  border: 1px solid rgba(22, 32, 51, 0.14);
  border-radius: 0.85rem;
  background: rgba(22, 32, 51, 0.04);
}

.journal-format-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(22, 32, 51, 0.2);
  border-radius: 999px;
  color: #162033;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.journal-format-nav a:hover,
.journal-format-nav a:focus-visible {
  border-color: #162033;
  background: #162033;
  color: #fff;
}

.journal-format-section {
  scroll-margin-top: 7rem;
}

.journal-format-section + .journal-format-section {
  margin-top: 4rem;
  padding-top: 3.25rem;
  border-top: 1px solid rgba(22, 32, 51, 0.18);
}

.journal-format-heading {
  margin-bottom: 0.35rem;
}

.journal-format-meta {
  margin: 0 0 1.75rem;
  color: #5f6878;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.journal-format-short {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 4px solid #b78a4a;
  border-radius: 0.25rem 0.85rem 0.85rem 0.25rem;
  background: rgba(183, 138, 74, 0.07);
}

.journal-format-short h3,
.journal-format-blog h3 {
  margin-top: 2rem;
}

.journal-format-short h3:first-of-type,
.journal-format-blog h3:first-of-type {
  margin-top: 1.25rem;
}

.journal-format-blog .blog-intro {
  font-size: 1.12rem;
  line-height: 1.75;
}

.journal-figure {
  margin: 2.25rem 0 2.5rem;
}

.journal-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.85rem;
}

.journal-figure figcaption {
  margin-top: 0.7rem;
  color: #5f6878;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .journal-format-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .journal-format-nav a {
    width: 100%;
  }

  .journal-format-section + .journal-format-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journal-format-nav a {
    transition: none;
  }
}
