/****************************************/
/* Bootstrap 3 metrics on Bootstrap 5, so that the theme written for
/* Bootstrap 3 keeps its look: base size 14px, typography, 30px gutters,
/* container full width below 992px, 970px / 1170px above.
/****************************************/
html{
	font-size:14px; /* 1rem = 14px, the Bootstrap 3 base size */
}
body{
	line-height:1.42857143;
}

a{
	color:#337ab7;
	text-decoration:none;
}
a:hover,
a:focus{
	color:#23527c;
	text-decoration:underline;
}
/* Bootstrap 3 removed the underline on these components */
.nav-link:hover,
.nav-link:focus,
.dropdown-item:hover,
.dropdown-item:focus,
.navbar-brand:hover,
.navbar-brand:focus,
.btn:hover,
.btn:focus{
	text-decoration:none;
}

h1, h2, h3, h4, h5, h6{
	font-weight:500;
	line-height:1.1;
}
h1, h2, h3{
	margin-top:20px;
	margin-bottom:10px;
}
h4, h5, h6{
	margin-top:10px;
	margin-bottom:10px;
}
h1{ font-size:36px; }
h2{ font-size:30px; }
h3{ font-size:24px; }
h4{ font-size:18px; }
h5{ font-size:14px; }
h6{ font-size:12px; }

p{
	margin:0 0 10px;
}
ul, ol{
	margin-top:0;
	margin-bottom:10px;
	padding-left:40px; /* the browser default kept by Bootstrap 3 (Bootstrap 5: 2rem) */
}

/* grid */
.container,
.row{
	--bs-gutter-x:30px;
}
.container{
	max-width:none;
}
@media (min-width: 992px){
	.container{
		max-width:970px;
	}
}
@media (min-width: 1200px){
	.container{
		max-width:1170px;
	}
}

/* carousel: Bootstrap 3 controls (Font Awesome chevrons in place of the
   glyphicons) and indicators */
.carousel-control-prev,
.carousel-control-next{
	display:block;
	width:15%;
	font-size:20px;
	color:#fff;
	text-align:center;
	text-shadow:0 1px 2px rgba(0, 0, 0, 0.6);
	opacity:0.5;
}
.carousel-control-prev:hover,
.carousel-control-prev:focus,
.carousel-control-next:hover,
.carousel-control-next:focus{
	color:#fff;
	opacity:0.9;
}
.carousel-control-prev .fa,
.carousel-control-next .fa{
	position:absolute;
	top:50%;
	z-index:5;
	display:inline-block;
	width:20px;
	height:20px;
	margin-top:-10px;
	line-height:1;
}
.carousel-control-prev .fa{
	left:50%;
	margin-left:-10px;
}
.carousel-control-next .fa{
	right:50%;
	margin-right:-10px;
}
.carousel-indicators{
	right:auto;
	bottom:10px;
	left:50%;
	z-index:15;
	width:60%;
	margin:0 0 0 -30%;
	align-items:flex-end;
}
.carousel-indicators [data-bs-target]{
	box-sizing:border-box;
	width:10px;
	height:10px;
	margin:1px 3px; /* 1px + half the white space between the Bootstrap 3 inline items */
	padding:0;
	text-indent:-999px;
	background-color:transparent;
	border:1px solid #fff;
	border-radius:10px;
	opacity:1;
	transition:none;
}
/* above the background of bootstrap-overload.css, as in Bootstrap 3 */
.carousel-indicators [data-bs-target].active{
	width:12px;
	height:12px;
	margin:0 2px;
	background-color:#fff;
}
@media (min-width: 768px){
	.carousel-control-prev .fa,
	.carousel-control-next .fa{
		width:30px;
		height:30px;
		margin-top:-10px;
		font-size:30px;
	}
	.carousel-indicators{
		bottom:20px;
	}
}

/* buttons: Bootstrap 3 metrics and btn-default (no longer in Bootstrap 5) */
.btn{
	padding:6px 12px;
	line-height:1.42857143;
}
.btn-sm{
	padding:5px 10px;
	font-size:12px;
	line-height:1.5;
}
.btn-default{
	color:#333;
	background-color:#fff;
	border-color:#ccc;
}
.btn-default:hover,
.btn-default:focus,
.btn-default:active{
	color:#333;
	background-color:#e6e6e6;
	border-color:#adadad;
}

/* tables: text in the page colour (Bootstrap 5: black), borders on the
   cells only as in Bootstrap 3 (Bootstrap 5 borders the rows, which then
   take the text colour where the theme removes the cell borders) */
.table{
	--bs-table-border-color:#ddd;
	margin-bottom:20px;
	color:inherit;
}
.table > :not(caption) > * > *{
	padding:8px;
	line-height:1.42857143;
	color:inherit;
}
.table-bordered{
	border:1px solid var(--bs-table-border-color);
}
.table-bordered > :not(caption) > *{
	border-width:0;
}
.table-bordered > :not(caption) > * > *{
	border-width:1px;
}

/* modals: 600px wide from 768px */
@media (min-width: 768px){
	.modal-dialog{
		max-width:600px;
		margin:30px auto;
	}
}

/* thumbnails (team, references): the Bootstrap 3 component, removed in Bootstrap 5 */
.thumbnail{
	display:block;
	padding:4px;
	margin-bottom:20px;
	line-height:1.42857143;
}
.thumbnail > img{
	display:block;
	max-width:100%;
	height:auto;
	margin-right:auto;
	margin-left:auto;
}
.thumbnail .caption{
	padding:9px;
	color:#333;
}

/* forms: Bootstrap 3 labels, fields and error state (has-error, help-block) */
label{
	display:inline-block;
	max-width:100%;
	margin-bottom:5px;
	font-weight:bold;
}
.form-group{
	margin-bottom:15px;
}
.form-control,
.form-select{
	height:34px;
	padding:6px 12px;
	font-size:14px;
	line-height:1.42857143;
	color:#555;
	border-color:#ccc;
	box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
textarea.form-control{
	height:auto;
}
.help-block{
	display:block;
	margin-top:5px;
	margin-bottom:10px;
	color:#737373;
}
.has-error label,
.has-error .help-block{
	color:#a94442;
}
.has-error .form-control,
.has-error .form-select{
	border-color:#a94442;
	box-shadow:inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
