/* Segment override -- header color comes from config/subdomains.json's
   header_color/accent_color, injected as --color-segment-header /
   --color-accent by site_tokens_css() in bootstrap.php. */

.segment-header {
  background: color-mix(in srgb, var(--color-segment-header, var(--color-bg-elevated)) 55%, var(--color-bg) 45%);
  border-bottom-color: var(--color-segment-header, var(--color-border));
}
.logo-group {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
a.segment-badge {
  text-decoration: none;
  transition: color 0.15s;
}
a.segment-badge:hover,
a.segment-badge:focus-visible {
  color: var(--color-highlight-alt, var(--color-accent));
}
.segment-badge {
  position: relative;
  display: inline-block;
  margin-left: 12px;
  padding: 0 0 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  vertical-align: baseline;
}
.segment-badge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  height: 0.65em;
  border-left: 2px solid var(--color-accent);
  transform: translateY(-50%);
}

.hero--segment {
  background:
    linear-gradient(180deg, var(--color-hero-shade-top, rgba(10,10,12,0.5)) 0%, var(--color-hero-shade-bottom, rgba(10,10,12,0.88)) 75%, var(--color-bg) 100%),
    radial-gradient(ellipse at 25% 15%, color-mix(in srgb, var(--color-segment-header, #222) 40%, transparent), transparent 55%),
    var(--color-segment-header, #0a0a0c);
}

/* Last card in the Top Picks row: one big click target that sends the reader
   to the hub's Submit a Spot form. */
.add-place-card {
  box-sizing: border-box;
  flex: 0 0 260px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  /* No side padding on the card itself: with a zero flex basis it would give
     this card a head start over its neighbours. The text carries it instead. */
  padding: 24px 0;
  text-align: center;
  text-decoration: none;
  color: var(--color-text);
  background: transparent;
  border: 2px dashed var(--color-accent);
  border-radius: var(--radius-card);
  transition: background 0.15s, color 0.15s;
}
.add-place-card > * {
  box-sizing: border-box;
  max-width: 100%;
  padding: 0 20px;
}
.add-place-card__plus {
  font-size: 3.2rem;
  font-weight: 200;
  line-height: 1;
  color: var(--color-accent);
}
.add-place-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.add-place-card__sub {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}
.add-place-card:hover,
.add-place-card:focus-visible {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.add-place-card:hover .add-place-card__plus,
.add-place-card:hover .add-place-card__sub,
.add-place-card:focus-visible .add-place-card__plus,
.add-place-card:focus-visible .add-place-card__sub {
  color: inherit;
}

/* On a wide screen all five cards share the row, so the add card is never
   pushed off the right edge. Narrower screens keep the swipe row. */
@media (min-width: 1200px) {
  .top-picks .venue-card,
  .top-picks .add-place-card {
    flex: 1 1 0;
    min-width: 200px;
  }
}

/* Room for the hero sub-headline to sit on one line, and an even break when it must wrap. */
.hero__sub-headline {
  max-width: 42ch;
  text-wrap: balance;
}

/* Thin lens hero: a few short lines, then straight to the list. */
.hero--segment {
  padding: 26px 24px 16px;
}
.hero--segment .hero__eyebrow {
  margin-bottom: 6px;
}
.hero--segment .hero__headline {
  margin-bottom: 4px;
}
.hero--segment .hero__sub-headline {
  margin: 0 auto 6px;
}
.hero--segment .hero__sub {
  margin: 0 auto;
  font-size: 1rem;
}
.hero--segment + .section--listing {
  padding-top: 28px;
}

/* Lens listing controls stay in normal page flow. */
.listing-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.listing-toolbar .listing-sort { margin: 0; border: 0; }
.listing-toolbar__actions { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.88rem; }
.listing-toolbar__actions a { color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 4px; }
.listing-toolbar__actions a:hover { color: var(--color-text); }
.listing-quick { margin-bottom: 18px; }
.listing-sidebar { scroll-margin-top: calc(var(--header-height, 72px) + 20px); }
.listing-results { scroll-margin-top: calc(var(--header-height, 72px) + 16px); }
.listing-sidebar__group { border-bottom: 1px solid var(--color-border); padding: 0 0 8px; }
.listing-sidebar__group summary { padding: 12px 0 4px; cursor: pointer; color: var(--color-text); font-size: 0.95rem; font-weight: 500; }
.listing-sidebar__group summary::marker { color: var(--color-accent); }
.listing-sidebar__group summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.listing-sidebar__group[open] summary { color: var(--color-accent); margin-bottom: 8px; }
@media (max-width: 860px) {
  .listing-sidebar { flex-direction: column; gap: 0; }
}
@media (max-width: 600px) {
  .listing-toolbar { align-items: flex-start; }
}
