/* =========================================================
   GLOBAL
   ========================================================= */

body {
	font-family: 'Roboto Condensed', 'Helvetica Neue', Arial, sans-serif;
	background: #f8f9fa;
	padding-top: 0;
	overflow-x: clip;
}

html, body {
	overflow-x: clip;
	max-width: 100%;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
}

/* =========================================================
   OFF-CANVAS FLYOUT MENU
   ========================================================= */

#flyout {
	position: fixed;
	top: 0;
	left: -300px;
	width: 300px;
	height: 100%;
	background: #212529;
	color: #fff;
	z-index: 1050;
	transition: left .3s ease;
	overflow-y: auto;
	box-shadow: 2px 0 12px rgba(0, 0, 0, .3);
}

#flyout.open {
	left: 0;
}

#flyout .nav-link {
	color: rgba(255, 255, 255, .85);
	font-size: 1.05rem;
	padding: .8rem 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

#flyout .nav-link:hover {
	color: #fff;
	background: rgba(255, 255, 255, .06);
}

#flyout .close-menu {
	position: absolute;
	padding-top: .3rem;
	top: .5rem;
	right: .75rem;
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	background: none;
	border: none;
}

/* =========================================================
   SCRIM
   ========================================================= */

#scrim {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, .5);
	z-index: 1049;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease;
}

#scrim.show {
	opacity: 1;
	visibility: visible;
}

/* =========================================================
   SITE HEADER
   ========================================================= */

.site-header {
	background: linear-gradient(to right, #6AC07B, #2C68B2);
	border-bottom: 1px solid #dee2e6;
	transition: all .25s ease;
	position: relative;
}

.site-header .navbar {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	transition: padding .25s ease;
}

/* Sticky / shrunk navigation */

.site-header.is-sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1030;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	border-bottom: 1px solid #dee2e6;
}

.site-header.is-sticky .navbar {
	padding-top: .5rem;
	padding-bottom: .5rem;
}

.site-header.is-sticky .navbar-brand img {
	max-height: 40px;
}

.navbar-brand img {
	max-height: 80px;
	width: auto;
	transition: max-height .25s ease;
}

.brand-center {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

.menu-btn {
	border: none;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	color: #ffffff;
	padding: .25rem .5rem;
	cursor: pointer;
}

.menu-btn:hover {
	color: #000;
}

/* White button */

.btn-white {
	background-color: #fff;
	border: 1px solid #fff;
	color: #2B68B2;
}

.btn-white:hover {
	background-color: #f1f3f5;
	border-color: #f1f3f5;
	color: #2B68B2;
}

/* Existing header JavaScript class */

body.has-sticky-header {
	padding-top: 0;
}

@media (max-width: 767.98px) {
	.site-header .col-4 {
		flex: 0 0 auto;
		width: auto;
		max-width: none;
		padding-left: 0;
		padding-right: 0;
		white-space: nowrap;
	}
	.brand-center {
		position: static !important;
		transform: none !important;
	}
}

@media (max-width: 575.98px) {
	.navbar-brand img {
		max-height: 44px;
	}
}

/* =========================================================
   BOTTOM STRIP
   ========================================================= */

.site-strip {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1040;
	background: #e9ecef;
	border-top: 1px solid #dee2e6;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, .1);
	display: none;
}

.site-strip.show {
	display: block;
}

.site-strip .strip-toggle {
	background: none;
	border: 1px solid #ced4da;
	background-color: #e9ecef;
	font-size: 1rem;
	color: #6c757d;
	line-height: 1;
	padding: .2rem .5rem;
	top: -19px;
	right: 1rem;
	border-radius: .25rem .25rem 0 0;
	border-bottom: none;
	z-index: 1;
}

.site-strip .strip-toggle:hover {
	color: #343a40;
	border-color: #adb5bd;
}

.site-strip.collapsed {
	border-top: none;
	box-shadow: none;
}

.site-strip.collapsed .strip-slot {
	display: none;
}

.site-strip.collapsed .container-fluid {
	padding-top: 0;
	padding-bottom: 0;
}

body.has-strip {
	padding-bottom: 115px;
}

.strip-slot {
	background: #fff;
	border: 1px dashed #adb5bd;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 90px;
	color: #adb5bd;
	font-size: .8rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.strip-slot img {
	max-width: 100%;
	height: auto;
}

/* Full-bleed banner locked inside a .container */
.container .strip-slot {
	width: 100vw;                   /* span the whole viewport */
	margin-left: calc(50% - 50vw);  /* pull it left to edge of screen */
	margin-right: calc(50% - 50vw);
}

/* =========================================================
   CONTENT
   ========================================================= */

.content-block {
	background: #fff;
	border: 1px solid #dee2e6;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.content-wrap {
	padding-top: 20px;
}

/* =========================================================
   UNIVERSITY LIST
   ========================================================= */

.table td {
	padding: 0;
}

.table img {
	object-fit: cover;
}

div.rank {
	background-color: #FC2E43;
	color: #fff;
	padding: 10px;
	border-radius: 5px;
}

/* =========================================================
   RANKING TABLE
   ========================================================= */

.ranking-table-wrapper {
	margin: 30px 0;
}

/* Table title */

.ranking-table-title {
	background-color: #343a40;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-align: left;
	padding: 12px 15px;
}

/* Horizontal scrolling container. Only horizontal scrolling is permitted. */

.ranking-table-scroll {
	width: 100%;
	overflow-x: auto;
	overflow-y: visible;
	-webkit-overflow-scrolling: touch;
}

.ranking-table {
	min-width: 0 !important;
	width: 100%;
	margin-bottom: 0;
	font-size: 14px;
	border-collapse: separate;
	border-spacing: 0;
}

/* =========================================================
   RANKING TABLE HEADER
   ========================================================= */

/* The real header is NOT vertically sticky; the JavaScript creates the fixed header. */

.ranking-table .table-head th {
	background-color: #f1f1f1;
	color: #212529;
	font-size: 12px;
	font-weight: 700;
	text-align: left;
	vertical-align: middle;
	line-height: 1.25;
	padding: 10px 12px;
	white-space: nowrap;
	border-top: 0;
	border-bottom: 1px solid #dee2e6;
}

.ranking-table .table-head .sticky-institution {
	text-align: left;
}

/* =========================================================
   RANKING TABLE DATA
   ========================================================= */

.ranking-table td {
	text-align: left;
	vertical-align: middle;
	white-space: nowrap;
	padding: 10px 12px;
	border-top: 1px solid #dee2e6;
}


/* =========================================================
   STICKY UNIVERSITY COLUMN
   ========================================================= */

.ranking-table .sticky-university {
	position: sticky;
	left: 0;
	width: 260px;
	min-width: 260px;
	max-width: 260px;
	text-align: left;
	background-color: #fff;
	z-index: 5;
	box-shadow: 4px 0 6px -5px rgba(0, 0, 0, .5);
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.ranking-table thead .sticky-university {
	background-color: #f1f1f1;
	z-index: 6;
}

/* Alternating rows */

.ranking-table tbody tr:nth-child(even) .sticky-university {
	background-color: #f8f9fa;
}

/* Hover */

.ranking-table tbody tr:hover .sticky-university {
	background-color: #e9ecef;
}

/* =========================================================
   STICKY INSTITUTION COLUMN
   ========================================================= */

.ranking-table .sticky-institution {
	position: sticky;
	left: 0;
	width: 240px;
	min-width: 240px;
	max-width: 240px;
	text-align: left;
	background-color: #fff;
	z-index: 5;
	box-shadow: 4px 0 6px -5px rgba(0, 0, 0, .5);
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.ranking-table thead .sticky-institution {
	background-color: #f1f1f1;
	z-index: 6;
}

.ranking-table tbody tr:nth-child(even) .sticky-institution {
	background-color: #f8f9fa;
}

.ranking-table tbody tr:hover .sticky-institution {
	background-color: #e9ecef;
}

.ranking-table tbody tr:nth-child(even) td:not(.sticky-institution) {
	background-color: #f8f9fa;
}

.ranking-table tbody tr:hover td:not(.sticky-institution) {
	background-color: #e9ecef;
}

/* =========================================================
   JAVASCRIPT FIXED TABLE HEADER
   ========================================================= */

.ranking-table-fixed-header {
	position: fixed;
	display: none;
	z-index: 1029;
	background-color: #f1f1f1;
	overflow: hidden;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .15);
	box-sizing: border-box;
}

/* Fixed University header. Remains stationary during horizontal scrolling. */

.ranking-table-fixed-university {
	position: absolute;
	left: 0;
	top: 0;
	box-sizing: border-box;
	background-color: #f1f1f1;
	color: #212529;
	font-size: 12px;
	font-weight: 700;
	text-align: left;
	vertical-align: middle;
	line-height: 1.25;
	padding: 10px 12px;
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
	border-bottom: 1px solid #dee2e6;
	z-index: 20;
	box-shadow: 4px 0 6px -5px rgba(0, 0, 0, .5);
}

/* Horizontally scrolling section of fixed header. */

.ranking-table-fixed-scroll {
	position: absolute;
	top: 0;
	right: 0;
	overflow: hidden;
	box-sizing: border-box;
}

/* Inner fixed table. */

.ranking-table-fixed-inner {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	box-sizing: border-box;
}

/* Fixed header cells. */

.ranking-table-fixed-inner th {
	box-sizing: border-box;
	background-color: #f1f1f1;
	color: #212529;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	vertical-align: middle;
	line-height: 1.25;
	padding: 10px 12px;
	white-space: nowrap;
	border: 0;
	border-bottom: 1px solid #dee2e6;
}

/* Category row */

.category-row td {
	background-color: #545d67 !important;
	font-weight: 700;
	font-size: 13px;
	text-align: left;
	padding: 8px 12px;
	border-bottom: 2px solid #dee2e6;
	color: #fff;
	letter-spacing: 0.03em;
}

/* Rank cell */

.rank-cell {
	font-weight: 700;
	color: #6c757d;
}

/* Top institution highlight */

tr.top-institution td {
	background-color: #fff5f5 !important;
}

tr.top-institution .sticky-institution {
	background-color: #fff5f5 !important;
}

tr.top-institution:hover td,
tr.top-institution:hover .sticky-institution {
	background-color: #fee !important;
}

/* Value styling */

.val-positive {
	color: #28a745;
	font-weight: 600;
}

.val-negative {
	color: #dc3545;
	font-weight: 600;
}

/* Blue borders */

.table-container {
	border-top: 15px solid #00589C;
	border-bottom: 8px solid #00589C;
	background-color: #fff;
}

/* Notes */

.cil-notes {
	font-size: 0.85em;
	color: #6c757d;
	padding: 10px 15px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 767.98px) {
	.ranking-table {
		min-width: 1000px;
	}

	/* University/institution column: 165px instead of 260/240px */

	.ranking-table .sticky-university {
		width: 165px;
		min-width: 165px;
		max-width: 165px;
		white-space: normal;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	.ranking-table .sticky-institution {
		width: 165px;
		min-width: 165px;
		max-width: 165px;
	}

	/* Allow headers to wrap. */

	.ranking-table .table-head th {
		white-space: normal;
		font-size: 11px;
		padding: 8px;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	/* Allow data to wrap. */

	.ranking-table td {
		white-space: normal;
		word-wrap: break-word;
		overflow-wrap: break-word;
		padding: 8px;
	}

	/* Fixed University header must also wrap. */

	.ranking-table-fixed-university {
		white-space: normal;
		word-wrap: break-word;
		overflow-wrap: break-word;
		padding: 8px;
	}

	/* Fixed scrolling headers can wrap. */

	.ranking-table-fixed-inner th {
		white-space: normal;
		font-size: 11px;
		padding: 8px;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	.sub-menu.is-sticky {
		top: 65px !important;
	}
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575.98px) {
	.ranking-table {
		min-width: 900px;
	}

	/* University column: 150px on phones. */

	.ranking-table .sticky-university {
		width: 150px;
		min-width: 150px;
		max-width: 150px;
		white-space: normal;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	.ranking-table .table-head th {
		white-space: normal;
		font-size: 10px;
		padding: 7px 6px;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}

	.ranking-table td {
		white-space: normal;
		word-wrap: break-word;
		overflow-wrap: break-word;
		padding: 7px 6px;
	}

	.ranking-table-fixed-university {
		white-space: normal;
		word-wrap: break-word;
		overflow-wrap: break-word;
		font-size: 10px;
		padding: 7px 6px;
	}

	.ranking-table-fixed-inner th {
		white-space: normal;
		font-size: 10px;
		padding: 7px 6px;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
}

/* =========================================================
   BACK TO TOP
   ========================================================= */

.sf-back-to-top {
	background-color: #50A1CB;
	color: white;
	display: none;
	z-index: 2000;
	position: fixed;
	right: 20px;
	bottom: 130px;
	width: 50px;
	height: 50px;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-border-radius: 50%;
	border-radius: 50%;
}

a.sf-back-to-top {
	font-weight: 600;
	letter-spacing: 2px;
	font-size: 12px;
	text-transform: uppercase;
	text-align: center;
	line-height: 1.6;
	padding-left: 2px;
	padding-top: 4px;
}

a.sf-back-to-top:hover,
a.sf-back-to-top:active {
	color: #f0f0f0;
	text-decoration: none;
}

a.sf-back-to-top .arrow:before {
	content: "\e02d";
	font-family: 'squarespace-ui-font';
	font-style: normal;
	font-weight: 600;
	font-size: 18px;
	line-height: 1;
	speak: none;
	-webkit-font-smoothing: antialiased;
	text-align: center;
	display: block;
	vertical-align: middle;
	transform: rotate(-90deg);
	-webkit-transform: rotate(-90deg);
	-moz-transform: rotate(-90deg);
	-ms-transform: rotate(-90deg);
	-o-transform: rotate(-90deg);
	cursor: pointer;
	margin-left: -4px;
}

/* =========================================================
   RELATED CONTENT CARDS
   ========================================================= */

.related-card .card {
	position: relative;
	border: 1px solid #dee2e6;
	border-radius: .25rem;
	overflow: hidden;
}

.related-card .card-title {
	margin-bottom: 0;
	font-size: 1.05rem;
}

.related-card .card-title a {
	color: #212529;
}

.related-card .card-title a:hover {
	color: #2B68B2;
	text-decoration: none;
}

/* Force image to fill the full image space */
.related-card .card-img-wrap {
	position: relative;
	width: 100%;
	padding-top: 75%; /* 4:3 crop */
	overflow: hidden;
}

.related-card .card-img-wrap img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-card .card-body {
	padding: .75rem 1rem;
}

.related-card .card-kicker {
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #2967B2;
	margin-bottom: .25rem;
}

/* =========================================================
   POPOVER / SUBMENU / MISC
   ========================================================= */

.popover {
	max-width: 100%;
}

#submenu .bootstrap-select button {
	padding-top: 0;
	padding-bottom: 0;
	margin: 5px 0;
}

.sub-menu.is-sticky {
	position: sticky;
	top: 49px;
	z-index: 1025;
}

.img-attribution {
	position: absolute;
	bottom: 0;
	background-color: rgb(255 255 255 / 80%);
	color: #000;
	font-size: 0.8em;
	padding: 0 0.2em;
	max-width: 100%;
	overflow-x: hidden;
}

.ranking-hidden {
	display: none;
}

.top-univ h5 {
	color: #dc3545;
}


td.rp-3 {
	text-align: right;
	padding-right: clamp(10px, 3vw, 30px);
}

td.rank {
	width: 1%;
	white-space: nowrap;
	text-align: right;
	padding-right: clamp(50px, 4vw, 100px);
}


.submenu-items a.active {
	color: #dc3545 !important;
}

a.nav-link.active {
	color: #dc3545 !important;
}

.table-wrap td { 
	white-space: normal;
}


.bootstrap-select button { background-color: #fff; }

