/*  ⋀ ⋁ V ⊼ ▲ ▼ ◀ ▶ 〈 〉 <  >  ul menu ☰导航*/

html {
	height: 100%;
	font-size: 15px;

	box-sizing: border-box;
}

body {
		/* position:relative;height:100%;	*/
	background: #467;
	height:100%;

	overflow-wrap: break-word;

	/*color:#333;*/
	/*letter-spacing: 0.0625em;*/
}

*, *:before, *:after {
	margin: 0;
	padding: 0;
	box-sizing: inherit;
}

/* 要注意表单元素并不继承父级 font 的问题 */
body, button, input, optgroup, select, textarea{
	font:1em/1.8 "PingFang SC", "Lantinghei SC", Verdana, "Helvetica Neue", "Hiragino Sans GB", "Linux Libertine", "Microsoft Sans Serif", "WenQuanYi Micro Hei", sans-serif;
}

img {vertical-align:middle;border:none;}
small {font-size:90%;color:#555;}

ul, ol {
	padding: 0.2em 0.2em 0.2em 2em;
}

dd {
	padding: 0.2em;
	margin-left: 1.5em;
}


table {
	border-collapse: collapse;
	border-spacing:0;
	table-layout:fixed;
	width:99%;
	margin:0 auto;
}
th,td {
	vertical-align: top;
}
tr:hover {
	background:#cee;
}


a {
	text-decoration:none;
	color:#16387c;
/*	color: #000; */
	padding:0.2em;
	margin-right:0.2em;
}	/*#00e #005  #16387c  overline*/

a:hover {
	color:#00f;
	text-decoration:underline;
}
a:focus,
a:active {
	background:#ffe;
}


					/* -- For the form -- */
textarea,
input {
	border:1px solid #4697e4;
	margin: 4px auto;
	padding: 0 4px;
}

textarea:focus,
input:focus {
	outline:2px solid #4697e4;
	/*	box-shadow: 0px 0px 3px 2px #4697e4; */
}	/* #f3f */

/*
input[type=button]		use <button only
input[type=submit], 	use the class?
*/
button, select{
	cursor:pointer;
	/* padding:0 3px; */
	/*border-radius: 3px;*/
}

option {
	padding: 4px 8px;
}



	/* style checkbox for mobile device 
	 * <label
	 * 		<input checkbox
	 * 		<span empty or not, all ok
	 * 
	 */

    /* this to make it still checkable with js */
/*
label>input[type=checkbox] {
	visibility:hidden;
	position:absolute;
}

label>input[type=checkbox] + span:before {

		/* have to have something in content so that the size is correct */
		/* make the color the same as the background so it is not visible*/
/*
	content:'.';
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;

	height: 1em;
	width: 1em;

	border: 2px solid #888;
	transition: border 0.5s;
}

label>input[type=checkbox]:checked + span:before {
  content:'\2714';
  border: 2px solid #090;
  color: #090;
}
*/


	/* .sSubmit for some button */
input[type=submit],
.sSubmit {
	cursor:pointer;
	line-height: 1;
	padding: 12px 24px;
	border-radius: 4px;
	display: block;
	margin: 16px auto 4px;
	border: 1px solid #bbb;
	
}


.sInputF {
	display: block;
	width: 98%;
}

.sSubmit:hover {
	background: #373;
}
					/* -- END For the form -- */


			/* ------ page structure ----- 
			 * 
			 *	<html
			 * 		<body
			 * 			< id="DG_App" 
			 * 				< class="s_AppH"	app header
			 * 				< id="DG_AppBC"	container for the main body, so that the flex will display normally
			 * 					< id="DG_AppB"	app body
			 * 						< id="DG_AppB_M"	order 2	main content in app body
			 * 						< id="DG_AppB_L	order 1	right side info in app body
			 *	 					< id="DG_AppB_R"	order 3 right side info in app body
			 * 							......
			 * 							< class="s_AppF"	app footer
			 * 
			 * 
			 */
#DG_App {
	display: flex;
	flex-flow: column nowrap;
	height: 100%;
}

	/* ajust left, right padding according to the device width */
.s_AppH {
	margin: 0 auto;
	padding: 0.5em;
	background: #e0e0e0;
	border-radius: 4em 4em 0 0;
}


#DG_AppBC {		/* Main body container */
	flex: 1;
	overflow: auto;
	margin: 0 auto;
	background: #e9e9e9;
}

	/* page main body. RESPONSIVE  set width later*/		/* overflow:hidden; might interfere the dropdown menu */
#DG_AppB {
}


.s_AppF {
	background: #eff9ff;
	padding: 0.5em;
	text-align: center;
}

			/* MORE at the bottom depend on the device size */
		/* ------END page structure ----- */






/* ---------------  for a small section, with title in h3,h4 content in any format
 *  can be used inside .sAcc
	 * 
	 *	<class="s_Sec"
	 * 		<h4 margin:0
	 * 			<a class="s_SecHA" optional
	 * 		< class="s_SecCNoP"	for special case that to cancel padding from s_Sec. chat small window etc.
	 * 
	 */

.s_Sec {
	margin: 1.5em 0;
	padding: 0.5em 1em 1em;
	background: #fff;
}

	/* 
	 * 	h3 for wider section
	 *  h4 for narrow ones. on desktop. Moblie shold be the same
	 */

.s_Sec > h3,
.s_Sec > h4 {
	min-height: 3em;
	padding: 0 0.5em;
	

		/* -1em to cancel the padding left and right in container */
		/* -0.5em to cancel padding-top from s_Sec so that if there is no h3,h4 then other content have right padding. */
	margin: -0.5em -1em 1em;
	
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;

	font-weight: normal;

		/*	position: sticky; top:-1px; */
	background: #eff;
	color: #050;	/* TODO make it green maybe */
	border-top: 4px solid #2cd;
	
	/*background-image:linear-gradient(#24eeff, #24eeff 3px, #dff 3px, #fff);*/

}

.s_Sec > h4 {
	font-size: 100%;
}

.s_Sec > h3 {
	font-size: 105%;
}

.s_Sec,
.s_Sec > h3,
.s_Sec > h4 {
	border-radius: 0.5em 0.5em 0 0;
}

	/* vertically adjacent sections to add more gap*/
/*
.s_Sec + .s_Sec {
	margin-top: 1em;
}
*/

	/* one container can have multiple h4, h3 */
.s_Sec > h3~h3,
.s_Sec > h4~h4 {
	margin-top: 1em;
	border-top: 2px solid #2cd;
}

			/* ----------- added effect */
	/* h3 class=, h4 at the bottom */
.s_Sec > .s_AtB {
	border-top: 0;
	border-bottom: 4px solid #2cd;
	margin: 0.5em -1em -1em;
}

		/* .s_Sec > h4 > a */
.s_SecHA {
	padding: 0.1em 0.2em;
}


.s_SecCNoP {
	margin: 0 -1em;	/* cancel left right padding from s_Sec, add own padding */
	padding: 0.2em 0.5em;
}

.s_SecCNoW {
	overflow-x: hidden;
	white-space: nowrap;
	/*text-overflow: ellipsis;*/
}

		/* section main content */
.s_SecC {
		/* for .s_SecC + .s_SecC */
	padding: 0.5em 0 1em;
}

	/* for the case with several .s_SecC stack vertically together */
.s_SecC + .s_SecC {
	border-top: 0.4em solid #d8d8d8;
}


.s_Sec:hover a {
	color: #00a;		/* 00b */
}

			/* ------ END for a small section, with title in h3, content in any format ----- */




					/*----- Addtional class to modify the class applied ------*/

	/* number of links inside to be displayed with bigger padding */
.s_PGNav a,
.sSetsLink a{
	border:1px solid #bbd;
	padding:0.3em 0.4em;
	transition: background 0.5s;
}
.s_PGNav a:hover,
.sSetsLink a:hover{
	border:1px solid #e83;
	background: #ff8;
}


	/* current selected */
.sCurSel {
	border-top:1px solid #0a0;
	border-bottom:1px solid #0a0;
	font-weight:bold;
}		/*	background:#9ff;	*/

.sGBG{
	background:#f5fff5;
}
.sYBG{
	background:#ffd;
}	/* tip, or reminder background addon. yellowish */

	/* for fixed height and scrollable*/
.sHFixedA {
	max-height: 300px;
	overflow-y: auto;
}

	/* to show a user to be friend */
.s_UFriend:after {
	content : '★';
	color: #f00;
	margin-left: 4px;
	font-weight: bold;
}

					/*----- END Addtional class to modify the class applied ------*/



					/* ----- Navigation related ------------ */

.sFloatNav {
	position:fixed;
	margin:0;padding:0 3px;
								/* z-index : 10; */
	bottom:1em;
	right:20%;	/* NOTE: change it according query */
}

.sLocNav {
	border-left: 5px solid #c33;	/* a30 f24*/
	border-right: 5px solid #c33;
	border-radius: 1em;
	padding: 0.5em 1em;
	margin: 1em 0;
}


				/* for paginanation. */
.s_PGNav {
	font-weight: normal;
	font-size: 100%;
	background: #e9f0f0;
	padding: 0.2em;
	margin: 0.1em 0;
	border-radius: 0.5em;
	
	
	display: flex;	/* TODO for small device, flex-wrap : wrap; */
	justify-content: space-between;
	align-items: center;
}

					/* END ----- Navigation related ------------ */


				/* --- post related ---*/

.sPMnuT{}	/* the menu inside each post, on the TOP */

	/* the menu inside each post, Bottom , define depend on the mobile verion or not, down*/
.sPMnuB {
	display:inline-block;
}

.sPACont p{
	text-indent:1.5em;
	margin: 0.6em 0;
}

.sPACont table{
	width: 90%;
	margin: 0.5em auto;
}
.sPACont th,
.sPACont td{
	border: 1px solid #eef;
	padding: 3px;
}

.sPACont a,
.sOutLink{

}
.sPACont .sOutLink:after{
	content: " " url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVklEQVR4Xn3PgQkAMQhDUXfqTu7kTtkpd5RA8AInfArtQ2iRXFWT2QedAfttj2FsPIOE1eCOlEuoWWjgzYaB/IkeGOrxXhqB+uA9Bfcm0lAZuh+YIeAD+cAqSz4kCMUAAAAASUVORK5CYII=);
}

	/* quoted content */
.sQuote{
	max-width:80%;
	padding:3px 0.5em;margin:1.2em auto 1.2em 1.2em;
	max-height:250px;overflow:auto;
	border:1px solid #ccc;border-left:3px solid green;
}

	/* image in post content */
.sImgInCon{
	max-width:96%;
	height:auto;
	display:block;
	margin:0 auto;
	cursor:pointer;
}

	/* hold menu values for each post / article content*/
.sPAInfo{
	display:none;
}

	/* container for the bottom menu */
.sPMc{
	position:relative;
	text-align:right;
	clear:both;
}


	/* position:relative; */
.sForPER{
	position:relative;
	margin-top:0.5em;
	border-top:4px double #0a0;
	padding: 0.5em 1em 1em;
	background: #efe;
	display:none;
}

	/* current new topic, re, edit area */
.sCurPER{
	border:4px double #0a0;
	margin-bottom:1em;
}


		/* --------- user and post info inside the P content. 
		 * mouse enter to expand, out to collapse.
		 * touchstart to expand  --------------- */
		/* Post Side Info: date, link of p and re, author info */
.sPSInfo{
	padding: 0 0 0.5em 1em;
	margin-top: 0.25em;
	float:right;
}

.sPUS{
	position:relative;
}	/* Post User info Small, simple */
.sPUS:after{	/*		...▼		*/
	content: '';
	border: 0.9em solid transparent;
	border-left-width: 0.5em;
	border-right-width: 0.5em;
	border-top-color: #888;

	position:absolute;
	top: 0.45em;
	right: 0;
}
	/* hold more infor about User, assemble later to put in a bigger area */
.sPUS > i{
	display: none;
}


	/* use with #UQ_PUB. can be used for other purpose*/
.sTip {
	position:absolute;
	z-index:3;
	top:100%;
	right:0;
	padding:0.5em 2em 2em 2em;
	white-space:nowrap;	/* or min-width ? */
}

					/* ---- display effect related ----- */
	/* --- upvote, down vote info. text or in link ---*/
.sUpV:before {
	content: url(flower.gif);
}

.sDownV:before {
	content: url(egg.gif);
				/*vertical-align:middle;*/
}

	/* 指向提示信息 文字=》 */
.sNote {
	position: relative;
	font-size: 85%;
	border: 1px solid #a30;
	color: #a30;
	padding: 0.1em;
	margin-right: 1em;
}
.sNote:after {
	position: absolute;
	left: 100%; top:50%;
	content:""; height:0; width:0;
	border: solid transparent;
	border-left-color: #a30;
	border-width:13px;
	margin-top:-13px;
}

.sSepLN {
	width: 70%;
	margin: 0.25em auto;
	border-bottom: 1px dashed #777;
	text-align: center;
}

.sNoWrap {
	overflow-x:hidden;
	white-space:nowrap;
}	/* width:100%; */


.sAPL {position:absolute;left:1em; top: 0.2em;}
.sAPR {position:absolute;right:1em; top: 0.2em;}
.sTAC {text-align:center;}
.sTAR {text-align:right;}
.sFR {float:right;padding:0 0 3px 5px;}
.sFL {float:left;padding:0 5px 3px 0;}
.sClear:after{content:"";display:block;clear:both;} /* if there is float inside, to clear it. use it in parent div */





.s_FlexSB {
	width: 100%;
	display: flex;
	justify-content: space-between;
}

	/* for 人际圈 list of UName */
.s_QJZD {
	/*width: 100%;*/
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.s_QJZD > span{
	width: 8.4em;
	margin: 0.5em;
}

.sSpacerD {
	margin-bottom:1.5em;
}


	/* -- used in PM new message reminder ---*/
.sWBadge[d-badge]:after {
	content:attr(d-badge);
	background:#d0e;
	color:#fff;
	font-size:70%;
	margin-left:2px;
	padding:2px;
	vertical-align:top;
	border-radius:20%;
}

		/* something important to make it stand out */
.sImpBlk {
	background: #ffd;
	border: 1px solid #ded;
	padding: 0.8em;
	margin: 0.5em 0 1em;
	border-radius: 0.5em;
}

.s_ImpTxt {
	color: red;
	font-weight: bold;
}

	/* for error message */
.sErr {
	width: 85%;
	border-left: 5px solid #f00;
	border-right: 5px solid #f00;
	margin: 3px auto;
	padding: 0.5em;
	background: #fff0f0;
}

.sNotice {
	background: #e7fed9;
	border: 1px solid #fb5;
	padding: 0.5em 1em;
	margin: 0.1em 0;
}

.s_FlexVExp {
/*	width: 100%; */
	display: flex;
	flex-direction: column;
}

	/* flex, input expand, take the rest space, with fixed DESC,BUTTON etc. */
.s_FlexExp {
	display: flex;
	align-items: center;
	margin: 0.2em 0;
}
	/* use with s_FlexFV vertical too */
.s_FlexExpItem {
	flex: 1;
	overflow: auto;
}


					/* END ----- display effect related ------ */





		/* /board/ Title list FlexWrap
		 *  display: flex. desktop, left and right
		 *  small device, wrap in two lines, top right, bottom left
		 * 
		 *  < class="s_FW"
		 *  	< class="s_FW_L"
		 * 		< class="s_FW_R"
		 */
.s_FW {
	display: flex;
	/* flex-wrap: wrap; TODO in mobile */
}

.s_FW_L {
	flex: 1;
}

.s_FW_R {
	text-align: right;
}

/*
.s_FW_L {
	order: 2;
}
.s_FW_R {
	order: 1;
	text-align: right;
}
* TODO, in mobile
*/




					/* -------- POPUP div window --------- 
					 *	< class="sFPhc"  container, can have opacity  to control show/hide
					 * 		<div	flex display, 
					 * 			< class="sFPt"	title
					 * 			< class="sFPc"	content, overflow:auto
					 * 			< class="sFPb"	bottom, not always there
					 * 
					 */

	/* pop CONTAINER : more at the mobile section*/
.sFPhc{
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	margin: auto;	/* above pattern to make it appear centered with any given width and height*/
	display: none;
}

.sFPhc > div{
/*	width: 100%; */
	height: 100%;

	display: flex;	/* display: flex; to show */
	flex-direction: column;
	margin: 0;

	border-radius: 1em 1em 0 0;
	box-shadow:0 1em 4em 4em #444;
/*	box-shadow:0 -1.1em 4em 3em #333; */
}

	/* pop TITLE, header */
.sFPhc .sFPt{
	text-align:center;
	padding: 0.3em 1em;
	margin: 0 -2em;		/* change to 0 in mobile TODO */
	border-radius: 3em 3em 0 0;
	/*border-bottom: 1px solid #696;*/
	background:#f0fff0;
}
	/* pop CONTENT height:100%; */
.sFPhc .sFPc {
	flex: 1;
	overflow: auto;
	padding: 0.5em 1em;
	margin: 0;
	background:#f0fff0;
}
	/* pop footer */
.sFPhc .sFPb{
	background:#f0fff0;
}

					/* --------END  POPUP div window --------- */




					/* ----- CHAT related ----- */

/* ------ chat msg window fixed at the bottom; desktop: Right fixed, handheld: Bottome Center
 * .sMsgWin for the default window size and postion .sMsgCB for the expanded window size and position
 * These value default to big screen
 * usage: <div class="sMsgWin">chat window content here</div> use javascript to toogleClass sMsgCB */

	/* change according to device size */
.s_MsgWin {
	display: flex;
	flex-direction: column;

	max-height: 360px;
	transition: margin-left 0.5s;
}


.s_MsgCon {
	padding: 0.1em 0.5em;
	flex-grow: 1;
	overflow:auto;
}

.s_MsgCon > div {
	line-height: 1.3;
	padding: 0.4em 0;
}

.s_MsgCon > div:hover {
	background: #dee;
}

	/* for big chat window, center of screen */
.s_MsgWB {
	position: fixed;
	z-index: 6;
	background: #ffe;
	
	max-height: none;
	height: 100%;
	top: 0;

			/* change these value on smaller device, width< 600px */
		border: 3px double #fb9;
		width: 600px;	/* for small device, set this to be 100% */
		left:50%;
		margin: 0 0 0 -300px;

	/*
	left: 0; right: 0;
	margin: 0 auto;
	*/
}

							/* ----- End of CHAT related ----- */


							/*  ----- Regular Drop Down Up Menu ----*/
		/*
		<nav role="navigation">
		  <ul class="s_Mnu"
			<li>
				anything here

			<li
				< class="s_MnuI" anthing add :after
				<ul class="s_Mnu_L" or s_Mnu_R
					<li><a href="#">Sub-2</a></li>
					<li><a href="#">Sub-3</a></li>
				</ul>
			</li>

			
		  </ul>
		</nav> 
		*/



	/* 主菜单项目 .s_Mnu  下拉菜单 .s_Mnu_L .s_Mnu_R*/
.s_Mnu,
.s_Mnu_L,
.s_Mnu_R {
	list-style: none;
	padding: 0;
	margin: 0;
}

	/* 下拉菜单项目 的显示摸样*/
.s_Mnu > li {
	position: relative;
	margin: 0;
	padding: 0;

/*	flex: 1; */
	/*transition-duration: 0.5s;*/
}


	/* on li > ul drop down */
.s_Mnu_R {		/* To align drop down menu on the right side */
	right: 0;
}

.s_Mnu_L {
	left: 0;
}


	/* 菜单中链接颜色 */
.s_MnuI,
.s_Mnu_L > li > a,
.s_Mnu_R > li > a {
	display: block;
	margin: 0;
	padding: 0.2em 1.5em;

	text-decoration: none;
	color: #333;
	background: #eee;
	outline: none;
	
	/*transition: background 0.5s;*/
}

.s_MnuI {
	position: relative;
	background: 0;
}

.s_MnuI:after {
	content: ' ▼';
	font-weight: bold;
	color: #f13;
	transition: all .5s;
/*
	position: absolute;
	top: 0;
	height: 100%;
	right: 1em;
	display: flex;
	align-items: center;
*/
}


	/* 菜单项目 所在 min-width，max-height 需要根据不同设备的大小来确定*/
.s_Mnu_L,
.s_Mnu_R {
	position: absolute;
	z-index: 3;	/* make sure it is always on the top*/
/*
	opacity: 0;
	visibility: hidden;
	display: none;
*/

	width: 0;	/* to hide */
	color: #060;
	background: #eee;

	
/*min-width: 13em;*/
	transition: top 0.4s;
	top: 150%;  /*margin-top: 0.7rem;*/
	overflow: hidden;

/*	max-height: 350px;
	overflow-y: auto;
	overflow-x: hidden;
*/
}


	/* 鼠标到达处，当前项目显示 背景深色*/

/*.s_Mnu a:hover,*/
.s_Mnu li:hover > a {
	background: #060;
	color: #fff;
	cursor: pointer;
}


.s_Mnu > li:hover >.s_MnuI:after {
	transform: rotate(180deg);  /** looks like a X **/
	color: #fff;
}

	/* 显示下拉菜单项目 when hover*/

.s_Mnu > li:hover > ul,
/*.s_Mnu > li:focus-within > ul,*/
.s_Mnu_L:hover,
.s_Mnu_R:hover,
.s_Mnu_L:focus,
.s_Mnu_R:focus {
	top: 100%;
	white-space: nowrap;
	overflow-wrap: normal;
	min-width: 100%;
	width: auto;
	border: 1px solid #050;
/*
	opacity: 1;
	visibility: visible;
	display: block;
*/
}
		/* for click, to add this class or remove this class*/
/*.s_Mnu_Show */


									/*  -----END  Regular Drop Down Up Menu ----*/

					/** Begin Accordion **/

			/* ------------  here is how to markup html for Accordion

			<ul class="sAcco">
			  <li class="sAccoL">
				<input class="sAccoIC" type="checkbox">
				<div class="s_Sec"
				  <h4>Item1 
					<a class="s_SecHA" optional
				  <div class="s_SecC">Content 1
			  </li>
			  ..... repeat pattern	
			</ul>

			**/



.sAcco {		/** Container of Accordion **/
	list-style: none;
	padding: 0;
	margin: 0.5em 0 1em;
	
		/** width decide by another class or the upper container **/
}

	/** .sAcco > li 		 for each section of Accordion 
	 * CONTAINER
	 */
.sAccoL {
	position: relative;   /** to hide the checkbox in absolute position **/
									min-height: 3em;	/* same height for h4, .sAccoIC. height expand when content is shown */
	border: 1px solid #ada;
}

	/* .sAcco > li > input[type=radio] input[type=checkbox]
	 *  CLICKABLE
	 */
.sAccoIC {
	position: absolute;
	cursor: pointer;
	
	width: 100%;  /** so that click on the bar will be click on the checkbox **/
	right: 0;
	height: 3em;  /** same height as h4 */
	top:0;

	z-index: 1; /** so it is on the top to click on **/
	opacity: 0; /** make it invisibale **/
}

	/*
	 *  CONTENT FOR HIDE AND SHOW
	 * 
	 */
.sAcco >li> .s_Sec {
		/* max-height only care about padding, but the display size is max-height+margin */
	max-height: 1.5em;	/* just make it smaller than: H4 hight, .sAccoIC  3 -  .s_Sec padding-top 0.5 -  .s_Sec padding-bottom 1 */
	overflow: hidden;

	margin: 0;
	transition: max-height .4s;

}


	/* .sAcco > li > div > h4
	 * the HEADER of the Accordion
	 */
.sAcco > .sAccoL > .s_Sec > h4 {
	position: absolute;		/* for ::after and for fixed postion in s_Sec when there is scroll */
	width: 100%;
	height: 3em;
	top: 0;
	margin-top: 0;		/* cancel s_Sec > h4 margin-top */

		/*  to have enough space for the + */
	padding-right: 3em;

		/* to get rid of the visual effect from .s_Sec>h4 */
	border-top: 0;
	border-radius: 0;

	background: #def;
	color: #000;
}

		/* .sAcco > li >div> h4:after */
.sAcco > li > .s_Sec > h4:after {
	position: absolute;
	height: 100%;
	right: .5em;
	transition: all .5s;
	content: "+";   /** they icon for visual cue **/
	font-size: 150%;
	font-weight: bold;

	display: flex;
	align-items: center;
}


	/* now for onclick effect */

.sAccoIC:checked + .s_Sec {
	padding-top: 3.5em;	/* height: 3em, and 0.5em padding from H4 */
	max-height: 500px;	/*300px;*/
	overflow: auto;
}
		/* .sAcco > li > input[type=checkbox]:checked + div>h4 */
.sAccoIC:checked + .s_Sec>h4 {
	background: #008080;
	color: #fff;
}

		/*.sAcco > li > input[type=checkbox]:checked + div>h4:after */
.sAccoIC:checked + .s_Sec>h4:after {
	transform: rotate(135deg);  /** looks like a X **/
}


	/* .sAcco > li h4 > a The same in .s_Sec h4 a*/
.sAcco .s_SecHA {
	z-index: 3;	/* so it is clickable */
}
.sAccoIC:checked + .s_Sec .s_SecHA {
	color: #ffa;
}

	/* to make it stack together */
.sImpBlk + .sAcco,
.s_Sec + .sAcco {
	margin-top: -1em;
}

					/** End Accordion **/




	/* mainly for mobile device */

@media screen and (max-width: 1023px){
/*	#DG_AppB_M,
	#DG_AppB_R
*/
	#DG_AppBC{
		width: 100%;
		max-width: 800px;
	}
	
	#DG_AppB {
		padding: 0 1em;
	}

	.s_AppH {
		width: 100%;
		max-width: 870px;
		padding: 0 35px;
	}


				/* the menu at the BOTTOM of each post 
				 * for MOBILE version,
				 * BACKGROUND same as Mainbody */

						.sPMnuB{position:absolute;left: 50%; transform: translate(-50%, 0);bottom:0;background:#f3f3f3;white-space:nowrap}	/* the menu inside each post, Bottom. Relative to the sPACont */


		/* todo, this doesnt work */
/*	input[type=checkbox],
	input[type=radio] {
		width: 1em; height: 1em;
		border: 1px solid #bbb;
	}
*/
}


	/*
	 * 
	 * inherit what ever is in max-width: 1023px
	 * 
	 */
@media screen and (max-width: 690px) {
/*
	#DG_AppB,
	.s_AppH,
	#DG_AppB_M,
	#DG_AppB_R{
		padding: 0;
		margin: 0;
	}
*/
	#DG_AppBC{
	/*	max-width: none;*/
	}
	
	#DG_AppB {
		padding: 0;
	}

	.s_AppH {
		border-radius: 0;
		padding: 0;
	}

		/* mainly the display in board topic list */
	.s_FW {
		flex-wrap: wrap-reverse;
	}
	.s_FW_R {
		flex: 1 100%;
	}
	.s_FW_R > small {
		display: none;
	}

		/* for clickable menu nav item */
	.s_MnuI {
		padding: 0.2em 0.5em;
	}

		/* for the pop up */
	.sFPhc > div{
		box-shadow: none;
	}

			/* pop TITLE, header */
	.sFPhc .sFPt{
		margin: 0;
		border-radius: 8px 8px 0 0;
	}
			/* pop CONTENT height:100%; */
	.sFPhc .sFPc {
		padding: 0.5em;
	}


		/* for sections */
	.s_Sec {
		padding: 0.5em 0.5em 1em;
	}
	.s_Sec > h3,
	.s_Sec > h4 {
		margin: -0.5em -0.5em 1em;
	}
	.s_SecCNoP {
		margin: 0 -0.5em;	/* -0.5em to cancel the padding in .s_Sec */
	}

	.s_SecC + .s_SecC {
		border-top: 0.2em solid #d8d8d8;
	}


		/* chat window */
	.s_MsgWin {
		max-height: 250px;
	}
	.s_MsgWB {
		/*border: 0;*/
		width: 100%;	/* for small device, set this to be 100% */
		left: 0;
		margin-left: 0;
	}

}


	/* non mobile, commmon settings  with top menu on */

	/* TWO columns 686 +  */
@media screen and (min-width: 1024px){
	.s_AppH {
		width: 100%;
		max-width: 1124px;
		padding: 0 65px;
	}

	#DG_AppBC {
		width: 100%;
		max-width: 1046px;
	}

		#DG_AppB {
			display: flex;
			padding: 0 0 1em;
		}

			#DG_AppB_L {
				display: none;
			}

			#DG_AppB_M{
				flex: 1;
				min-width: 0px;		/* this is to prevent white-space: nowrap ele not working and enlarge the container */
				margin: 0 0.5em 0 1em;
				padding: 0;
			}

			#DG_AppB_R {
				margin: 0 1em 0 0.5em;
				width: 300px;
			}

}


	/* Three columns 686+300+300 + 6 * 12*/
@media screen and (min-width: 1360px){
	.s_AppH {
		max-width: 1450px;	/* from 1360 to 1476 */
	}

	#DG_AppBC {
		max-width: none;
		width: 1360px;
	}

		#DG_AppB {
			position: relative;	/* for the most left panel */
		}

			#DG_AppB_L,
			#DG_AppB_R,
				#DG_RSBottom {
					margin: 0 2em;
					width: 300px;
				}

			#DG_AppB_L {
				display: block;
			}

			#DG_AppB_M{
				margin: 0;	/* three coloumn, use margin from left and right */
			}
					/* ====== the most LEFT colum ===== */
				#DG_RSBottom {
					position: absolute;	/* relative to #DG_AppB */
					left: 0;
					top: 0;
				}

}


	/* Three columns 686+300+300+ 4* 30: 1406px and 35+35 for the top*/
@media screen and (min-width: 1476px){
	.s_AppH {
		max-width: none;
		width: 1476px;
	}

	#DG_AppBC {
		width: 1406px;
	}
}

	/* Three columns 686+336+336+ 4* 30 : 1479 and  45 + 45 for the top to stick out */
@media screen and (min-width:1570px){
	.s_AppH {
		width: 1570px;
	}

		/* width:20 + 336 + 40 + 686 + 40 + 336 + 20*/
	#DG_AppBC {
		width: 1478px;
	}

		#DG_AppB_L,
		#DG_AppB_R,
			#DG_RSBottom {
				width: 336px;
			}
}
