
.philosophy {
  max-width: 800px;

}

.philosophy-subnav {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--slate-300);
}

.philosophy-subnav a {
  border-radius: 4px;
  color: var(--slate-700);
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s, color 0.2s;
}

.philosophy-subnav a:hover {
  background-color: var(--slate-200);
  color: var(--stone-700);
}

.philosophy-subnav a.active {
  background-color: var(--slate-325);
  color: var(--slate-700);
}

/* Two-column layout for small screens */
@media (max-width: 600px) {
  .philosophy-subnav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
    justify-content: center;
  }

  .philosophy-subnav a {
    padding: 0.4rem 0.8rem;
  }
}

.philosophy-section {
  padding: 0.1rem 1rem;
  max-width: 800px;
  margin-top: 1rem;

  /* Space each heading from the block above it; indent the body text
     beneath it. Applies identically to the Values and Method panels. */
  h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
  }

  h2 ~ p {
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

/* Match the Method list text to the paragraph size (1.1rem) and space the
   items apart; Method only */
.philosophy-method li {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
