/* =====================================================================
   AMM Hub - What's On (WhatsOn.aspx): tabs for events, camps, parties,
   promotions and sales. Tiles come from hub-camp.css. ASCII only.
   ===================================================================== */

/* let the tab bar stick under the top of the window (overflow:hidden on the frame would stop it) */
.site-frame:has(.wo-page){overflow:visible;overflow:clip}

/* every tab always visible: they wrap onto a second line instead of scrolling sideways */
.wo-tabs{display:flex;flex-wrap:wrap;gap:8px;padding:14px 32px;border-bottom:1px solid var(--line);background:var(--surface);
  position:sticky;top:0;z-index:5}
.wo-tab{display:inline-flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 15px;border:1px solid var(--line);border-radius:999px;
  background:var(--surface);color:var(--ink);font-weight:600;font-size:15px;text-decoration:none;white-space:nowrap;min-height:44px;
  transition:border-color .15s ease,background-color .15s ease}
.wo-tab:hover{border-color:var(--ink)}
.wo-tab[aria-selected="true"]{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.wo-count{min-width:22px;padding:1px 7px;border-radius:999px;background:var(--surface-2);color:var(--muted);
  font:600 12px/18px var(--f-mono);text-align:center;flex:none}
.wo-tab[aria-selected="true"] .wo-count{background:rgba(255,255,255,.2);color:inherit}

.wo-panel[hidden]{display:none}

@media (max-width:760px){
  .wo-tabs{padding:12px 16px}
}

/* phones: two even columns, an odd last tab takes the full row; not sticky (it would cover too much) */
@media (max-width:560px){
  .wo-page .list-hero{padding:24px 16px 20px}
  .wo-page .list-hero h1{font-size:40px;margin-top:6px}
  .wo-page .list-hero p{font-size:15px;margin-top:8px}
  .wo-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;position:static}
  .wo-tab{border-radius:12px;padding:8px 12px;font-size:14px;min-width:0}
  .wo-tab:last-child:nth-child(odd){grid-column:1/-1}
}
/* very narrow phones: one per row */
@media (max-width:340px){
  .wo-tabs{grid-template-columns:minmax(0,1fr)}
}
