:root {
  --lsvos-accent: #67b0d1;
  --lsvos-text: #444;
}

.site-loading,
.site-error {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  color: #2f4d5a;
}

#hero {
  width: 100%;
  height: 100vh;
  margin-bottom: -90px;
  position: relative;
  background-position: top center;
  background-size: cover;
}

#hero.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(40, 75, 91, 0.52), rgba(40, 75, 91, 0.22));
}

#hero .hero-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 72px 24px 36px;
}

#hero h1 {
  max-width: 1180px;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 38px;
}

#hero h2 {
  max-width: 1100px;
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.3;
}

#hero .hero-event {
  margin-bottom: 12px;
}

#hero .hero-event a {
  color: #f69865;
  text-decoration: underline;
}

.markdown-section {
  padding: 42px 20px;
  scroll-margin-top: 84px;
}

.markdown-section:nth-child(even) {
  background: #f4f9fc;
}

.markdown-section .section-title {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
}

.markdown-section .markdown-body {
  font-size: 1.18rem;
  line-height: 1.75;
  text-align: left;
  hyphens: auto;
}

.markdown-section .markdown-body > h2 {
  text-align: center;
  margin-bottom: 32px;
}

.markdown-section .markdown-body > h3 {
  color: #2f4d5a;
  margin: 32px 0 14px;
  font-size: 1.45rem;
}

.markdown-section .markdown-body > p:first-of-type strong:first-child {
  color: tomato;
}

.markdown-section ul {
  padding-left: 1.4rem;
}

.markdown-section code {
  color: #b42318;
}

.markdown-section pre {
  padding: 16px;
  border: 1px solid #d9e2e7;
  border-radius: 8px;
  background: #f8fafb;
  overflow-x: auto;
  font-size: 0.92rem;
}

.markdown-table {
  margin: 20px auto 32px;
  border-radius: 8px;
}

.markdown-table .table {
  min-width: 560px;
  margin-bottom: 0;
  font-size: 1rem;
}

.markdown-table th {
  color: #2f4d5a;
  white-space: nowrap;
}

#leaderboard .section-title,
#leadboard .section-title,
#schedule .section-title {
  max-width: 1200px;
}

#leaderboard .markdown-table .table,
#leadboard .markdown-table .table {
  min-width: 980px;
  font-size: 0.94rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 34px 28px;
  align-items: start;
  margin-top: 10px;
}

.people-grid .markdown-person {
  min-width: 0;
  text-align: center;
}

.people-grid .person-photo {
  width: 190px;
  height: 190px;
  margin: 0 auto 16px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(47, 77, 90, 0.14);
}

.people-grid .person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.people-grid .member-info h4 {
  margin-bottom: 5px;
  font-size: 1.08rem;
}

.people-grid .member-info span {
  display: block;
  color: #777;
  font-size: 0.95rem;
  line-height: 1.4;
}

#contact,
#contact .markdown-body {
  text-align: center;
}

@media (min-width: 992px) and (max-width: 1399px) {
  .navbar > ul > li > a {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 12px;
  }
}

.navbar .dropdown:last-child > ul {
  right: 0;
  left: auto;
}

@media (max-width: 768px) {
  #hero .hero-container {
    padding: 64px 20px 28px;
  }

  #hero h1 {
    margin: 0 0 28px;
    font-size: clamp(2rem, 10vw, 2.7rem);
    line-height: 1.12;
  }

  #hero h2 {
    margin-bottom: 8px;
    font-size: clamp(1.1rem, 5vw, 1.45rem);
    line-height: 1.35;
  }

  .markdown-section {
    padding: 34px 12px;
  }

  .markdown-section .markdown-body {
    font-size: 1.05rem;
  }

  .people-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .people-grid .person-photo {
    width: 150px;
    height: 150px;
  }
}
