@charset "utf-8";
/* Responsive layout of the generic popup. The desktop layout (generic-popupv2-wide.css, 1000px) is untouched: every
   rule below sits in a max-width media query or under html.m.
     >= 1000px   desktop
     768-999px   tablet: fluid page, two columns that wrap, station search kept, area links dropped
     <= 767px    phone: the look of the custom mobile page (burger menu, big play button, one column)
   html.m is set by generic2.jsp at load for widths under 768px (or ?view=mobile). It only decides which ad units are
   on the page, because slots are defined once at load and don't change when the window is resized. */

.mob-only,
.phone-only {display: none;}
html.m .desk-only {display: none !important;}
html.m .mob-only {display: block;}

@media (max-width: 999px) {
	body {-webkit-text-size-adjust: none;}
	#page {width: auto;}
	.wide-only {display: none !important;}

	/* header: logo and the station search; the area links don't fit */
	#header {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 0 12px 10px;}
	#l24logo {float: none; margin: 10px 10px 0 0;}
	#navigation {display: none;}
	#header .googlesearch {float: none !important; margin: 10px 0 0 !important; width: 260px !important; height: auto !important; box-sizing: border-box;}

	/* station info and player side by side, the ads and the text below them */
	#content {display: flex; flex-wrap: wrap; align-items: flex-start; padding: 20px 10px;}
	#content > br {display: none;}
	#stationinfo {flex: 1 1 320px; width: auto; max-width: 100%; box-sizing: border-box;}
	#playerwrap {flex: 0 0 319px; max-width: calc(100% - 20px);}
	.station-info {width: auto; max-width: 100%;}
	.description,
	#contact {flex: 0 0 auto; width: calc(100% - 20px); box-sizing: border-box;}
	#recommendation {flex: 0 0 100%;}
	#message_field {width: calc(100% - 250px); margin-left: 20px; box-sizing: border-box;}
	textarea {width: 100%; box-sizing: border-box;}
	#fbradio, #socialbar {max-width: 100%;}
}

@media (min-width: 768px) and (max-width: 999px) {
	#contact fieldset {width: 210px;}
}

@media (max-width: 767px) {
	.phone-only {display: block;}
	.phone-hide {display: none !important;}

	body {background: #fff; color: #333; font: 300 16px/1.4 Roboto, Helvetica, Arial, sans-serif;}
	a {color: #6d6d6d;}
	#page {background: none; padding: 0;}

	/* header: the logo centred on white, the burger menu on the right; the station search sits in the menu */
	#header {display: block; position: relative; padding: 0; background: #fff; text-align: center; overflow: visible;}
	#l24logo {display: inline-block; margin: 0; padding: 10px 0;}
	#l24logo img {width: 180px; height: auto;}
	#mobile-menu {position: absolute; top: 22px; right: 12px; z-index: 60; text-align: left;}
	#mobile-menu > summary {display: block; list-style: none; cursor: pointer; padding: 8px 12px; background: #fff; border: 1px solid rgba(0, 0, 0, .15); border-radius: 4px;}
	#mobile-menu > summary::-webkit-details-marker {display: none;}
	.burger-icon {display: block; width: 28px; height: 28px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(0,0,0,.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") center / 100% 100% no-repeat;}
	.menu-panel {position: absolute; top: 52px; right: 0; width: calc(100vw - 24px); max-width: 340px; max-height: 75vh; overflow: auto; background: #fff; border: 1px solid rgba(0, 0, 0, .15); border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, .2);}
	.menu-panel summary {padding: 10px 14px; cursor: pointer; font-weight: 400; color: rgba(0, 0, 0, .7);}
	.menu-panel details[open] > summary {color: #000;}
	.menu-panel a {display: block; padding: 8px 14px 8px 28px; text-decoration: none; color: #333;}
	.menu-panel a.top {padding: 10px 14px; color: rgba(0, 0, 0, .7);}
	.menu-panel a:hover {background: #f1f1f1;}
	#menu-search {margin-top: 4px; border-top: 1px solid #e5e5e5;}
	#menu-search .googlesearch {display: flow-root; float: none !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 8px 14px 14px !important; background: none !important; box-sizing: border-box;}
	#menu-search .googlesearch h3 {float: none !important; width: auto !important; margin: 0 0 8px !important; padding: 0; font: 400 16px Roboto, Helvetica, Arial, sans-serif; color: rgba(0, 0, 0, .7) !important;}
	#menu-search #___gcse_0 {float: none !important; width: 100% !important;}
	#menu-search form.gsc-search-box {margin: 0 !important;}
	#menu-search table.gsc-search-box {width: 100%; margin: 0;}
	#navigation,
	#header .googlesearch {display: none;}
	.googleresults {background: #fff; color: #444;}

	/* play button and station name side by side on a light band, then the ad, the station and the form */
	#content {display: grid; grid-template-columns: 150px 1fr; align-items: stretch; padding: 0; background: none; overflow: visible;}
	#content > * {grid-column: 1 / -1;}
	#playerwrap {grid-column: 1; grid-row: 1; width: auto; max-width: none; margin: 0; padding: 10px; box-sizing: border-box; background: #e4eff5; border-top: 1px solid #ccc;}
	#mobile-title {grid-column: 2; grid-row: 1; padding: 10px 10px 10px 0; background: #e4eff5; border-top: 1px solid #ccc; min-width: 0;}
	#mobile-title h1 {margin: 0 0 6px; padding: 0; font-size: 22px; font-weight: 300; color: #333; overflow-wrap: anywhere;}

	#player {padding: 0; min-height: 120px; background: none; color: #333;}
	#player object {display: block; width: auto !important; height: auto !important;}
	#player div.jp-audio-stream {width: auto; margin: 0; padding: 0; border: 0; background: none;}
	#player div.jp-interface {position: static; width: 120px; height: 120px; padding: 0; background: none;}
	#player ul.jp-controls {position: static; width: 120px; height: 120px; margin: 0; padding: 0;}
	#player ul.jp-controls li {display: block; float: left; height: 120px;}
	#player ul.jp-controls a {display: block; width: 120px; height: 120px; margin: 0; border: 0; overflow: hidden; text-indent: -9999px;}
	#player .jp-play {background: url(../mobile/images/button-play.png) center / 120px 120px no-repeat;}
	#player .jp-pause {background: url(../mobile/images/button-pause.png) center / 120px 120px no-repeat;}
	#player .jp-volume-controls,
	#player .jp-volume-bar,
	#player p {display: none !important;}
	#audio-tag {width: 100%; height: 100px;}
	#fallback {width: auto !important; padding-top: 10px !important;}
	.banner {max-width: 100%; overflow: hidden;}

	/* 300x250 mobile ad unit */
	#mobile-ad {margin: 20px auto 10px; width: 300px; max-width: 100%; min-height: 271px;}
	#mobile-ad .adlabel {display: block; text-align: center; color: #333; font-size: 14px;}
	#div-gpt-ad-1551716845895-0 {margin: auto; width: 300px; min-height: 250px;}

	/* station: logo and details, then the description */
	#mobile-about {display: flex; align-items: flex-start; gap: 14px; margin-top: 24px; padding: 0 16px; font-size: 17px; line-height: 1.4;}
	#mobile-about .radio-logo {float: none; flex: none; width: 96px; max-width: 30%; max-height: none; height: auto; margin: 0; object-fit: contain;}
	#mobile-about .about-info {flex: 1; min-width: 0; overflow-wrap: anywhere;}
	#mobile-about h4 {margin: 0 0 6px; font-size: 20px;}
	#mobile-about a {color: #6d6d6d;}
	.description {width: auto; margin: 16px 16px 16px !important; padding-top: 14px; border-top: 1px solid #dee2e6; text-align: left; color: #333; font-size: 17px; line-height: 1.4;}
	.description h2 {display: none;}
	#jp-error-div {margin: 0; padding: 20px; background: #f8f9fa; text-align: center; font-size: 14px;}
	#jp-error-div p {margin: 0;}

	/* contact form */
	#contact {width: auto; margin: 20px 0 0; padding: 0 0 5px; background: #f1f1f1; color: #444;}
	#contact h2 {width: 70%; margin: 0 auto 12px; padding: 10px 0; text-align: center; text-transform: uppercase; font-size: 1.1rem; font-weight: 700; color: #fff; background: #455e87; border-radius: 0 0 3px 3px;}
	#msgform {margin: 0 16px 15px;}
	#msgform fieldset,
	#message_field {float: none; width: auto; margin: 0; position: static;}
	#msgform label {float: none; padding-top: 8px;}
	#msgform input,
	#msgform textarea {float: none; width: 100%; box-sizing: border-box; height: 38px; padding: 4px 8px; font-size: 16px; font-family: inherit;}
	#msgform textarea {height: 110px;}
	#submit {position: static; display: block; margin: 10px 0 0; padding: 12px 0; text-align: center; font-size: 16px; background: #455e87; border: 0; border-radius: 4px; color: #fff;}

	#recommendation {box-sizing: border-box; padding: 0 16px 10px; color: #6d6d6d; font-size: 12px;}
	#recommendation a {color: #6d6d6d;}
}
