/* ---------------------------------------------------------------------------
   PBS mobile navigation drawer (#sidr)
   ---------------------------------------------------------------------------
   Re-skins the slide-out mobile menu to match the PBS mobile app drawer:
   a crimson identity band, a light "My PBS" section label, camp headings with
   icons, and their child links tied together by an amber rail.

   Every selector is anchored on #sidr. The drawer and the desktop header both
   render an element with id="account" (duplicate ids predate this file), so an
   unanchored rule here would repaint the desktop dropdown too.
   --------------------------------------------------------------------------- */

#sidr {
	width: 290px;
	background: #ffffff;
	color: #24242e;
	box-shadow: 0 0 24px rgba(0, 0, 0, 0.18);
	padding-bottom: 28px;
	font-size: 14px;
}

/* The plugin only writes an inline `left` while animating; the closed position
   comes from the stylesheet, so it has to track the width set above or the
   drawer peeks in from the edge. */
#sidr.sidr-left {
	left: -290px;
}

#sidr.sidr-right {
	right: -290px;
}

/* --- identity band -------------------------------------------------------- */

#sidr .pbs-mnav-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #b31942;
	padding: 14px 16px;
}

#sidr .pbs-mnav-id {
	display: flex;
	align-items: center;
	min-width: 0;
}

#sidr .pbs-mnav-logo {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #ffffff;
	object-fit: contain;
	padding: 3px;
	flex: 0 0 auto;
}

#sidr .pbs-mnav-hi {
	margin-left: 10px;
	color: #ffffff;
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#sidr .pbs-mnav-close {
	color: #ffffff;
	font-size: 20px;
	line-height: 1;
	padding: 4px 2px 4px 12px;
	flex: 0 0 auto;
}

#sidr .pbs-mnav-close:hover,
#sidr .pbs-mnav-close:focus {
	color: #ffffff;
	opacity: 0.8;
}

/* --- account row (Home / Logout, or Login / Register) --------------------- */

#sidr .header-mobile .mobile-account {
	display: flex;
	background: #f5f6f8;
	border-bottom: 1px solid #e6e8ec;
}

#sidr .header-mobile .mobile-account > a {
	flex: 1 1 0;
	text-align: center;
	color: #0a3161;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 8px;
}

#sidr .header-mobile .mobile-account > a i {
	font-size: 14px;
	margin-right: 6px;
	color: #b31942;
}

#sidr .header-mobile .mobile-account > a + a {
	border-left: 1px solid #e6e8ec;
}

#sidr .header-mobile .mobile-search {
	padding: 0;
}

/* --- section blocks ------------------------------------------------------- */

#sidr .pbs-mnav-block,
#sidr .cd-accordion-menu {
	width: 100%;
	max-width: none;
	background: transparent;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Small grey label above a group of links ("Explore"). */
#sidr .pbs-mnav-label {
	padding: 16px 18px 6px;
	color: #98a0aa;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

/* "My PBS" stops being a hover dropdown here and becomes the section label the
   app uses. Hover-to-open never worked reliably on touch anyway. */
#sidr #account .dropbtn.account-settings {
	display: block;
	background: #f5f6f8;
	color: #b31942;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 10px 18px;
	cursor: default;
	border-bottom: 1px solid #e6e8ec;
}

#sidr #account .dropbtn.account-settings i {
	display: none;
}

/* .cd-accordion-menu ul is display:none by default and was revealed by
   #account.dropdown:hover; the drawer shows the whole list instead. */
#sidr #account .dropdown-menu {
	display: block;
	position: static;
	float: none;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 6px 0 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

#sidr .cd-accordion-menu a,
#sidr #account .dropdown-menu > li > a {
	position: relative;
	display: flex;
	align-items: center;
	background: transparent;
	color: #24242e;
	font-size: 14px;
	font-weight: 400;
	padding: 11px 18px;
	margin: 0;
	line-height: 1.3;
	white-space: normal;
}

#sidr .cd-accordion-menu a:hover,
#sidr .cd-accordion-menu a:focus,
#sidr #account .dropdown-menu > li > a:hover,
#sidr #account .dropdown-menu > li > a:focus {
	background: #fdf2f5;
	color: #b31942;
}

#sidr .pbs-mnav-ico {
	width: 20px;
	margin-right: 12px;
	text-align: center;
	font-size: 15px;
	color: #b31942;
	flex: 0 0 auto;
}

/* Camp headings sit flush left and read as group titles. */
/* .heading-a a is underlined and 13px !important site-wide (custom.css), which
   is right for the desktop dropdown and wrong for a drawer section title. */
#sidr #account .dropdown-menu > li.heading-a > a {
	color: #0a3161;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	padding-top: 12px;
	padding-bottom: 10px;
}

/* Children of a camp share one continuous amber rail, the way the app groups
   them. Contiguous borders join into a single line. */
#sidr #account .dropdown-menu > li.pbs-mnav-sub > a {
	margin-left: 26px;
	padding-left: 14px;
	border-left: 3px solid #e8a33d;
	color: #3c4149;
}

#sidr #account .dropdown-menu > li.pbs-mnav-sub > a .pbs-mnav-ico {
	color: #6b7280;
}

#sidr #account .dropdown-menu > li.pbs-mnav-sub > a:hover .pbs-mnav-ico,
#sidr #account .dropdown-menu > li.pbs-mnav-sub > a:focus .pbs-mnav-ico {
	color: #b31942;
}

#sidr #account .dropdown-menu hr {
	margin: 12px 18px;
	border: 0;
	border-top: 1px solid #eceff2;
}

/* --- Explore list --------------------------------------------------------- */

#sidr .pbs-mnav-block > li > a > span {
	display: inline;
}

#sidr .cd-accordion-menu li.active > a {
	color: #24242e;
}
