/* The first-visit welcome on the band surface: the bar without the
   location pill, headline, subcopy, location line with "Use my location"
   and "or pick a town", the activity tiles, and the dimmed listing peeking
   below; on desktop the welcome takes the list column beside the map.
   Contract: DESIGN.md > Component conventions > First-visit welcome and
   Color > Text on the band; specs/api.yaml > x-listing-ui2 > welcome >
   desktop. Phone first (390x844). */

.welcome-bar {
  grid-template-areas: "brand . account";
  padding-bottom: 0;
}

.welcome {
  background: var(--color-boards-deep);
  color: var(--color-band-text);
  padding: 18px var(--spacing-lg) 20px;
}

.welcome-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--color-band-text);
}

.welcome-subcopy {
  max-width: 34ch;
  margin-top: 10px;
  font-size: 15px;
  color: var(--color-band-text-secondary);
}

/* ---- Location line, "Use my location", "or pick a town" ----------------- */
.welcome-location { margin-top: 18px; }
.welcome-location-line {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 13.5px;
  color: var(--color-band-text-secondary);
}
.welcome-location-icon { flex-shrink: 0; color: var(--color-ice-blue); }

/* The Where sheet's exact-location button carried onto the band: a
   boards-deep fill would vanish here, so it takes the raised surface and
   the strong band outline (DESIGN.md > Decisions log, 2026-10-13). */
.welcome-locate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  width: 100%;
  min-height: 44px;
  margin-top: var(--spacing-md);
  padding: 8px 14px;
  border: 1px solid var(--color-band-outline-strong);
  border-radius: var(--radius-md);
  background: var(--color-boards-raised);
  color: var(--color-band-text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease-out;
}
.welcome-locate:hover { border-color: var(--color-band-text-secondary); }
.welcome-locate-icon { flex-shrink: 0; color: var(--color-ice-blue); }

.welcome-locate-error {
  margin-top: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-band-text);
}

.welcome-pick-town {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-band-text);
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---- Question and tiles -------------------------------------------------- */
.welcome-question {
  margin-top: var(--spacing-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-band-text);
}

.welcome-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.welcome-tile,
.welcome-tile:hover {
  position: relative;
  display: block;
  min-height: 88px;
  padding: 14px 14px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: var(--color-boards-raised);
  color: var(--color-band-text);
  text-decoration: none;
}
.welcome-tile:hover { border-color: var(--color-band-outline-strong); }

/* The 4px category bar: the chip dot's colour, stretched down the left. */
.welcome-tile-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  height: auto;
  border-radius: 0;
}

.welcome-tile-name {
  display: block;
  padding-right: 28px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}
.welcome-tile-description {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--color-band-text-secondary);
}
.welcome-tile-count {
  position: absolute;
  top: 14px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--color-band-text);
}

.welcome-tile--all,
.welcome-tile--all:hover {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}
.welcome-tile--all .welcome-tile-name { padding-right: 0; font-size: 16px; }
.welcome-tile--all .welcome-tile-count { position: static; }

.welcome-locate:focus-visible,
.welcome-pick-town:focus-visible,
.welcome-tile:focus-visible {
  outline: 2px solid var(--color-ice-blue);
  outline-offset: 2px;
}

/* ---- The listing peeking below: dimmed; inert in the markup ------------- */
.main-layout.is-welcome-peek {
  opacity: 0.55;
  pointer-events: none;
}

/* ---- Desktop: the welcome takes the list column beside the map --------
   div.welcome-split holds the welcome and .main-layout. The welcome fills
   the list column down to the foot of the map; the session list is not
   displayed, and the map keeps layout.css's 42% beside it, undimmed and
   still inert. */
@media (min-width: 1024px) {
  .welcome-bar { padding: var(--spacing-md) var(--spacing-xl) 0; }

  .welcome-split { display: flex; }
  .welcome-split > .welcome {
    flex: 1 1 auto;
    min-width: 0;
    padding: var(--spacing-xl) var(--spacing-xl) 28px;
  }
  .welcome-split > .main-layout.is-welcome-peek {
    flex: 0 0 42%;
    min-height: 0;
    opacity: 1;
  }
  .main-layout.is-welcome-peek .session-list-container { display: none; }
  .main-layout.is-welcome-peek .map-container { width: 100%; }

  .welcome > * { max-width: 880px; }
  .welcome-title { max-width: 15ch; font-size: 52px; }
  .welcome-subcopy { max-width: 52ch; }

  /* "Use my location" at its content width, "or pick a town" beside it;
     the location error drops below the row. */
  .welcome-location {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .welcome-location-line,
  .welcome-locate-error { flex: 0 0 100%; }
  .welcome-locate-error { order: 1; }
  .welcome-locate {
    width: auto;
    margin-right: var(--spacing-lg);
  }
  .welcome-pick-town { margin-top: var(--spacing-md); }
  .welcome-question { margin-top: var(--spacing-xl); }
}
