:root {
  --md-primary-fg-color: #2f4ea8;
  --md-primary-fg-color--light: #5f7edb;
  --md-primary-fg-color--dark: #1e3275;
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
}

.tradition-image-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0 1.75rem;
  gap: 1rem;
}

.tradition-image-row img {
  max-width: 100%;
  height: auto;
  display: block;
}

.publication-logo {
  width: 100%;
  max-width: 420px;
  height: auto;
}

.tradition-figure {
  margin: 1.5rem auto 2rem;
  max-width: 760px;
  text-align: center;
}

.tradition-figure figcaption {
  margin-top: 0.9rem;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: #324055;
  text-align: center;
}

.contact-card {
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid #dfe7f7;
  border-radius: 16px;
  padding: 1rem 1.15rem;
  margin: 1rem 0 1.4rem;
}

.contact-card ul {
  margin: 0;
  padding-left: 1rem;
}

.md-content ul,
.md-content ol {
  padding-left: 1.2rem;
}

.md-content li {
  margin-bottom: 0.45rem;
  line-height: 1.65;
}

.topic-list {
  column-count: 3;
  column-gap: 3rem;
  column-fill: balance;
  margin: 1.25rem 0 1.75rem;
}

.topic-list li {
  break-inside: avoid;
  margin-bottom: 0.8rem;
}

@media screen and (max-width: 900px) {
  .topic-list {
    column-count: 2;
    column-gap: 2rem;
  }
}

@media screen and (max-width: 600px) {
  .topic-list {
    column-count: 1;
  }
}

.triangle-logo-wrap {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.triangle-logo {
  max-width: 120px;
  height: auto;
  display: block;
}

.bottom-triangle-wrap {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.bottom-triangle {
  max-width: 140px;
  height: auto;
  display: block;
}

.join-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--md-primary-fg-color);
  color: white !important;
  margin: 0.15rem 0 1.3rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(47, 78, 168, 0.2);
  border: 2px solid white;
  opacity: 1;
}

.join-button:hover,
.join-button:focus,
.join-button:visited {
  background: var(--md-primary-fg-color--dark);
  color: white !important;
  text-decoration: none !important;
}

.explore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.2rem 0 1.3rem;
  padding: 0.8rem 1.15rem;
  border: 2px solid #087f78;
  border-radius: 6px;
  background: #effaf8;
  color: #075e59 !important;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
}

.explore-button:hover,
.explore-button:focus,
.explore-button:visited {
  background: #087f78;
  color: white !important;
  text-decoration: none !important;
}

.legacy-vignette {
  margin: 2rem auto;
  padding: 2rem 2.25rem;
  max-width: 820px;
  background: linear-gradient(180deg, #f9fbff 0%, #f2f6ff 100%);
  border: 1px solid rgba(47, 78, 168, 0.15);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(47, 78, 168, 0.12);
}

.legacy-vignette h3 {
  margin-top: 0;
  text-align: center;
  letter-spacing: 0.03em;
}

.legacy-vignette h4 {
  color: #2f4ea8;
}

.legacy-vignette p {
  line-height: 1.7;
  color: #324055;
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(47, 78, 168, 0.12);
  text-align: center;
}

.site-footer a {
  color: var(--md-primary-fg-color);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
}

.md-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--md-primary-fg-color);
  margin-bottom: 0.4rem;
}

.md-content h1 + p {
  font-size: 1.05rem;
  color: #4c5870;
  margin-bottom: 1.2rem;
}

.md-content {
  max-width: 78rem;
}

.md-content p,
.md-content ul,
.md-content ol,
.md-content blockquote {
  margin: 0 0 1.15rem;
  line-height: 1.75;
}

.md-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.9rem auto 1.25rem;
}

.md-content h2,
.md-content h3 {
  color: var(--md-primary-fg-color);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #dfe7f7;
}

.md-content h2 {
  font-size: 1.35rem;
}

.md-content h3 {
  font-size: 1.1rem;
}
