/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #222;
  background: #f5f5f5;

  /* Sticky footer: body fills at least the full window height,
     and <main> stretches to push the footer to the bottom */
  min-height: 100vh;
  min-height: 100dvh; /* handles mobile browser toolbars */
  display: flex;
  flex-direction: column;
}

/* ---------- Top banner ---------- */
.top-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  padding: 0 16px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

/* Logo stays perfectly centered regardless of button widths */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* ---------- Banner buttons ---------- */
.banner-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #222;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.banner-btn:hover {
  background: #eeeeee;
}

.banner-btn:focus-visible {
  outline: 2px solid #0066ff;
  outline-offset: 2px;
}

/* ---------- Page content ---------- */
.content {
  flex: 1 0 auto; /* grows to fill leftover space, pushing footer down */
  width: 100%;
  padding: 90px 16px 20px; /* 70px banner + 20px spacing */
  max-width: 960px;
  margin: 0 auto;
}

.content h1 {
  margin-bottom: 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  flex-shrink: 0;
  background: #222222;
  color: #dddddd;
  /* No fixed height: the footer grows with its content */
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px;
}

.site-footer a {
  color: #ffffff;
}