/* Free stream time (docs/bots/spec/97-free-stream-time.md): the band for a
   visitor who is not signed in on the bots pages he can open (section 7;
   templates/bots/_free_band.html) and the page "Free time" (section 6;
   templates/bots/free_time.html). The header's counter is drawn by
   css/parts.css, on every page. */

/* ---- the band: the site's accent colour, as wide as the content, above
   everything else of the page */
.free-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin: 0 0 var(--space-4, 1rem);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius, 12px);
  background: var(--accent);
  color: var(--accent-ink);
}
.free-band p { margin: 0; color: var(--accent-ink); max-width: none; }
.free-band-big { font-size: 1.5rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.free-band-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.free-band-small { font-size: 1rem; font-weight: 600; }
/* the first sentence is itself the link to the page "Free time" (section 10.5):
   the band's own text colour, underlined on hover and on focus */
.free-band-link, .free-band-link:visited { color: var(--accent-ink); text-decoration: none; }
.free-band-link:hover, .free-band-link:focus, .free-band-link:focus-visible {
  color: var(--accent-ink); text-decoration: underline;
}
.free-band-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.free-band .free-band-signup, .free-band .free-band-signup:hover {
  background: var(--accent-ink); color: #fff; border-color: var(--accent-ink); box-shadow: none;
}
.free-band .free-band-login, .free-band .free-band-login:hover {
  background: transparent; color: var(--accent-ink); border: 1px solid var(--accent-ink); box-shadow: none;
}

@media (max-width: 720px) {
  /* a phone: one block of at most about 120 pixels. The two sentences one
     under the other (the first, the link, 44 pixels high for a finger), then
     the two buttons sharing one row, each 44 pixels high */
  .free-band { display: block; padding: 0.25rem 0.65rem 0.4rem; }
  .free-band-row { display: block; }
  .free-band-big { font-size: 1rem; }
  .free-band-small { font-size: 0.85rem; line-height: 1.2; }
  .free-band-buttons {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.4rem; margin-top: 0.3rem;
  }
  .free-band-link { display: flex; align-items: center; min-height: 44px; }
  .free-band-buttons .btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding-block: 0.2rem;
  }
}

/* ---- the page "Free time" */
.free-time-state { color: var(--text) !important; font-size: 1.1rem; font-weight: 600; }
.free-time-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
