/* Import styles for calendar used in date/datetime custom fields */
@import "https://helpspot.csusm.edu/static/js/datetimepicker/css/mobiscroll.jquery.min.css";
@import "https://helpspot.csusm.edu/static/js/popup/css/mobiscroll.jquery.min.css";

/* CSUSM brand font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* ------------------------------------------------------------------ */
/* Base                                                               */
/* ------------------------------------------------------------------ */

body
{
	margin: 0;
	padding: 0;
	overflow-x: hidden; /* keeps the full-width header from adding a sideways scrollbar */
	background: #F2F5F9;
	color: #222222;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

a:link, a:active, a:visited { color: #0062A5; text-decoration: none; }

a:hover { color: #002E5A; text-decoration: underline; text-underline-offset: 3px; }

a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, .button:focus-visible {
	outline: 3px solid #0062A5;
	outline-offset: 2px;
	border-radius: 4px;
}

p { margin: 0 0 12px 0; font-size: 15px; line-height: 1.6; }

h1, h2, h3, h4, h5 { font-family: inherit; }

h1
{
	color: #002E5A;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin: 0 0 18px 0;
}

/* A short steel-blue rule under each page title */
h1::after
{
	content: '';
	display: block;
	width: 44px;
	height: 4px;
	margin-top: 10px;
	border-radius: 2px;
	background: #5B8DBA;
}

h2
{
	color: #002E5A;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	margin: 22px 0 8px 0;
}

h3
{
	color: #002E5A;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	margin: 0 0 4px 0;
}

h4
{
	color: #222222;
	font-size: 15px;
	font-weight: 600;
	margin: 12px 0 4px 0;
}

h5 { color: #47484D; font-size: 14px; font-weight: 600; margin: 8px 0 4px 0; }

img { border: 0; }

hr
{
	border: none;
	border-bottom: 1px solid #C9D3DD;
	height: 1px;
	width: 100%;
	margin: 20px 0;
}

.subheading { margin-bottom: 12px; line-height: 1.4; color: #47484D; }
.bold { font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Layout                                                             */
/* ------------------------------------------------------------------ */

#container
{
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	grid-template-areas:
		"banner  banner"
		"sidebar content"
		"footer  footer";
	column-gap: 28px;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
	text-align: left;
}

/* Header: University Blue, full width, rolling into the page as hills */
#banner
{
	grid-area: banner;
	position: relative;
	background-color: #002E5A;
	box-shadow: 0 0 0 100vmax #002E5A;
	clip-path: inset(0 -100vmax);
	color: #FFFFFF;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-align: left;
	padding: 28px 4px 76px 4px; /* bottom padding leaves room for the hills */
	margin: 0 0 8px 0;
}

#banner::after
{
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 100vw;
	height: 56px;
	transform: translateX(-50%);
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C 220 4 420 4 640 26 S 1080 52 1440 14 L1440 56 L0 56 Z' fill='%230062A5' fill-opacity='.55'/%3E%3Cpath d='M0 40 C 260 18 520 18 780 34 S 1200 46 1440 28 L1440 56 L0 56 Z' fill='%235B8DBA' fill-opacity='.6'/%3E%3Cpath d='M0 48 C 300 30 620 56 920 42 S 1280 32 1440 44 L1440 56 L0 56 Z' fill='%23F2F5F9'/%3E%3C/svg%3E") no-repeat bottom center;
	background-size: 100% 100%;
	pointer-events: none;
}

#banner a:link, #banner a:visited, #banner a:hover { color: #FFFFFF; text-decoration: none; }

#banner.has-custom-logo { padding-top: 22px; line-height: 0; }

.hs-custom-portal-logo
{
	height: 100%;
	max-height: 64px;
	width: auto;
}

/* Sidebar: a floating card that stays in view while you scroll */
#leftSidebar
{
	grid-area: sidebar;
	align-self: start;
	position: sticky;
	top: 20px;
	background: #FFFFFF;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 46, 90, .06), 0 6px 18px rgba(0, 46, 90, .08);
	padding: 14px 12px;
	margin: 0 0 24px 0;
}

/* Content: the main white card */
#content2col
{
	grid-area: content;
	min-width: 0;
	background: #FFFFFF;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(0, 46, 90, .06), 0 6px 18px rgba(0, 46, 90, .08);
	padding: 32px 36px;
	margin: 0 0 24px 0;
	font-size: 15px;
	line-height: 1.6;
}

#content2col li { line-height: 1.6; margin-bottom: 4px; }
#content2col img { max-width: 100%; height: auto; }

/* Footer: a University Blue "search bar" across the bottom */
#footer
{
	grid-area: footer;
	background: #002E5A;
	color: #D6E4F0;
	border-radius: 12px;
	padding: 18px 24px;
	margin: 8px 0 20px 0;
	font-size: 14px;
	text-align: center;
}

#footer a:link, #footer a:visited { color: #FFFFFF; text-decoration: underline; }

#footer strong { color: #FFFFFF; font-weight: 600; }

#footer form div p,
.page-search form div p
{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
}

#footer input[type="text"]
{
	flex: 1 1 260px;
	max-width: 480px;
	background: #FFFFFF;
	border: 1px solid #FFFFFF;
	border-radius: 999px;
	padding: 10px 18px;
	color: #222222;
	font-family: inherit;
	font-size: 15px;
}

#footer select
{
	border-radius: 999px;
	border: 1px solid #FFFFFF;
	padding: 9px 14px;
	font-family: inherit;
	font-size: 14px;
	color: #222222;
	background: #FFFFFF;
}

#footer input[type="submit"]
{
	background: #E9F0F7;
	color: #002E5A;
}

#footer input[type="submit"]:hover
{
	background: #FFFFFF;
	color: #002E5A;
}

#helpspot-link
{
	grid-column: 1 / -1;
	text-align: center;
	font-size: 13px;
	color: #55585E;
	padding: 0 0 30px 0;
}

/* ------------------------------------------------------------------ */
/* Navigation                                                         */
/* ------------------------------------------------------------------ */

.navBar
{
	margin: 0;
	padding: 0 0 10px 0;
	border-bottom: 1px solid #E3EAF1;
}

.navBar li
{
	list-style-type: none;
	margin: 0 0 3px 0;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
}

.navBar a:link, .navBar a:visited
{
	display: block;
	padding: 9px 14px;
	border-radius: 999px;
	color: #0062A5;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

.navBar a:hover
{
	background: #E9F0F7;
	color: #002E5A;
	text-decoration: none;
}

/* Current page: a filled University Blue pill */
.navBar a:link.navOn, .navBar a:visited.navOn, .navBar a:hover.navOn
{
	background: #002E5A;
	color: #FFFFFF;
	font-weight: 600;
}

.subnavBar
{
	margin: 4px 0 8px 14px;
	padding: 0;
}

.subnavBar li
{
	list-style-type: none;
	margin: 0;
	padding: 0;
	font-size: 13px;
	line-height: 18px;
	background: none;
}

.subnavBar a:link, .subnavBar a:visited,
.subnavBar a:link.navOff, .subnavBar a:visited.navOff
{
	display: block;
	padding: 6px 12px;
	border-radius: 999px;
	color: #0062A5;
	font-weight: 400;
	text-decoration: none;
}

.subnavBar a:hover, .subnavBar a:hover.navOff
{
	background: #E9F0F7;
	color: #002E5A;
	text-decoration: none;
}

.subnavBar a:link.navOn, .subnavBar a:visited.navOn, .subnavBar a:hover.navOn
{
	background: #E9F0F7;
	color: #002E5A;
	font-weight: 600;
}

/* Phone number block in the sidebar */
.phonenavBar
{
	margin: 12px 0 0 0;
	padding: 12px 14px 0 14px;
}

.phonenavBar li
{
	list-style-type: none;
	margin: 0 0 6px 0;
	padding: 0;
	color: #002E5A;
	font-size: 14px;
	font-weight: 600;
}

.phoneNum { display: block; color: #222222; font-weight: 400; }

.phonenavBar .subnavBar { margin: 0; }

/* ------------------------------------------------------------------ */
/* Lists, rows, and the knowledge base                                */
/* ------------------------------------------------------------------ */

.page-home h2 { margin-top: 0; }

.rowOn  { background-color: #F2F5F9; padding: 3px; }
.rowOff { background-color: #FFFFFF; padding: 3px; }

.rowOn td, .rowOff td { padding: 12px; border-bottom: 1px solid #E3EAF1; }

.page-kb .rowOn, .page-kb .rowOff
{
	background: #FFFFFF;
	padding: 12px 0;
	border-bottom: 1px solid #E3EAF1;
}

.kbtoc { list-style-type: none; padding-left: 0; margin-left: 0; font-size: 15px; line-height: 1.4; }
.kbtoc li { padding: 3px 0; }
.kbtocpage { list-style-type: none; font-size: 15px; line-height: 1.5; }
.kbhighlight { background-color: #B9D3EA; border-radius: 2px; padding: 0 2px; }
.kbextralist { margin: 3px; list-style-type: none; line-height: 1.6; }

div.datarow { display: block; margin: 10px 0 32px; overflow: auto; padding: 0; }
div.datarow span.left  { float: left;  text-align: left;  width: 49%; }
div.datarow span.right { float: right; text-align: right; width: 49%; }

.nextprev { font-size: 14px; }
.helpful  { padding: 15px; text-align: right; }
.score    { text-align: right; font-weight: 600; padding-right: 10px; }

/* ------------------------------------------------------------------ */
/* Boxes and messages                                                 */
/* ------------------------------------------------------------------ */

.hilite2col
{
	background: #E9F0F7;
	border-radius: 10px;
	width: 100%;
	margin: 0 0 14px 0;
	padding: 4px 0;
}

.hilite2col p { margin: 6px 16px; }

.fieldset
{
	padding: 14px 16px;
	border: 1px solid #C9D3DD;
	border-radius: 10px;
}

legend { color: #002E5A; font-size: 15px; font-weight: 600; padding: 0 6px; }

.feedback_box_error
{
	background: #F5E2E1;
	border: 1px solid #DBB4B2;
	border-radius: 10px;
	color: #A51B12;
	font-weight: 600;
	padding: 12px 16px;
	margin-bottom: 18px;
}

.feedback_box_positive
{
	background: #E9F0F7;
	border: 1px solid #9DB7D2;
	border-radius: 10px;
	color: #002E5A;
	font-weight: 600;
	padding: 12px 16px;
	margin-bottom: 18px;
}

.error, .sending_note { color: #A51B12; }
.required { color: #A51B12; font-weight: 600; }
.sticky { font-size: 12px; font-weight: 600; color: #A51B12; }

pre
{
	font: 14px/1.5 Menlo, Consolas, 'Courier New', monospace;
	background: #F2F5F9;
	border: 1px solid #E3EAF1;
	border-radius: 10px;
	color: #222222;
	overflow: auto;
	width: 90%;
	padding: 1em 1.2em;
}

/* ------------------------------------------------------------------ */
/* Forms                                                              */
/* ------------------------------------------------------------------ */

input, textarea, select { font-family: inherit; font-size: 15px; }

#content2col input[type="text"], #content2col input[type="email"], #content2col input[type="password"], textarea, .requestwrap select
{
	background: #FFFFFF;
	border: 1px solid #7F93A8;
	border-radius: 8px;
	padding: 10px 12px;
	color: #222222;
	margin: 5px 5px 5px 0;
	max-width: 100%;
	box-sizing: border-box;
}

#content2col input[type="text"]:focus, #content2col input[type="email"]:focus, #content2col input[type="password"]:focus, textarea:focus, .requestwrap select:focus
{
	border-color: #0062A5;
	box-shadow: 0 0 0 4px rgba(0, 98, 165, .18);
	outline: none;
}

.requestwrap input[type="checkbox"], .requestwrap input[type="radio"]
{
	width: 18px;
	height: 18px;
	accent-color: #0062A5;
}

/* Pill buttons */
.button, input[type="submit"], input[type="button"], button
{
	display: inline-block;
	background: #0062A5;
	color: #FFFFFF;
	border: none;
	border-radius: 999px;
	padding: 10px 24px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.button:hover, .button:active, input[type="submit"]:hover, input[type="button"]:hover, button:hover
{
	background: #002E5A;
	color: #FFFFFF;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0, 46, 90, .2);
}

a.button:link, a.button:visited { color: #FFFFFF; }

.formbuttondiv { clear: both; margin-top: 24px; padding: 0; }
.formbox { padding-top: 20px; }

.datalabel { color: #002E5A; font-size: 14px; font-weight: 600; line-height: 1.3; }

.captcha_label
{
	color: #222222;
	font-size: 14px;
	border: 1px solid #0062A5;
	border-radius: 8px;
	padding: 4px 10px;
}

.calendar_input
{
	position: relative;
	cursor: pointer;
	padding: 6px 10px 6px 36px;
	border: 1px solid #7F93A8;
	border-radius: 8px;
	background-color: #FFFFFF;
}

.calendar_btn
{
	position: absolute;
	top: 3px;
	left: 6px;
	height: 24px;
	width: 24px;
	background: transparent url(https://helpspot.csusm.edu/portal/images/calendar.png) no-repeat left top;
}

.requestwrap { width: 100%; max-width: 640px; }
.requestwrap .forumoption { display: none; }
.requestwrap div[id*="Custom"] { margin-bottom: 16px; }
.requestpad { padding: 16px 0; }
.requestpad img { max-width: 100%; height: auto; }

.request_summary { display: block; overflow: hidden; word-break: break-all; padding-right: 20px; }
.initsubject { color: #55585E; }
.namedate { color: #0062A5; font-weight: 600; }
.page-request-history td { padding: 10px; vertical-align: top; }

.page-search form input[type="submit"] { margin: 5px 5px 5px 0; }

/* ------------------------------------------------------------------ */
/* Forums and tags                                                    */
/* ------------------------------------------------------------------ */

.forumlabel { color: #0062A5; font-weight: 600; }
.forumtable { width: 100%; font-size: 14px; margin-bottom: 24px; }
.forumtable td { padding: 10px; }
.forumpost { padding: 3px 3px 3px 14px; }

.forumoption
{
	color: #002E5A;
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 4px 0;
	padding: 10px 0 6px;
	border-bottom: 1px solid #E3EAF1;
	width: 100%;
}

.forumform { padding-top: 20px; clear: both; width: 100%; max-width: 640px; }

.tag-cloud-homepage .tag-cloud-td { padding: 0; }
.tag-block-home { background: #F2F5F9; border-radius: 10px; padding: 12px; }
.tag-block-page { margin: 0; padding-left: 42px; }
.tag-block a { display: inline-block; height: 28px; line-height: 28px; }
.tag-sep { font-size: 12px; color: #55585E; }
.tag-table { width: 100%; font-size: 14px; margin: 15px 0 20px 0; border-bottom: 1px solid #E3EAF1; }
.tag-table td { padding: 8px; }
.tag-header { margin-bottom: 30px; }

.file-extension { display: inline-block; margin: 5px 0; }
.file-name { display: inline-block; padding: 0 10px; margin-bottom: 5px; }

/* ------------------------------------------------------------------ */
/* Small screens: stack the sidebar above the content                 */
/* ------------------------------------------------------------------ */

@media (max-width: 780px)
{
	#container
	{
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"banner"
			"sidebar"
			"content"
			"footer";
		padding: 0 14px;
	}

	#leftSidebar { position: static; }
	#content2col { padding: 22px 20px; }
	#banner { padding-bottom: 64px; }
	h1 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce)
{
	.navBar a, .button, input[type="submit"], input[type="button"], button { transition: none; }
	.button:hover, input[type="submit"]:hover, input[type="button"]:hover, button:hover { transform: none; }
}