:root {
  --green: #367823;
  --green-dark: #2c611c;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e4e4e2;
  --header: 56px;
  --banner: 76px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
}

body {
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header);
  padding: 0 1.25rem;
  background: var(--green);
  color: #fff;
}

.brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.sponsors {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.sponsors__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.sponsors a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.sponsors a:hover {
  background: var(--green-dark);
}

.banners {
  position: relative;
  flex: none;
  height: var(--banner);
  border-bottom: 1px solid var(--line);
  background: #f7f7f5;
}

.banner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0 1.25rem;
  background: #f7f7f5;
  color: inherit;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.banner.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.banner:hover {
  background: #f0f0ed;
}

.banner__tag {
  flex: none;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  background: #fff;
}

.banner__logo {
  height: 34px;
  width: auto;
  max-width: 38%;
  object-fit: contain;
  flex: none;
}

.banner__logo--books {
  height: 28px;
  max-width: 46%;
}

.banner__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.banner__copy strong {
  font-size: 0.98rem;
}

.banner__copy span {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner__cta {
  margin-left: auto;
  flex: none;
  background: var(--ink);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
}

.park {
  display: block;
  width: 100%;
  flex: 1;
  min-height: 0;
  border: 0;
}

@media (max-width: 720px) {
  :root {
    --header: auto;
    --banner: 64px;
  }

  .top {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 0.65rem 0.75rem;
  }

  .brand {
    font-size: 0.95rem;
  }

  .sponsors a {
    font-size: 0.82rem;
    padding: 0.25rem 0.55rem;
  }

  .banner {
    gap: 0.5rem;
    padding: 0 0.75rem;
  }

  .banner__tag {
    display: none;
  }

  .banner__logo,
  .banner__logo--books {
    height: 26px;
    max-width: 42%;
  }

  .banner__copy span {
    display: none;
  }

  .banner__cta {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner {
    transition: none;
  }
}
