.Site {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.Site-content {
  flex: 1;
}

.navbar {
  padding-top: 2rem;
}
.cs3-logo {
  height: 3.5rem;
  width: auto;
}

/* Bulma's .navbar-item img,.navbar-item svg selector (0,1,1) otherwise
   beats a plain .cs3-logo (0,1,0) and forces its own 1.75rem cap. */
.navbar-item .cs3-logo {
  max-height: none;
}

#worldmap {
  box-shadow: none;
}

.card-image img {
  object-fit: cover;
}

@media screen and (min-width:769px) and (max-width:1090px) {
  .column.is-one-third, .column.is-one-third-tablet {
    width: 100% !important;
  }
}

.current-edition {
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.current-edition .columns {
  justify-content: flex-end;
}

.current-edition .card {
  background-color: color-mix(in srgb, var(--bulma-scheme-main) 70%, transparent);
}

.current-edition .card-footer {
  background-color: color-mix(in srgb, var(--bulma-scheme-main) 50%, transparent);
}

@media screen and (min-width:1000px) {
  .img-fluid {
    max-width: 1000px;
  }
}

.card {
  border-radius: 10px;
}

.card-image img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.card-footer {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Section titles */

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: #7a7a7a;
  margin-bottom: 2rem;
}

.doi-button {
  float: right;
}

/* Logo strip (organizers / sponsors / participants for the current conference) */

.logo-strip {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}

.logo-strip-group + .logo-strip-group {
  margin-top: 1.5rem;
}

.logo-strip-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.7rem;
  font-weight: 700;
  color: #7a7a7a;
  background-color: #f5f5f5;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.75rem;
}

.logo-strip-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

/* Fixed box per logo so mixed aspect ratios (wide wordmarks, square
   emblems, tall stacked logos, ...) all read as the same size - each
   logo scales to fit this box instead of the box fitting the logo. */
.logo-strip-logos .logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 60px;
}

.logo-strip-logos img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.2s ease;
}

.logo-strip-logos img:hover {
  filter: none;
}

.logo-strip-fallback {
  padding: 1.5rem 0 3rem;
}

/* Important links tiles */

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.links-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  border-radius: 10px;
  background-color: var(--bulma-scheme-main-bis);
  color: var(--bulma-text-strong);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.links-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  color: var(--bulma-text-strong);
}

.links-tile .icon {
  font-size: 2rem;
  color: #3273dc;
}

.links-tile-title {
  font-weight: 700;
}

.links-tile-description {
  font-size: 0.85rem;
  color: #7a7a7a;
}

/* Conference tile grid (collapsed past-conferences view) */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.conf-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  transition: transform 0.15s ease;
}

.conf-tile:hover,
.conf-tile:focus-visible {
  transform: scale(1.04);
}

.conf-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 60%);
}

.conf-tile-year {
  position: absolute;
  left: 0.75rem;
  bottom: 0.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  z-index: 1;
}

/* Partners page */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.partners-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border-radius: 10px;
  background-color: #f5f5f5;
  color: #363636;
}

.partners-card .logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
}

.partners-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partners-card-name {
  font-weight: 700;
}

.partners-card-description {
  font-size: 0.8rem;
  color: #7a7a7a;
}

/* Scroll-reveal animations */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
