/**
  * Date: 20060719
  *
  * This contains the style for the guest and user portions of Motive Suggest.
  * Admin style can be found in motive_suggest_admin.css
 **/

/**
 * Shared values (colors, sizes, the page's widths), used throughout this file
 * and motive_suggest_admin.css instead of repeating the numbers, so a restyle
 * changes them here. The look itself hasn't been redesigned yet.
 **/
:root{
	--msug-font: tahoma, verdana, sans-serif;
	--msug-font-size: 12px;
	--msug-text: #000;
	--msug-link: #00f;
	--msug-border: #000;
	--msug-row-alt: #acf; /* every other row of a table */
	--msug-page-width: 1024px; /* the widest the page gets; narrower screens get all of theirs */
	--msug-sidebar-width: 220px;
	--msug-gap: 9px;
	--msug-msg-width: 400px; /* message boxes */

	/* Suggest's own brand, from its logo (msug_images/suggest_*.png): the
	   header bar and footer use these now, the rest of the site later. */
	--sg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--sg-ink: #1d0848; /* the wordmark's text */
	--sg-violet-light: #853efa; /* the icon's gradient, top left... */
	--sg-violet: #5b21d6;
	--sg-violet-dark: #13066b; /* ...to bottom right */
	--sg-spark: #fcdd2c; /* the icon's yellow spark */
	--sg-text: #2b2440;
	--sg-muted: #6b6582;
	--sg-line: #e8e4f3;
	--sg-tint: #f7f4ff;
}

body{
	margin: 0px 8px 8px 8px; /* the header bar reaches the edges anyway (header.sg-topbar) */
	padding-top: 0px;
	font-family: var(--msug-font);
	font-size: var(--msug-font-size);
	color: var(--msug-text);
	background-color: #fff;
}
img{margin-bottom: -2px;}
a img {border: 0px;}
a, a:visited, a:active{color:var(--msug-link);}
/* Nothing (a long link, a wide table) makes the page wider than the screen. */
img, select, textarea, input{max-width:100%;}
/* ...except inside tables, where it would make a column too narrow for its
   icons (a cell counts a max-width:100% image as taking no room). */
table img{max-width:none;}

h2{margin:0px;}
h3{margin:0px;}
ol{margin:0px;}
* html ol{margin-left:30px;}
ul{margin:0px;}
* html ul{margin-left:30px;}
form{margin:0px;}
td{vertical-align:top;}
table{border-spacing:0px;border-collapse:collapse;margin:0;}

fieldset.validationOnly{margin: 0px;padding: 0px;border: 0px;float:none;}
fieldset.validationOnly_left{margin: 0px;padding: 0px;border: 0px;float:left;} /* NOTE: Not used yet, TODO: If this isn't used and I'm done making things valid... delete it */
.nowrap{white-space: nowrap !important;}

noscript{
	width:100%;
	text-align:center;
	margin: 0;
}
noscript p{
	margin: 0 auto;
	background-color: #ff8;
}

/**
 * The header bar (msug_siteHeaderHtml()). On a board's pages it's the board's:
 * its image (or initial) and name, big, on the left. Suggest is only the
 * small "on Suggest" chip on the right, so the two never compete. Suggest's
 * own pages show its wordmark instead.
 **/
header.sg-topbar{
	margin: 0 -8px; /* edge to edge, past the body's margin */
	font-family: var(--sg-font);
	background-color: #fff;
	border-bottom: 1px solid var(--sg-line);
	box-shadow: 0 1px 3px rgba(29, 8, 72, 0.04);
}
div.sg-topbarInner{
	/* Lined up with the page below it: the body's 8px margin plus the content's gap. */
	max-width: calc(var(--msug-page-width) + 16px);
	margin: 0 auto;
	padding: 12px calc(var(--msug-gap) + 8px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	box-sizing: border-box;
}
div.sg-topbarBoard{
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0; /* lets a long name shorten with "..." instead of pushing the chip off */
}
a.sg-board, a.sg-board:visited{
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: var(--sg-ink);
	text-decoration: none;
}
.sg-boardAvatar{
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	object-fit: cover; /* an uploaded image is a 1.91:1 link-preview picture: show its middle */
	box-shadow: 0 0 0 1px rgba(29, 8, 72, 0.08);
}
span.sg-boardInitial{
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 19px;
	font-weight: 700;
	box-shadow: none;
}
span.sg-boardName{
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
a.sg-board:hover span.sg-boardName{text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;}
span.sg-adminPill{
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sg-muted);
	background-color: #f1eff6;
	border-radius: 999px;
	padding: 3px 9px;
}
a.sg-on, a.sg-on:visited{
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px 4px 7px;
	border: 1px solid var(--sg-line);
	border-radius: 999px;
	color: var(--sg-muted);
	font-size: 12px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s, border-color 0.15s;
}
a.sg-on:hover{background-color: var(--sg-tint); border-color: #d8cff5;}
a.sg-on img{width: 18px; height: 18px; border-radius: 5px; margin: 0;}
a.sg-on strong{color: var(--sg-ink); font-weight: 600;}
a.sg-wordmark{display: inline-flex;}
a.sg-wordmark img{display: block; height: 32px; width: auto; margin: 0;}

/**
 * The footer (msug_footer()): where Suggest speaks. The "make your own board"
 * card (msug_footerCtaHtml()), then a quiet row with its wordmark, the
 * account and legal links, and the credits.
 **/
main.sg-page{
	max-width: var(--msug-page-width);
	margin: 0 auto;
	padding: 8px var(--msug-gap) 0 var(--msug-gap);
	box-sizing: border-box;
}
footer.sg-footer{
	font-family: var(--sg-font);
	margin-top: 28px;
	padding: 26px 0 30px 0;
	border-top: 1px solid var(--sg-line);
	color: var(--sg-muted);
	font-size: 12px;
	text-align: center;
}
footer.sg-footer a, footer.sg-footer a:visited{color: var(--sg-muted);}
footer.sg-footer a:hover{color: var(--sg-ink);}
div.sg-cta{
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 780px;
	margin: 0 auto 24px auto;
	padding: 16px 18px;
	border: 1px solid #e3dafb;
	border-radius: 14px;
	background: linear-gradient(135deg, #faf8ff 0%, #f1ebff 100%);
	text-align: left;
}
img.sg-ctaIcon{flex: 0 0 44px; width: 44px; height: 44px; border-radius: 11px; margin: 0; box-shadow: 0 2px 6px rgba(19, 6, 107, 0.18);}
p.sg-ctaText{flex: 1 1 auto; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--sg-text);}
p.sg-ctaText strong{color: var(--sg-ink);}
a.sg-button, a.sg-button:visited, footer.sg-footer a.sg-button{
	flex: 0 0 auto;
	display: inline-block;
	padding: 10px 16px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--sg-violet-light) 0%, var(--sg-violet) 55%, var(--sg-violet-dark) 100%);
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(19, 6, 107, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
	transition: filter 0.15s, transform 0.15s;
}
a.sg-button:hover, footer.sg-footer a.sg-button:hover{color: #fff; filter: brightness(1.1); transform: translateY(-1px);}
a.sg-button:focus-visible, a.sg-on:focus-visible, a.sg-board:focus-visible{outline: 2px solid var(--sg-violet); outline-offset: 2px;}
div.sg-footerMeta{display: flex; flex-direction: column; align-items: center; gap: 8px;}
a.sg-footerMark img{display: block; height: 22px; width: auto; margin: 0; opacity: 0.85;}
a.sg-footerMark:hover img{opacity: 1;}
nav.sg-footerLinks{font-size: 12.5px;}
span.sg-sep{margin: 0 7px; color: #c4bfd3;}
div.sg-footerCopy{font-size: 11.5px; color: #8d88a1;}

@media (max-width: 600px){
	div.sg-topbarInner{padding: 10px calc(var(--msug-gap) + 8px);}
	.sg-boardAvatar{flex-basis: 34px; width: 34px; height: 34px; border-radius: 9px;}
	span.sg-boardInitial{font-size: 16px;}
	span.sg-boardName{font-size: 17px;}
	span.sg-onWord{display: none;}
	a.sg-wordmark img{height: 28px;}
	div.sg-cta{flex-direction: column; text-align: center; margin-left: 12px; margin-right: 12px;}
}

/* The Terms of Service and Privacy Policy pages (terms.php, privacy.php), and the
   "By registering, you agree to..." line under sign-up forms (msug_legal.php). */
div.msug_legal{
	line-height: 1.5;
	max-width: 40em;
}
div.msug_legal h2{
	margin-top: 1.5em;
}
p.msug_legalAgreement{
	margin: 0.5em 0 0 0;
}

/**
 * Below is for the three-box model which has 1 on top-left,
  * 2 on below that and 3 on the right (templates/msug_threeBoxes.tpl).
  * Up to --msug-page-width wide; narrower screens get all of their width,
  * and phones one column (see the end of this file).
  */
div.msug_box1, div.msug_box2, div.msug_box{
	border: 1px var(--msug-border) solid;
	min-height:100px;
	margin-bottom:var(--msug-gap);
	overflow-wrap:break-word;
}
/* A sidebar box a page left empty isn't shown (the template has no space
   around its placeholder, so an empty one really is :empty). */
div.msug_box1:empty, div.msug_box2:empty, div.msug_logBox:empty{
	display:none;
}
div.msug_box3{
	min-height:500px;
	border: 1px var(--msug-border) solid;
	overflow-x:auto; /* a table wider than the screen scrolls, rather than widening the page */
}
/* Sets Minimum-width across browsers...
for now it's just static
div.msug_box3_min{width:460px;}
div.msug_box3_max{width:100%;}
* html div.msug_box3_min{width: 500px;}
div.msug_box3_min, div.msug_box3_max{
	height:0px;
	background-color: transparent;
	margin:0px;
	padding:0px;
}
* html div.msug_box3_min, * html div.msug_box3_max{
	margin-bottom: -14px;
}
*/

#msug_content, #msug_footerRow{
	max-width: var(--msug-page-width);
	margin: var(--msug-gap) auto 0 auto;
	padding: 0 var(--msug-gap);
	box-sizing: border-box;
}
#msug_content{
	display: flex;
	align-items: flex-start;
	gap: var(--msug-gap);
}
#msug_left{
	flex: 0 0 var(--msug-sidebar-width);
	width: var(--msug-sidebar-width);
}
#msug_right{
	flex: 1 1 auto;
	min-width: 0; /* lets wide content scroll in its box instead of stretching the column */
}
#msug_footerRow{
	margin-top: 0;
}


input.redBorder{
	border: 2px #f33 solid;
}

/* Style for the message boxes on the site */
div.msug_msg, div.msug_err, div.msug_success{
	margin: 2px auto 5px auto;
	max-width:var(--msug-msg-width);
	font-size:120%;
	overflow-wrap:break-word;
}
* html div.msug_msg, * html div.msug_err, * html div.msug_success{
	margin: 2px -404px 5px 71px;
	display:block;
	width: 396px;
}

div.msug_msg{
	background-color:#ffc;
	border: 2px #ff5 solid;
}
div.msug_err{
	background-color:#fcc;
	border: 2px #f55 solid;
}
div.msug_success{
	background-color:#cfc;
	border: 2px #5e5 solid;
}

/* Why someone can't vote on a members-only board, and how to join (msug_communityGateMessage()). */
div.msug_communityGate{
	margin: 8px 2px;
	padding: 6px;
	background-color:#ffc;
	border: 2px #ff5 solid;
}

select.catFilter{
	width:100%;
	box-sizing:border-box;
}

/* Tablesorter style - BEGIN */
	.largeHeaders, table.sugTable th {
		background: 
			#e9e9da
			url('img/green_arrows.gif')
			no-repeat
			center left;
		color: #333;
		/*padding: 5px;
		padding-left: 25px;*/
		text-align: left;
	}
	.largeHeaders{
		cursor: pointer;	
	}
	table.sugTable th a{ /* For non-javascript implementation */
		color:#333;
		text-decoration:none;
	}


	.sortUp {
		background-color: #4f4 !important;
		/*.background:
			#e9e900 
			url('img/green_decending.gif')		
			no-repeat
			center left;*/
	}

	.sortDown {
		background-color: #44f !important;
		/*background:
			#e9e900 

			url('img/green_acending.gif')
			no-repeat
			center left;*/
	}
/* Tablesorter style - END */

/* The information/instructions on the suggestions page */
div.infoDiv{
	background-color:#eee;
	border: 1px #333 solid;
	width: 95%;
	margin: 2px auto;
}

/* THE MAIN SUGGESTIONS TABLE */
table.sugTable{
	width:100%;
	text-align:center;
}
table.sugTable th{
	background-color:#f0f0f0;
	border: 1px #000 solid;
}
table.sugTable tr.odd td{
	background-color:var(--msug-row-alt);
}
table.sugTable td{
	border: 1px #000 solid;
}
table.sugTable th.wide{
	width:100%;
}
table.sugTable td.sugName{
	text-align:left;
}
table.sugTable td.category{
	text-align:left;
}

/* TODO: FIX OR REMOVE THIS */
* html table.sugTable th.wide{
	width:10px;
}

div.msug_hiddenSugInfo{
	display:none;
}
span.msug_faded{
	color: #808080;
}

div.msug_sugInfo_smallTip{
	color:#808080;
	font-variant:small-caps;
	border-bottom:1px #808080 solid;
}

#sorting, #filtering{
	position: absolute;
	width: 100%;
	height: 100%;
	left:0px;
	top:0px;
	text-align: center;
	display: none;
	margin:0px;
	padding:0px;
}
#sorting div, #filtering div {
	border: 1px solid #000;
	padding:10px;
	margin: auto;
	text-align: center;
	/*width: 300px;*/
	width: 725px;
	max-width: calc(100% - 40px);
	box-sizing: border-box;
	top:200px;
	position: relative;
	background-color: #ffa;
	color: #333;
	font-weight: bold;
}

.msug_overRow{
	background-color: #f00 !important;
}

.msug_filterMsg{
	margin: 0 auto;
	width:100%;
	font-weight:normal;
	background-color:#fff !important;
	text-align:center !important;
}


/* Style for the suggestion-submitting graybox */
#grayBox{
	display: none;
	position: absolute;
	width: 100%;
	height: 100%;
	left:0px;
	top:0px;
	text-align: center;
	margin:0px;
	padding:0px;
	background-image: url(./msug_images/darkGrayBox.png);
}
* html #grayBox{
	background-color: #333;
	back\ground-color: transparent;
	background-image:url(./msug_images/darkGrayBox.gif);
	/*background-image: url(./msug_images/trans.gif);
	filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="./msug_images/darkGrayBox.png", sizingMethod="scale");*/
}
#grayBoxContent{
	border: 1px solid #000;
	padding:0px;
	margin: auto;
	text-align: center;
	width: 450px;
	max-width: calc(100% - 20px);
	box-sizing: border-box;
	top:200px;
	position: relative;
	background-color: #ffa;
	color: #333;
	font-weight: bold;
}
#grayBoxHeader{
	margin:0;
	padding:0;
	background-color:#3333ff;
	/*background-color:#fff;*/
	height: 24px;
	width:100%;
	text-align:right;
}
#msug_addSugForm{
	margin: 0;
	padding:10px;
}

/* A vote that's being saved (msug_sugTable.js). */
span.msug_saving{
	color:#666;
	font-size:80%;
	font-style:italic;
}

/* The hosted service's front page (includes/hsug_landing.php). */
div.hsug_landing{
	max-width:720px;
	margin:0 auto;
	padding:10px var(--msug-gap) 20px var(--msug-gap);
	line-height:1.5;
}
div.hsug_landingHero{
	text-align:center;
	padding:30px 20px;
	margin-bottom:20px;
	background-color:#eef4ff;
	border:1px solid #acf;
}
div.hsug_landingHero h1{
	margin:0 0 15px 0;
	font-size:2em;
	line-height:1.2;
}
div.hsug_landingHero p{
	font-size:1.15em;
	margin:0 0 20px 0;
}
a.hsug_landingCta, a.hsug_landingCta:visited{
	display:inline-block;
	padding:10px 24px;
	background-color:#24c;
	color:#fff;
	font-weight:bold;
	font-size:1.1em;
	text-decoration:none;
	border-radius:4px;
}
a.hsug_landingCta:hover{background-color:#13a;}
ol.hsug_landingSteps li{margin-bottom:8px;}
p.hsug_landingCtaRow{text-align:center; margin:25px 0;}
p.hsug_landingSignin{margin:14px 0 0 0; font-size:1em;}
/* The main site's page of someone's boards (includes/hsug_myBoards.php): one big card per board, newest first. */
div.hsug_myBoards{max-width:900px; margin:0 auto; padding:10px var(--msug-gap) 20px var(--msug-gap); line-height:1.45;}
div.hsug_myBoardsHead{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:18px;}
div.hsug_myBoardsHead h1{margin:0; font-size:2em;}
p.hsug_myBoardsSysop{margin:-8px 0 18px 0;}
div.hsug_myBoardsEmpty{text-align:center; padding:30px 20px; border:1px dashed #acf; border-radius:10px; background-color:#f7f9ff;}
div.hsug_boardCard{display:flex; gap:22px; padding:20px; margin-bottom:22px; border:1px solid #ccd; border-radius:12px; background-color:#fff; box-shadow:0 1px 3px rgba(0,0,0,0.06);}
div.hsug_boardCard_admin{background-color:#fff8e6; border-color:#e8c46a;} /* boards they run: warm, so they stand out from the ones they vote on */
a.hsug_boardCardImage{flex:0 0 340px; align-self:flex-start; display:block; border-radius:8px; overflow:hidden; background-color:#eef0f6;}
a.hsug_boardCardImage img{display:block; width:100%; aspect-ratio:1200/630; object-fit:cover;}
div.hsug_boardCardBody{flex:1 1 auto; min-width:0;}
h2.hsug_boardCardName{margin:0 0 6px 0; font-size:1.6em; line-height:1.2; overflow-wrap:anywhere;}
h2.hsug_boardCardName a{color:inherit; text-decoration:none;}
h2.hsug_boardCardName a:hover{text-decoration:underline;}
span.hsug_boardBadge{display:inline-block; vertical-align:middle; padding:2px 9px; border-radius:999px; font-size:0.5em; font-weight:bold; letter-spacing:0.03em; text-transform:uppercase;}
span.hsug_boardBadge_admin{background-color:#c98a00; color:#fff;}
span.hsug_boardBadge_banned{background-color:#b33; color:#fff;}
ul.hsug_boardFacts{list-style:none; margin:0 0 12px 0; padding:0; color:#555;}
ul.hsug_boardFacts li{display:inline;}
ul.hsug_boardFacts li + li:before{content:" \00b7  ";}
p.hsug_boardWarning{margin:0 0 10px 0; padding:6px 10px; background-color:#fde8e8; border-radius:6px;}
div.hsug_boardTopLabel{font-weight:bold; font-size:0.85em; text-transform:uppercase; letter-spacing:0.04em; color:#666;}
ol.hsug_boardTopSugs{margin:4px 0 14px 0; padding-left:22px;}
ol.hsug_boardTopSugs li{margin-bottom:3px;}
span.hsug_boardTopVotes{color:#777; font-size:0.9em; white-space:nowrap;}
p.hsug_boardNoSugs{color:#777; font-style:italic;}
a.hsug_boardOpen, a.hsug_boardOpen:visited{display:inline-block; padding:8px 18px; background-color:#24c; color:#fff; font-weight:bold; text-decoration:none; border-radius:4px;}
a.hsug_boardOpen:hover{background-color:#13a;}
@media (max-width: 720px){
	div.hsug_boardCard{flex-direction:column; gap:14px; padding:14px;}
	a.hsug_boardCardImage{flex-basis:auto; width:100%;}
}
/* A suggestion picked out by its share link (msug_shareSugUrl()): the link ends in #msug_row_<id>. */
tr:target td{background-color:#fff3b0 !important;} /* over the table's own row colors */
/* A shared suggestion, for someone not signed in (msug_sharedSugPage()): centered, the board's image (or initial) on top. */
div.msug_shared{max-width:520px; margin:24px auto; text-align:center;}
div.msug_sharedBoard{margin-bottom:16px;}
img.msug_sharedLogo{display:block; max-width:120px; max-height:120px; margin:0 auto 8px; border-radius:12px;}
div.msug_sharedBadge{width:88px; height:88px; line-height:88px; margin:0 auto 8px; border-radius:22px; background-color:#0f766e; color:#fff; font-size:42px; font-weight:bold;}
div.msug_sharedBoardName{font-size:1.4em; font-weight:bold;}
div.msug_sharedAbout{color:#555; margin-top:4px;}
div.msug_sharedCard{border:1px solid #ccd; border-radius:8px; padding:18px 20px; margin-bottom:20px; background-color:#f7f8fc;}
h2.msug_sharedTitle{font-size:1.7em; margin:6px 0 10px;}
p.msug_sharedInfo{font-size:1.15em; color:#333; margin:0 0 14px;}
div.msug_sharedVotes{font-size:1.1em; color:#333;}
span.msug_sharedVoteCount{display:block; font-size:2.6em; font-weight:bold; color:var(--sg-ink); line-height:1.1;}
p.msug_sharedProof{color:#555; font-size:1.05em;}
p.hsug_landingFinePrint{
	color:#555;
	font-size:0.9em;
	text-align:center;
}

/* Suggestion status (msug_sugStatusLabel()): a badge next to planned and in
   progress suggestions, and on the board's done & declined list. */
span.msug_status{
	display:inline-block;
	padding:0 5px;
	border-radius:3px;
	font-size:0.8em;
	font-weight:bold;
	white-space:nowrap;
	background-color:#ddd;
	color:#333;
}
span.msug_status_planned{background-color:#cdf; color:#124;}
span.msug_status_inProgress{background-color:#fe9; color:#430;}
span.msug_status_done{background-color:#cfc; color:#141;}
span.msug_status_declined{background-color:#eee; color:#555;}
div.msug_closedSugs{margin-top:15px;}
div.msug_closedSugs ul{margin-top:5px;}
div.msug_closedSugs li{margin-bottom:4px;}
/* Admin's suggestion table: done and declined rows, whose voting has closed. */
tr.msug_closedSug td{color:#777;}
/**
 * Phones and other narrow screens: one column (the sidebar boxes above the
 * main box), larger text and tap targets, and form fields at 16px so iOS
 * doesn't zoom in when one is tapped.
 **/
@media (max-width: 720px){
	:root{
		--msug-font-size: 15px;
		--msug-gap: 8px;
	}
	#msug_content{
		flex-direction: column;
		align-items: stretch;
	}
	#msug_left{
		flex: none;
		width: auto;
	}
	/* Admin pages: the tabs and their content first, the sidebar's links
	   and statistics after (templates/msug_admin.tpl). */
	#msug_content.msug_mainFirst #msug_right{
		order: -1;
	}
	textarea{
		box-sizing: border-box;
	}
	/* Form fields in a table (eg: reviewing a member's suggestion) fill
	   their cell, rather than their fixed size pushing past the screen. */
	div.msug_box3 td input[type='text'], div.msug_box3 td textarea{
		width: 100%;
		box-sizing: border-box;
		min-width: 3em;
	}
	div.msug_box1, div.msug_box2, div.msug_box{
		min-height: 0;
		padding: 4px;
	}
	div.msug_box3{
		min-height: 0;
		padding: 4px;
	}
	input, select, textarea, button{
		font-size: 16px;
	}
	input[type='submit'], input[type='button'], button{
		padding: 6px 12px;
	}
	/* The category filter list: a few rows are enough on a phone. */
	select.catFilter{
		max-height: 8em;
	}
	/* The suggestions table fits a phone without scrolling sideways, so the
	   vote buttons stay on screen: no "Added" date, and just the category's
	   icon (its name is the icon's tooltip). */
	#msug_sugTable tr > :first-child:not(.msug_filterMsg){
		display: none;
	}
	#msug_sugTable td.category{
		font-size: 0;
	}
	/* Voting: bigger targets for a finger. */
	table.sugTable td, table.sugTable th{
		padding: 6px 4px;
	}
	#msug_sugTable td:nth-last-child(-n+2) img{ /* the for/against buttons, always the last two cells */
		width: 24px;
		height: 24px;
	}
	/* "Mouse over a suggestion" has no mouse to go with it on a phone. */
	#msug_sugInfo_box{
		display: none;
	}
	#sorting div, #filtering div, #grayBoxContent{
		top: 80px;
	}
	div.hsug_landingHero h1{
		font-size: 1.6em;
	}
}
/* The sign-in / sign-up card (msug_authForm.php, msug_chooseUsername.php): an
   email box up top, an "or" divider, then a button per sign-in platform. */
div.msug_authPage{
	max-width: 420px;
	margin: 32px auto 48px auto;
	padding: 0 16px;
}
p.msug_authIntro{
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
	margin: 0 0 20px 0;
}
div.msug_authCard{
	background-color: #fff;
	border: 1px solid #d8dbe2;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(20, 30, 60, 0.08);
	padding: 32px 32px 24px 32px;
	font-size: 14px;
}
div.msug_authCard h2{
	font-size: 24px;
	margin: 0 0 4px 0;
	text-align: center;
}
p.msug_authSubtitle{
	color: #555;
	text-align: center;
	margin: 0 0 24px 0;
}
div.msug_authError{
	background-color: #fdecec;
	border: 1px solid #f1b5b5;
	color: #8a1f1f;
	border-radius: 8px;
	padding: 10px 12px;
	margin: 0 0 16px 0;
	line-height: 1.4;
}
label.msug_authField{
	display: block;
	margin: 0 0 16px 0;
}
label.msug_authField span{
	display: flex;
	justify-content: space-between;
	font-weight: bold;
	margin: 0 0 6px 0;
}
label.msug_authField span a{
	font-weight: normal;
}
label.msug_authField input{
	display: block;
	width: 100%;
	box-sizing: border-box;
	height: 44px;
	padding: 0 12px;
	font-size: 15px;
	font-family: var(--msug-font);
	border: 1px solid #c4c8d0;
	border-radius: 8px;
}
label.msug_authField input:focus{
	outline: none;
	border-color: #24c;
	box-shadow: 0 0 0 3px rgba(34, 68, 204, 0.18);
}
label.msug_authField small{
	display: block;
	color: #666;
	margin: 6px 0 0 0;
}
button.msug_authSubmit{
	display: block;
	width: 100%;
	height: 46px;
	margin: 8px 0 0 0;
	border: 0;
	border-radius: 8px;
	background-color: #24c;
	color: #fff;
	font-size: 15px;
	font-weight: bold;
	font-family: var(--msug-font);
	cursor: pointer;
}
button.msug_authSubmit:hover{background-color: #13a;}
div.msug_authOr{
	display: flex;
	align-items: center;
	gap: 12px;
	color: #777;
	margin: 24px 0;
}
div.msug_authOr::before, div.msug_authOr::after{
	content: '';
	flex: 1;
	border-top: 1px solid #d8dbe2;
}
a.msug_authPlatform, a.msug_authPlatform:visited{
	display: block;
	box-sizing: border-box;
	height: 46px;
	line-height: 44px;
	margin: 0 0 10px 0;
	border: 1px solid #c4c8d0;
	border-radius: 8px;
	color: #222;
	font-size: 15px;
	font-weight: bold;
	text-align: center;
	text-decoration: none;
}
a.msug_authPlatform:hover{background-color: #f4f5f8;}
a.msug_authPlatform.msug_patreonSignin{border-color: #f96854;}
/* The live "is this username free?" line under a username box (msug_username.js). */
span.msug_usernameStatus{
	display: block;
	min-height: 0;
	margin: 6px 0 0 0;
	font-weight: bold;
}
span.msug_usernameOk{color: #1a7f37;}
span.msug_usernameBad{color: #c62828;}
/* "Use seancolombo instead" on msug_chooseUsername.php: a quiet second choice under Continue. */
button.msug_usernameIdea{
	display: block;
	width: 100%;
	margin: 12px 0 0 0;
	padding: 10px;
	background: none;
	border: 1px dashed #c4c8d0;
	border-radius: 8px;
	font-size: 14px;
	font-family: var(--msug-font);
	cursor: pointer;
}
button.msug_usernameIdea:hover{background-color: #f4f5f8;}
p.msug_authSwitch{
	text-align: center;
	margin: 20px 0 8px 0;
}
div.msug_authCard p.msug_legalAgreement{
	text-align: center;
	color: #666;
	margin: 8px 0 0 0;
}
@media (max-width: 480px){
	div.msug_authPage{
		margin-top: 16px;
		padding: 0 8px;
	}
	div.msug_authCard{
		padding: 24px 18px 18px 18px;
	}
}
