/* ---------- custom properties ---------- */
:root {
  --topbar-height: 3.5rem;
  --max-content-width: 900px;
  --gap: 1rem;
  --topbar-bg: #390096;
  --topbar-color: #ffffff;

  /* Pico's classless stylesheet fluidly grows this up to 131.25% on wide
     viewports; pin it so desktop text stays a reasonable size. Our
     stylesheet loads after Pico's, so this wins the cascade unaided. */
  --pico-font-size: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: none;
  padding-top: var(--topbar-height);
}

/* ---------- top bar / nav ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--topbar-bg);
  color: var(--topbar-color);
  padding: 0;
}

.topbar-inner {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-height);
  padding: 0 1rem;
  gap: 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-links a {
  color: var(--topbar-color);
  text-decoration: none;
  white-space: nowrap;
}

.lang-switch {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  margin: 0;
  padding: 0 0.75rem;
  line-height: 1;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--topbar-color);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0.375rem;
  cursor: pointer;
}

/* hamburger button, hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.75rem;
  height: 1.25rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--topbar-color);
}

/* ---------- intro / header ---------- */
.intro {
  max-width: var(--max-content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 0;
}

.intro_text {
  max-width: 80ch;
  margin: 0 auto;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 0;
}

.logo {
  width: 400px;
  height: 150px;
  flex-shrink: 0;
  object-fit: contain;
  align-items: center;
  margin: 100 100;
}

.org-name {
  font-weight: bold;
  font-size: 1.75rem;
  margin: 0 0 0.25rem 0;
}

.org-subtitle {
  margin: 0 0 0.5rem 0;
  font-style: italic;
}

.org-description {
  margin: 0;
}

/* ---------- page sections ---------- */
/* body > main matches Pico's own body>main specificity (0,0,2), which a
   plain `main` selector (0,0,1) loses to regardless of source order. */
body > main {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 1rem 0 1.8rem;
}

.page-section {
  padding: 2.5rem 0;
  scroll-margin-top: calc(var(--topbar-height) + 0.5rem);
  border-bottom: 1px solid var(--pico-muted-border-color, #eee);
}

.page-section:last-of-type {
  border-bottom: none;
}

#values-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.value-item {
  margin-bottom: 0.9rem;
  display: flex;
  flex-direction: column;
}

.value-title {
  font-weight: bold;
}

.value-description {
  font-weight: normal;
}

#faq-list dt {
  font-weight: bold;
  margin-top: 1rem;
}

#faq-list dd {
  margin-left: 0;
}

.event-box {
  border: 1px solid var(--pico-muted-border-color, #ddd);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.event-box .event-field {
  margin: 0.4rem 0;
}

.site-header {
  display: grid;
  place-items: center; /* centers both horizontally and vertically */
}

.site-footer {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 1.5rem 1rem;
  text-align: center;
  opacity: 0.7;
}

/* ---------- responsive: mobile nav becomes hamburger menu ---------- */
@media (max-width: 700px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--topbar-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--topbar-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem 1rem;
    gap: 0.75rem;
  }

  .nav-links.open {
    display: flex;
  }

  .intro {
    flex-direction: column;
    text-align: center;
  }
}
