/* v12-cam-audio.css — v12 — Live audio through the webcams.
   Styles for assets/cam-audio.js only. Reuses the site's own classes
   (.btn, .btn.sec, .muted, .liveDot) and palette variables so the
   controls look native on every page. No page layout is changed:
   the bars sit directly under their cam; the global bar sits at the
   top of <main class="wrap">. Phone-first: buttons wrap, tap targets
   stay 44px+. */

/* --- per-cam bar, directly under its iframe --- */
.cam-audio-bar{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  margin-top:10px;padding:10px 12px;
  background:#fff;border:2px solid #e8e0ff;border-radius:12px;
}
.cam-audio-bar .btn{flex:0 1 auto}
.cam-audio-bar .btn.on{border-color:var(--play-gold,#ffb703);color:#7a5b00;
  box-shadow:0 0 0 1px var(--play-gold,#ffb703)}
.cam-audio-bar .btn .liveDot{margin-right:6px}
.cam-audio-status{flex:1 1 100%;margin:2px 0 0;font-size:13px}
.cam-audio-bed-btn{
  background:none;border:0;padding:8px 4px;min-height:44px;
  color:#0b6fa4;text-decoration:underline;font-size:13px;text-align:left;
}
.cam-audio-bed-btn:hover{color:var(--play-coral,#ff5d8f)}

/* --- global cam-sound bar, top of the page's main content --- */
.cam-audio-global{
  display:flex;flex-wrap:wrap;gap:8px;align-items:center;
  margin:18px 0 0;padding:12px 14px;
  background:#fff;border:2px solid var(--play-gold,#ffb703);border-radius:16px;
}
.cam-audio-global-title{font-weight:800;font-size:15px;margin-right:2px}
.cam-audio-global .btn.on{border-color:var(--play-gold,#ffb703);color:#7a5b00;
  box-shadow:0 0 0 1px var(--play-gold,#ffb703)}
.cam-audio-global-status{flex:1 1 100%;margin:2px 0 0;font-size:13px}

/* --- Being There panel: cam + live sound + live data for the place --- */
.being-there{
  margin-top:10px;padding:12px 14px;
  background:#fff;border:2px solid var(--play-gold,#ffb703);border-top-width:6px;
  border-radius:12px;
}
.being-there h3{margin:0 0 6px;font-size:17px}
.being-there .bt-row{margin:4px 0;font-size:14px;color:#22202e}
.being-there .bt-row.muted{color:#5b5470;font-size:13px}
.being-there .bt-clock{font-weight:800;color:var(--play-violet,#8338ec)}
.being-there .btn{margin-top:8px}

/* --- keyboard focus, visible on every control --- */
.cam-audio-bar button:focus-visible,
.cam-audio-global button:focus-visible,
.being-there button:focus-visible{
  outline:3px solid var(--play-sky,#00a8e8);outline-offset:2px;
}

/* --- small screens: full-width buttons, no crowding --- */
@media (max-width:640px){
  .cam-audio-bar .btn,
  .cam-audio-global .btn{flex:1 1 100%;justify-content:center}
  .cam-audio-global{margin:12px 0 0}
}

/* --- reduced motion: no pulsing dot --- */
@media (prefers-reduced-motion: reduce){
  .cam-audio-bar .liveDot{animation:none}
}
