/* News */
/* -------------------------------------------------------------------------------------------- */

#news li {
	padding-left: 1em;
	border-left: 4px solid var(--mid-gray);	/* TODO: 0.3em? */
	border-radius: var(--rounded-edge);
	margin-bottom: 2em;
}

/* Calendars  */
/* -------------------------------------------------------------------------------------------- */

#calendar_container {
	display: flex
}

#calendar_holder {
	width: 100%;
	margin-left: 1em;
	background: var(--google-cal-color);
	height: 600px; /* TODO: 550px? */
	position: relative;
}

#loading_icon {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	transform: translate(-50%, -50%);
	color: white;
	background: rgba(0, 0, 0, 0.7);
	border-radius: 1rem;
	padding: 1rem;
}

#loading_icon > * {
	font-size: 5em;
}

#calendar_viewer {
	width: 100%;
	height: 100%;
	border: none;
}

#calendar_types {
	height: 100%;
	display: grid;
	grid-template-rows: repeat(auto-fit, minmax(5em, 1fr));
	grid-template-columns: 1fr;
	border-radius: var(--rounded-edge);
}

#calendar_types li {
	display: flex;
	flex-direction: column;
	justify-content: center;
	cursor: pointer;
	color: var(--darker-white);
	background: var(--mid-gray);
	font-size: 1.15em;
	font-weight: bold;
	text-align: center;
	padding: 0.5em;
	transition: all 0.2s ease-out;
}

#calendar_types li:first-child {
	border-top-left-radius: var(--rounded-edge);
	border-top-right-radius: var(--rounded-edge);
}

#calendar_types li:last-child {
	border-bottom-left-radius: var(--rounded-edge);
	border-bottom-right-radius: var(--rounded-edge);
}

#calendar_types li:hover {
	color: var(--off-white);
	background: var(--light-gray);
}

#calendar_types li.selected_calender {
	color: var(--off-white);
	text-shadow: white 1px 0 10px;
}

/* Strategic Pillars  */
/* -------------------------------------------------------------------------------------------- */

.action_steps::before {
	content: "Action Steps";
	font-weight: bold;
}

/* Justices and Staff */
/* -------------------------------------------------------------------------------------------- */

.personnel_grid {
	display: grid;
	grid-gap: 1.5em;
	gap: 1.5em;
}

.personnel_card {
	overflow: hidden;
	border-radius: var(--rounded-edge);
	display: flex;
	flex-direction: column;
}

.personnel_card img {
	object-fit: cover;
	object-position: top center;
}

/* Justices */
/* -------------------------------------------------------------------------------------------- */

#justice_grid {
	grid-template-columns: 3fr 7fr;
	align-items: start;
}

#justice_grid img {
	width: 100%;
}

.justice_bio {
	font-size: 1.1em;
}

/* Staff */
/* -------------------------------------------------------------------------------------------- */

.staff_grid {
	grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
	grid-auto-rows: auto;
}

.staff_picture {
	height: 275px;
	clip-path: circle(80% at 35% 25%);
}

.staff_card {
	/*--efx-bezier: cubic-bezier(0.15, 0.7, 0.5, 1.5);*/

	text-align: center;
	background: var(--mid-gray);
	transform-origin: left;
	transition:
		all 0.2s ease-out,
		opacity   0.7s var(--menu-bezier),
		transform 0.5s var(--menu-bezier);
}

.staff_card:hover {
	text-shadow: white 1px 0 10px;
	box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.5);
}

.staff_card div {
	font-size: 1.65em;
	color: var(--off-white);
	padding: 1em 0.75em;
	line-height: 1.3;
}

.staff_card small {
	font-size: 0.7em;
	font-weight: 300;
}

/* Employment */
/* -------------------------------------------------------------------------------------------- */

#job_grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 1em;
	gap: 1em;
}

@media screen and (max-width: 768px) {
	#job_grid {
		grid-template-columns: 1fr;
	}
}

.job_card {
	width: 100%;
	display: flex;
	background: var(--mid-gray);
	color: var(--darker-white);
	border-radius: var(--rounded-edge);
	padding: 1em;
	transition: all 0.2s ease-out;
	position: relative;
}

.job_card:hover {
	box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.5);
	color: var(--off-white);
	text-decoration: none;
}

.job_title {
	color: var(--off-white);
	font-size: 1.7em;
}

.job_info {
	flex-grow: 2;
}

.view_full_job_info {
	align-self: center;
}

/* Gallery */
/* -------------------------------------------------------------------------------------------- */

#gallery {
	display: flex;
}

#tl_marker {
	position: absolute;
	left: 50%;
	transform: translate(-50%);
	grid-column: 2;
	grid-row: span 6;
	height: 100%;
	width: 2px;
	background: linear-gradient(to bottom, var(--light-gray), transparent);
}

#gallery_year_selection {
	display: grid;
	grid-template: repeat(6, 1fr) / 1fr 1fr;
	align-items: center;
	justify-items: center;
	font-size: 1.3em;
	margin-right: 1em;
	position: relative;
}

#gallery_year_selection a {
	display: block;
	color: var(--light-gray);
	transition: all 0.2s ease-in-out;
}

#gallery_year_selection a.selected_year {
	color: var(--dark-green);
	transform: scale(1.3);
}

#gallery_year_selection > svg {
	color: var(--light-gray);
	z-index: 10;
}

#picture_gallery {
	display: grid;
	grid-gap: 1em;
	gap: 1em;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	grid-auto-rows: 100px;
	grid-auto-flow: dense;
	/*padding-top: 1em;*/
	flex-grow: 2;
}

#picture_gallery img {
    width: 100%;
    height: 100%;
	object-fit: cover;
}

.horizontal {
	grid-column: span 2;
}

.vertical {
	grid-row: span 2;
}

.big {
	grid-area: span 2 / span 2;
}

/* Org Chart */
/* -------------------------------------------------------------------------------------------- */

#org_chart {
	width: 100%;
	height: 850px;
}

/* Bar Main */
/* -------------------------------------------------------------------------------------------- */

#bar_info {
	display: grid;
	grid-gap: 1.5em;
	gap: 1.5em;
	grid-template: "info info" auto "exams resources" auto / 7fr 3fr;
}

#general_info {
	grid-area: info;
	font-size: 1.1em;
	display: flex;
	align-items: center;
}

#exam_info_icon {
	color: var(--mid-gray);
	margin-right: 1em;
}

#next_exam_notice {
	font-size: 1.1em;
}

#bar_resources {
	grid-area: resources;
	justify-self: center;
}

#resource_links {
	--bar-resource-columns: 1;

	display: grid;
	grid-template-columns: repeat(var(--bar-resource-columns), 1fr);
	text-align: center;
	background: var(--mid-gray);
	border-radius: var(--rounded-edge);
}

#resource_links a {
	display: block;
	font-size: 1.2em;
	font-weight: bold;
	padding: 1em;
	transition: all 0.2s ease-out;
	color: var(--darker-white);
}

#resource_links a:hover {
	text-decoration: none;
	color: var(--off-white);
	transform: scale(1.1);
}

#exams {
	grid-area: exams;
	margin: 0 auto;
}

.back_button {
	font-size: 1.3em;
}

@media screen and (max-width: 768px) {
	#bar_info {
		grid-template: "info" auto "resources" auto "exams" auto / 1fr;
	}

	#resource_links {
		--bar-resource-columns: 3;
	}
}

@media screen and (max-width: 500px) {
	#resource_links {
		--bar-resource-columns: 2;
	}
}

/* Bar Entry Requirements */
/* -------------------------------------------------------------------------------------------- */

#toc_header {
	display: flex;
	justify-content: space-between;
}

#bar_entry_requirements {
	counter-reset: req-headings;
}

#bar_entry_requirements section {
	margin-bottom: 2em;
}

#bar_entry_requirements > .toc {
	float: left;
	margin-right: 1em;
	width: 40%;
}

#bar_entry_requirements h2:not(.no_header_count)::before {
	content: counter(req-headings, upper-roman) ". ";
	counter-increment: req-headings;
}

#exam_sections {
	width: 40%;
	float: right;
	margin-left: 1em;
}

@media screen and (max-width: 600px) {
	#bar_entry_requirements > .toc {
		float: none;
		width: 100%;
	}
}

/* Bar Members */
/* -------------------------------------------------------------------------------------------- */

#bar_member_list {
	list-style-position: inside;
	columns: 4;
}

#bar_member_list li {
	padding: 0.1em;
}

@media screen and (max-width: 768px) {
	#bar_member_list {
		columns: 3;
	}
}

@media screen and (max-width: 600px) {
	#bar_member_list {
		columns: 2;
	}
}

/* Contact Info */
/* -------------------------------------------------------------------------------------------- */

#contact_info {
	display: grid;
	grid-template: repeat(2, 1fr) / repeat(2, max-content);
	grid-gap: 2em 5em;
	gap: 2em 5em;
}

@media screen and (max-width: 768px) {
	#contact_info {
		grid-template-columns: 1fr;
	}
}

/* Reports */
/* -------------------------------------------------------------------------------------------- */

.reports_list {
	font-size: 1.1em;
	margin-bottom: 1em;
}
