@charset "UTF-8";
/* ==========================================================================
   Rowley Community Media — retro / synthwave theme
   Built from "RCM Website PSD.psd" (source of truth).
   Palette + assets extracted directly from the PSD.
   ========================================================================== */
/* Fonts extracted from the RCM Website PSD (source of truth) */
@font-face {
  font-family: 'Computerfont';
  src: url("../fonts/computerfont.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Conthrax';
  src: url("../fonts/conthrax-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/*CSS Reset*/
html, h1, h2, h3, h4, h5, h6, p, pre, code, address, variable, form, fieldset, blockquote, figure {
  margin: 0;
  padding: 0;
}

ol, ul {
  padding-left: 2em;
  margin: 0;
}

p, fieldset, ol, ul, table, iframe, embed, aside {
  margin-bottom: 1em;
}

li ol, li ul {
  margin-bottom: 0;
}

embed, iframe, img, video {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

iframe, img, a img {
  border: none;
}

/*End Reset*/
html {
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font: 100%/1.4 "Lucida Grande", "Lucida Sans Unicode", "Segoe UI", Verdana, Helvetica, sans-serif;
  color: #fff;
  overflow-x: hidden;
  overflow-y: scroll;
  min-height: 100vh;
  background: #000 url(images/bg-scene.png) no-repeat center top fixed;
  background-size: cover;
}

a {
  color: #95eb0d;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

nav a, table a, .gallery a {
  display: block;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

#wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 22px 30px;
}

header, .content, footer {
  color: #fff;
}

/* --- Main content = the PSD "Watch Live Window": a black panel framed by the
       neon-green stroke, with a soft drop shadow + inner vignette. --- */
.content {
  overflow: hidden;
  overflow-wrap: break-word;
  padding: 24px 30px 26px;
  background: rgba(0, 0, 0, 0.82);
  border: 5px solid #95eb0d;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 22px rgba(149, 235, 13, 0.16), inset 0 0 46px rgba(0, 0, 0, 0.65);
}

.content h1 {
  margin: 0 0 .5em;
  font-family: "Conthrax", "Chakra Petch", "Segoe UI", Tahoma, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.9em;
  color: #95eb0d;
  text-shadow: 0 2px 12px rgba(149, 235, 13, 0.35);
}

.content h2 {
  font-family: "Conthrax", "Chakra Petch", "Segoe UI", Tahoma, sans-serif;
  font-weight: 600;
  font-size: 1.35em;
  color: #fff;
}

.content h3 {
  margin-bottom: .1em;
  color: #95eb0d;
  font-family: "Conthrax", "Chakra Petch", "Segoe UI", Tahoma, sans-serif;
  font-weight: 600;
}

.content p {
  margin-bottom: 1em;
}

.sidebar {
  width: 33%;
  float: right;
  margin-left: 6px;
}

aside {
  padding: .5em .75em;
}

footer {
  width: 1272px;
  max-width: 100%;
  margin: .9rem auto 0;
  padding: .5rem 1rem 1.3rem;
  font-family: "Conthrax", "Chakra Petch", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.05rem;
  line-height: 1.45;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  overflow-wrap: break-word;
  text-shadow: 0 1px 2px #000;
}

footer p {
  margin: 0 0 .4em;
}

footer a {
  color: #95eb0d;
}

footer a:hover {
  color: #fff;
}

#backToTop {
  display: none;
}

#showRequest {
  border: 2px solid rgba(149, 235, 13, 0.5);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.5);
}

table {
  border-collapse: collapse;
}

th {
  text-align: right;
  vertical-align: top;
}

th, td {
  padding: .5em;
}

td ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

figure {
  margin: .5em;
}

figcaption {
  margin-top: .5em;
}

/* Homepage galleries — thumbnails framed, neon stroke on hover (echoes the
   "selected rectangle" motif from the PSD nav). */
.gallery {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.gallery li {
  width: 25%;
}

.gallery a {
  color: #fff;
}

.gallery figure img {
  border: 2px solid rgba(149, 235, 13, 0.3);
  border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
}

.gallery a:hover {
  text-decoration: none;
}

.gallery a:hover figure img {
  border-color: #95eb0d;
  box-shadow: 0 0 14px rgba(149, 235, 13, 0.55);
}

#pageHead, #galleries {
  margin-bottom: 2em;
}

#pageHead {
  display: flex;
}

#pageHead #slideshow {
  flex: 2;
  margin-right: 1em;
}

#pageHead #smallSchedule {
  flex: 1;
  margin-left: 1em;
}

time {
  white-space: nowrap;
}

[itemtype="http://schema.org/BroadcastEvent"] time[itemprop="duration"] {
  color: #9adf5a;
}

.widescreen, .fullscreen {
  text-align: center;
  margin: auto;
}

.widescreen div, .fullscreen div {
  position: relative;
  height: 0;
  margin-bottom: 1em;
}

.widescreen iframe, .fullscreen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.fullscreen {
  max-width: 640px;
}

.fullscreen div {
  padding-bottom: 75%;
}

.widescreen div {
  padding-bottom: 56.25%;
}

#slideshow div {
  margin-bottom: 0;
}

video {
  width: 100%;
  margin: auto;
}

header {
  padding: 6px 0 10px;
  text-align: center;
}

/* --- RCM retro logo (extracted from PSD smart object) --- */
#logo {
  display: inline-block;
  margin: 2px auto 14px;
}

#logo img {
  display: block;
  width: 520px;
  max-width: 84%;
  height: auto;
  margin: 0 auto;
  border: none;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.65));
}

#logo:hover {
  text-decoration: none;
}

/* --- Navigation: equal-width rounded "tabs" (matches the GCTV layout) --- */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

#nav > li {
  float: none;
  display: flex;
  flex: none;
}

/* Base tab (Live / Schedule / Bulletins) */
#nav > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 213px;
  height: 52px;
  padding: 0 14px;
  font-family: "Computerfont", "Press Start 2P", "Courier New", monospace;
  font-size: 1.65rem;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.64);
  border: 4px solid transparent;
  border-radius: 18px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

#nav > li > a:hover, #nav > li > a:focus {
  text-decoration: none;
  background: rgba(0, 0, 0, 0.78);
  border-color: rgba(149, 235, 13, 0.5);
}

#nav > li > a:visited {
  color: #fff;
}

/* Computerfont's glyphs sit ~0.115em high in their line box; nudge the label
   down so it reads as vertically centered in the tab. */
.tab-inner {
  display: inline-flex;
  align-items: center;
  transform: translateY(0.12em);
}

/* Red "on-air" dot on the Live tab (PSD Ellipse, 211,14,14) */
.live-dot {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  margin-right: .5rem;
  border-radius: 50%;
  background: #d30e0e;
  box-shadow: 0 0 9px rgba(211, 14, 14, 0.85);
  flex: none;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .35;
  }
}

/* Search tab = white rounded field, same footprint as the other tabs */
#searchLink.search-pill {
  align-items: stretch;
}

#searchLink form {
  margin: 0;
  display: flex;
}

#searchLink input[type=text] {
  box-sizing: border-box;
  width: 213px;
  height: 52px;
  padding: .24em 18px 0;
  font-family: "Computerfont", "Press Start 2P", "Courier New", monospace;
  font-size: 1.4rem;
  line-height: 1;
  text-align: center;
  color: #111;
  background: #fff;
  border: 4px solid transparent;
  border-radius: 18px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#searchLink input[type=text]::placeholder {
  color: #616161;
  opacity: 1;
}

#searchLink input[type=text]:focus {
  outline: none;
  border-color: #95eb0d;
  box-shadow: 0 0 14px rgba(149, 235, 13, 0.55);
}

#searchLink input[type=submit] {
  position: absolute;
  left: -9999px;
}

/* --- "You are here": the current page's tab gets the neon-green stroke.
       (In the PSD only the active tab has its Stroke effect enabled.) --- */
#search #searchLink input[type=text], #search #searchLink > a, #bulletins #bulletinsLink > a, #schedule #scheduleLink > a, #live #liveLink > a {
  border-color: #95eb0d;
  box-shadow: 0 0 15px rgba(149, 235, 13, 0.55), inset 0 0 12px rgba(149, 235, 13, 0.16);
}

/* mobile bits (shown via _mobile.scss) */
#mobile-menu {
  display: none;
}

#menu-state {
  position: absolute;
  left: -9999px;
}

#banner {
  overflow: hidden;
}

/* --- Landing "screen": the live video framed by the neon-green stroke
       (matches the GCTV .screen; PSD "Watch Live Window") --- */
.screen {
  box-sizing: content-box;
  width: 1272px;
  max-width: calc(100% - 10px);
  margin: 10px auto 0;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #000;
  border: 6px solid #95eb0d;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 22px rgba(149, 235, 13, 0.18);
  /* fill the frame (no letterbox / pillarbox bars) */
}

.screen .video-js,
.screen video-js {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.screen .vjs-tech,
.screen video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.screen .vjs-poster {
  background-size: cover;
}

/* --- Latest Uploads: horizontal, scrollable strip of recent shows --- */
.uploads {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 1.6rem auto 0;
}

.uploads__heading {
  width: 1272px;
  max-width: 100%;
  margin: 0 0 .8rem;
  font-family: "Conthrax", "Chakra Petch", "Segoe UI", Tahoma, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 1.3rem;
  color: #95eb0d;
  text-shadow: 0 2px 10px rgba(149, 235, 13, 0.3);
}

.uploads__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.uploads__track {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 1272px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.uploads__track::-webkit-scrollbar {
  display: none;
}

.upload {
  flex: 0 0 auto;
  width: 236px;
  scroll-snap-align: start;
  margin: 0;
}

.upload a {
  display: block;
  color: #fff;
  text-decoration: none;
}

.upload a:hover {
  text-decoration: none;
}

.upload__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid rgba(149, 235, 13, 0.3);
  border-radius: 6px;
  background: #000;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.upload__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload__len {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-family: "Conthrax", "Chakra Petch", "Segoe UI", Tahoma, sans-serif;
  font-size: .72rem;
  border-radius: 4px;
}

.upload:hover .upload__thumb {
  border-color: #95eb0d;
  box-shadow: 0 0 14px rgba(149, 235, 13, 0.55);
}

.upload__name {
  display: block;
  margin: .5em 0 .15em;
  font-size: .95rem;
  line-height: 1.2;
}

.upload__date {
  display: block;
  font-family: "Conthrax", "Chakra Petch", "Segoe UI", Tahoma, sans-serif;
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.6);
}

.uploads__nav {
  flex: none;
  width: 3.2rem;
  height: 3.2rem;
  border: 3px solid #95eb0d;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: "Conthrax", "Chakra Petch", "Segoe UI", Tahoma, sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

.uploads__nav:hover:not(:disabled) {
  background: #95eb0d;
  color: #000;
}

.uploads__nav:disabled {
  opacity: .3;
  cursor: default;
}

#bulletinList img, #bulletinList, #bulletinSlideshow {
  margin-left: auto;
  margin-right: auto;
}

#bulletinList img {
  max-width: 100%;
}

#bulletinList a {
  float: left;
  width: calc(25% - 2em);
  margin: 1em;
}

#bulletinList img {
  box-shadow: 3px 3px 10px -3px #000;
}

#onNow {
  font-weight: bold;
  border: 2px solid rgba(149, 235, 13, 0.5);
  border-radius: 6px;
  background-color: rgba(149, 235, 13, 0.1);
}

.ui-state-highlight, .ui-widget-content .ui-state-highlight {
  font-weight: bold;
}

.ui-widget-content,
.ui-widget-header,
.ui-state-default,
.ui-widget-content .ui-state-default {
  background-image: none;
}

fieldset {
  border: 2px solid rgba(149, 235, 13, 0.5);
  padding: .75em;
  border-radius: 10px;
}

.notice {
  margin-bottom: 6px;
  font-size: .85em;
}

.notice h4, .notice > div, .notice .ui-accordion-content {
  border-style: solid;
  border-width: 2px;
  padding: 6px;
}

.notice h4 {
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
  background-color: #757500;
}

.notice > div, .notice .ui-accordion-content {
  border-top-width: 0;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  margin-bottom: 6px;
}

.notice > div, .notice h4 {
  border-color: #c6c600;
}

.notice .ui-state-default, .notice .ui-widget-content .ui-state-default, .notice .ui-widget-header .ui-state-default, .notice .ui-widget-content {
  background-image: none;
}

.notice .ui-widget-content {
  background-color: transparent;
}

.emergency > div, .emergency h4 {
  border-color: #d77;
}

.emergency h4 {
  background-color: #a44;
}

.readMore {
  float: right;
}

/* Narrow screens: tabs share the top row and the search field drops to its
   own full-width row (mirrors the GCTV responsive nav). */
@media all and (max-width: 900px) {
  #wrapper {
    padding: 12px 12px 24px;
  }
  #nav {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
  }
  #nav > li {
    flex: 1 1 0;
  }
  #nav > li > a {
    width: auto;
    min-width: 0;
    height: 46px;
    font-size: 1.2rem;
    padding: 0 6px;
    border-radius: 13px;
  }
  /* search field drops to its own full-width row (matches GCTV) */
  #nav > li#searchLink {
    flex: 1 1 100%;
    order: 5;
  }
  #searchLink form {
    width: 100%;
  }
  #searchLink input[type=text] {
    width: 100%;
    height: 46px;
    font-size: 1.15rem;
    border-radius: 13px;
  }
  .live-dot {
    width: .8rem;
    height: .8rem;
    margin-right: .35rem;
  }
  .screen {
    width: calc(100% - 10px);
    max-width: none;
    margin-top: 12px;
    border-width: 5px;
  }
  .uploads {
    margin-top: 20px;
  }
  .uploads__heading {
    font-size: 1.15rem;
  }
  .uploads__nav {
    display: none;
  }
  .uploads__track {
    width: 100%;
    gap: 10px;
    scroll-snap-type: x mandatory;
  }
  .upload {
    width: 60vw;
    max-width: 240px;
  }
  .content {
    padding: 16px 16px 18px;
  }
  .gallery li {
    width: calc(100% / 3);
  }
}

@media all and (max-width: 560px) {
  #logo img {
    max-width: 92%;
  }
  /* keep Live / Schedule / Bulletins on one row, shrink the label to fit */
  #nav > li > a {
    font-size: 1rem;
    height: 44px;
    padding: 0 4px;
    letter-spacing: -.01em;
  }
  .sidebar, figure a {
    float: none;
  }
  .sidebar {
    width: auto;
  }
  figure a img {
    margin: auto;
  }
  figcaption {
    margin-left: 0;
  }
  .upload {
    width: 72vw;
  }
  .gallery li {
    width: 50%;
  }
}

@media print {
  #wrapper {
    width: auto;
    font-family: 'Times New Roman',Times,serif;
  }
  nav, #wrapper > ul, #pageTools, #watermark, #datepicker {
    display: none;
  }
  header img {
    width: 100%;
  }
  .content {
    padding: 0;
  }
}
