/* Watch Live (inc/watch.php): player + moderated chat. Player on top on phones, chat beside it on wide screens. */
.river-watch [hidden] { display: none !important; }
.river-watch { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.river-watch.has-chat.is-chat-on { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .river-watch.has-chat.is-chat-on { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); } }
.river-watch__player { position: relative; overflow: hidden; padding-top: 56.25%; border-radius: var(--wp--custom--radius--card, 18px); background: var(--wp--preset--color--deep-water, #0b2a33); }
.river-watch__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.river-watch__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin-top: .75rem; font-size: .95rem; color: var(--wp--preset--color--charcoal, #333); }
.river-watch__next { font-weight: 600; color: var(--wp--preset--color--pine, #1d5d51); }
.river-watch__badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; background: var(--wp--preset--color--mist, #f3f3f3); color: var(--wp--preset--color--pine, #1d5d51); }
.river-watch__badge.is-live { background: #c62828; color: #fff; }
.river-watch__badge.is-live::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #fff; animation: river-watch-pulse 1.6s ease-in-out infinite; }
@keyframes river-watch-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .river-watch__badge.is-live::before { animation: none; } }
.river-watch__chat { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--wp--preset--color--light-gray, #e5e5e5); border-radius: var(--wp--custom--radius--card, 18px); background: #fff; overflow: hidden; height: min(70vh, 560px); }
@media (max-width: 959px) { .river-watch__chat { height: 420px; } }
.river-watch__chat-head { padding: .75rem 1rem; font-weight: 700; border-bottom: 1px solid var(--wp--preset--color--light-gray, #e5e5e5); background: var(--wp--preset--color--mist, #f8f8f8); }
.river-watch__msgs { list-style: none; margin: 0; padding: .75rem 1rem; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; overscroll-behavior: contain; }
.river-watch__msgs li { line-height: 1.4; font-size: .95rem; overflow-wrap: anywhere; }
.river-watch__msgs .n { font-weight: 700; margin-right: .4rem; color: var(--wp--preset--color--pine, #1d5d51); }
.river-watch__msgs .empty { color: var(--wp--preset--color--muted, #6b6b6b); font-style: italic; }
.river-watch__form { border-top: 1px solid var(--wp--preset--color--light-gray, #e5e5e5); padding: .75rem 1rem; display: flex; flex-direction: column; gap: .5rem; }
.river-watch__name { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; font-weight: 600; }
.river-watch__form input[type=text] { box-sizing: border-box; width: 100%; height: 2.75rem; font: inherit; font-size: 1rem; padding: 0 .8rem; border-radius: var(--wp--custom--radius--button, 8px); border: 2px solid var(--wp--preset--color--sage, #93d3c5); background: #fff; color: #000; }
.river-watch__form.has-name .river-watch__name { display: none; }
.river-watch__send { display: flex; gap: .5rem; }
.river-watch__send input { flex: 1; min-width: 0; }
.river-watch__send button { flex: none; min-height: 2.75rem; padding: 0 1.1rem; }
.river-watch__send button:disabled { opacity: .55; cursor: not-allowed; }
.river-watch__note { margin: 0; font-size: .85rem; min-height: 1.2em; color: #b3261e; }
.river-watch__note.is-ok { color: var(--wp--preset--color--pine, #1d5d51); }
.river-watch__rules:empty { display: none; }
.river-watch__rules { margin: 0; font-size: .78rem; color: var(--wp--preset--color--muted, #6b6b6b); }
.river-watch__rules button { font: inherit; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.river-watch--missing { padding: 1.5rem; border-radius: var(--wp--custom--radius--card, 18px); background: var(--wp--preset--color--mist, #f8f8f8); }
.river-watch__chat-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.river-watch__toggle { font: inherit; font-size: .85rem; font-weight: 600; background: none; border: 0; padding: .35rem .2rem; min-height: 2.75rem; color: var(--wp--preset--color--pine, #1d5d51); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.river-watch__toggle:hover { color: var(--wp--preset--color--deep-water, #003333); }
.river-watch__toggle:focus-visible { outline: 2px solid var(--wp--preset--color--river-green, #38bba2); outline-offset: 2px; border-radius: 4px; }
.river-watch__meta .river-watch__toggle { margin-left: auto; }
/* Waiting screen (not live): the River graphic fills the 16:9 box; the countdown sits on the wave band at the bottom. */
.river-watch__player { container-type: inline-size; }
.river-watch__wait { position: absolute; inset: 0; background: #0e2e29; }
.river-watch__wait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.river-watch__wait-msg { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2cqw 3.2cqw 2.4cqw; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: .3cqw;
  background: linear-gradient(to top, rgba(6, 30, 26, .94) 0%, rgba(6, 30, 26, .82) 70%, rgba(6, 30, 26, 0) 100%); color: #fff; }
.river-watch__wait-msg p { margin: 0; line-height: 1.2; }
.river-watch__wait-title { font-size: clamp(.8rem, 2.1cqw, 1.35rem); font-weight: 600; color: #b8e1d9; }
.river-watch__count { font-size: clamp(1.25rem, 4.6cqw, 3rem); font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: #fff; }
.river-watch__when { font-size: clamp(.72rem, 1.8cqw, 1.1rem); color: #fff; opacity: .92; }
.river-watch__unmute { position: absolute; left: 1rem; top: 1rem; z-index: 2; font: inherit; font-weight: 700; font-size: .95rem; min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: 999px;
  background: #fff; color: #003333; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); cursor: pointer; }
.river-watch__unmute::before { content: "🔇 "; }
.river-watch__unmute:focus-visible { outline: 3px solid #38bba2; outline-offset: 2px; }
@media (max-width: 480px) { .river-watch__wait-msg { padding: 2.4cqw 3.4cqw; } }

/* ---------- Watch Live pages: dark, video-first (2026-11-29, Mike) ----------
   Only on a page whose content has the block (body.river-watch-page, inc/watch.php). The site header, footer, page
   title and Ask bubble step aside; a slim bar (small logo, "Watch Live: <location>", the site menu collapsed) sits on top.
   Phone: video edge to edge right under the bar, chat fills the rest of the screen. Desktop: video sized to fit the
   screen height, chat beside it at the same height. Brand pine/sage only as accents. */
.river-watch__bar { grid-column: 1 / -1; }
html:has(body.river-watch-page), body.river-watch-page { background: #0b1110; color-scheme: dark; }
body.river-watch-page { color: #e4ecea; }
body.river-watch-page > .wp-site-blocks > header.wp-block-template-part,
body.river-watch-page > .wp-site-blocks > footer.wp-block-template-part,
body.river-watch-page .wp-block-post-title,
body.river-watch-page #river-chat-host { display: none !important; }
body.river-watch-page main#wp--skip-link--target { padding: 0 !important; margin: 0 !important; }
body.river-watch-page .wp-site-blocks { padding: 0 !important; }
body.river-watch-page .wp-site-blocks > * { margin-block-start: 0 !important; }
body.river-watch-page main .entry-content { padding-left: 0 !important; padding-right: 0 !important; margin: 0 !important; max-width: none !important; }
body.river-watch-page main .entry-content > :not(.river-watch) { color: #93a5a1; font-size: .9rem; max-width: 46rem; margin: 1.5rem auto 2rem; padding: 0 1rem; text-align: center; }
body.river-watch-page main .entry-content > .river-watch.river-watch { max-width: none; width: 100%; margin: 0 auto; gap: 0; }

body.river-watch-page .river-watch__bar { display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .3rem .75rem; box-sizing: border-box; }
.river-watch__home { display: inline-flex; flex: none; color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; border-radius: 50%; }
.river-watch__home img { display: block; width: 28px; height: 28px; border-radius: 50%; }
.river-watch__home:focus-visible { outline: 2px solid #38bba2; outline-offset: 2px; }
body.river-watch-page h1.river-watch__title { flex: 1; min-width: 0; margin: 0; font-size: .95rem; line-height: 1.2; font-weight: 700; letter-spacing: .01em; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.river-watch__title span { font-weight: 500; color: #b8e1d9; }

body.river-watch-page .river-watch__player { border-radius: 0; background: #000; }
body.river-watch-page .river-watch__meta { margin: 0; padding: .5rem .75rem; gap: .35rem .75rem; font-size: .85rem; color: #aebdb9; }
body.river-watch-page .river-watch__badge { background: #1c2826; color: #b8e1d9; padding: .25rem .6rem; font-size: .7rem; }
body.river-watch-page .river-watch__badge.is-live { background: #c62828; color: #fff; }
body.river-watch-page .river-watch__next { color: #b8e1d9; }
body.river-watch-page .river-watch__toggle { color: #b8e1d9; }
body.river-watch-page .river-watch__toggle:hover { color: #fff; }

body.river-watch-page .river-watch__chat { background: #121a19; border: 0; border-top: 1px solid #22302d; border-radius: 0; color: #e4ecea;
  height: max(300px, calc(100svh - 56.25vw - 54px - 44px)); }
body.river-watch-page .river-watch__chat-head { background: #121a19; border-bottom-color: #22302d; padding: .1rem .75rem; font-size: .9rem; color: #fff; }
body.river-watch-page .river-watch__msgs { padding: .6rem .75rem; }
body.river-watch-page .river-watch__msgs li { font-size: .92rem; color: #e4ecea; }
body.river-watch-page .river-watch__msgs .n { color: #93d3c5; }
body.river-watch-page .river-watch__msgs .empty { color: #8a9a97; }
body.river-watch-page .river-watch__form { border-top-color: #22302d; padding: .6rem .75rem; gap: .4rem; }
body.river-watch-page .river-watch__name { color: #c9d6d3; }
body.river-watch-page .river-watch__form input[type=text] { background: #0b1110; color: #fff; border: 1px solid #3a4d49; }
body.river-watch-page .river-watch__form input[type=text]::placeholder { color: #7f918d; }
body.river-watch-page .river-watch__form input[type=text]:focus { outline: none; border-color: #38bba2; box-shadow: 0 0 0 2px rgba(56, 187, 162, .35); }
body.river-watch-page .river-watch__note { color: #ff8a80; }
body.river-watch-page .river-watch__note.is-ok { color: #93d3c5; }
body.river-watch-page .river-watch__note:empty { display: none; }
body.river-watch-page .river-watch__rules { color: #93a5a1; }
body.river-watch-page .river-watch--missing { background: #121a19; color: #e4ecea; margin: 1rem; }

@media (min-width: 960px) {
  body.river-watch-page main .entry-content > .river-watch.river-watch { padding: 0 1.25rem 1.25rem; box-sizing: border-box;
    max-width: calc((100svh - 64px - 52px - 1.25rem) * 16 / 9 + 2.5rem); }
  body.river-watch-page main .entry-content > .river-watch.has-chat.is-chat-on { column-gap: 1rem;
    grid-template-columns: minmax(0, 1fr) 360px; max-width: calc((100svh - 64px - 52px - 1.25rem) * 16 / 9 + 360px + 3.5rem); align-items: stretch; }
  body.river-watch-page .river-watch__bar { min-height: 64px; padding: .5rem 0; gap: .8rem; }
  body.river-watch-page h1.river-watch__title { font-size: 1.05rem; }
  .river-watch__home img { width: 32px; height: 32px; }
  body.river-watch-page .river-watch__player { border-radius: 12px; }
  body.river-watch-page .river-watch__meta { padding: .6rem 0 0; }
  /* chat as tall as the video column, never taller: contain:size keeps its messages from stretching the row */
  body.river-watch-page .river-watch__chat { height: auto; contain: size; border: 1px solid #22302d; border-radius: 12px; }
}
/* the site menu in the bar: just the menu button; the overlay opens full screen as elsewhere on the site */
body.river-watch-page .river-watch__nav { flex: none; margin: 0; }
body.river-watch-page .river-watch__nav .wp-block-navigation__responsive-container-open { color: #fff; padding: .5rem; margin-right: -.5rem; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
body.river-watch-page .river-watch__nav .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; fill: currentColor; }
body.river-watch-page .river-watch__nav .wp-block-navigation__responsive-container-open:focus-visible { outline: 2px solid #38bba2; outline-offset: 2px; }

/* ---------- Watch Live index (river/watch-list, 2026-11-29): one compact row per location, live first.
   Normal light site look (header, footer); only the location pages are dark. ---------- */
.river-watch-list, .river-watch-list .river-watch-list__item { text-align: left; }
.river-watch-list__items { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: .5rem; max-width: 56rem; }
.river-watch-list__item { display: flex; align-items: center; gap: .75rem; min-height: 64px; padding: .7rem .9rem; box-sizing: border-box; border-radius: 12px;
  background: #fff; border: 1px solid var(--wp--preset--color--light-gray, #e5e5e5); color: var(--wp--preset--color--charcoal, #222); text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.river-watch-list__item:hover { border-color: var(--wp--preset--color--river-green, #38bba2); }
.river-watch-list__item:focus-visible { outline: 2px solid var(--wp--preset--color--river-green, #38bba2); outline-offset: 2px; }
.river-watch-list__item.is-live { border-color: #c62828; box-shadow: 0 0 0 1px #c62828; }
.river-watch-list__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.river-watch-list__name { font-size: 1.05rem; font-weight: 700; line-height: 1.2; color: var(--wp--preset--color--deep-water, #003333); }
.river-watch-list__status { font-size: .85rem; color: var(--wp--preset--color--muted, #5f6b69); line-height: 1.3; }
.river-watch-list__live { flex: none; display: inline-flex; align-items: center; gap: .35rem; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .25rem .55rem; border-radius: 999px; background: #c62828; color: #fff; white-space: nowrap; }
.river-watch-list__live::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #fff; animation: river-watch-pulse 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .river-watch-list__live::before { animation: none; } }
.river-watch-list__go { flex: none; width: .55rem; height: .55rem; border-top: 2px solid var(--wp--preset--color--pine, #1d5d51); border-right: 2px solid var(--wp--preset--color--pine, #1d5d51); transform: rotate(45deg); margin-right: .3rem; }
@media (min-width: 700px) {
  .river-watch-list__items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .river-watch-list__item { min-height: 84px; padding: 1rem 1.25rem; }
  .river-watch-list__name { font-size: 1.2rem; }
}
