/* ==========================================================================================
   CONTENT area, part 1: shared hero/button helpers, People directory, Professional profile.
   Loaded after the old theme's app.css (assets/theme/css/app.css). Class names alc-* are ours; .hero/.breadcrumbs/.social-links/.main-content/.row/.column come from the old theme.
   ========================================================================================== */

/* ---- shared: hero band ---------------------------------------------------------------- */
/* Safety net: app.css points the share icons at ../../assets/img/..., which does not exist in the plugin (assets/theme/img/...). Remove when the base fix is in. */
.social-links li.facebook a { background-image: url(../../theme/img/social-icons/facebook.png); }
.social-links li.twitter a { background-image: url(../../theme/img/social-icons/square-x-twitter-white.png); }
.social-links li.linkedin a { background-image: url(../../theme/img/social-icons/linkedin.png); }
.social-links li.email a { background-image: url(../../theme/img/social-icons/email.png); }
.social-links li.print a { background-image: url(../../theme/img/social-icons/print.png); }
.social-links li.share-label { width: auto; margin-left: 0; margin-top: 0; font-size: 0.75rem; vertical-align: top; }
.hero .social-links.social-hero .share-label { color: #fff; }
.social-links li a { background-repeat: no-repeat; }
.alc-hero .social-links li a:focus-visible,
.alc-hero .breadcrumbs a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* the title of a hero that is not the H1 (profile pages: the person's name is the H1) looks exactly like the old H1 */
.hero .alc-hero__title {
	font: 400 3rem / 3.375rem Roboto, Arial, sans-serif;
	color: #fff;
	margin: 0 0 1rem;
	width: auto;
	padding: 0;
}
@media screen and (max-width: 39.9375em) {
	.hero .alc-hero__title { font-size: 2.625rem; line-height: 2.4375rem; }
}
.hero .alc-hero__text { color: #fff; }
.hero h1 span { color: inherit; }
.hero .date-container { position: relative; color: #fff; font-size: 0.875rem; line-height: 1.25rem; margin-top: -1.5rem; padding-bottom: 1.25rem; }
.hero .date-container .date-title,
.hero .date-container .date-text { color: #fff; }
.alc-hero--solid .row { min-height: inherit; }
@media screen and (max-width: 39.9375em) {
	/* the old CSS shifts the hero 4rem down on phones (it overlaps the next block): keep the date line out of the covered strip */
	.alc-hero--solid .row { padding-bottom: 4rem; }
}
.hero .text h1 { margin-bottom: 1rem; }
/* the Underscores style.css gives .entry-content a 1.5em top margin: our blocks set their own top padding instead */
.alc-people .entry-content.row,
.alc-profile-wrap .entry-content.row,
.alc-news .entry-content.row,
.alc-lib-wrap .entry-content.row,
.alc-pub-wrap .entry-content.row,
.alc-article .entry-content.row { margin-top: 0; }
/* the old CSS shifts the hero 1.5rem (tablet) / 4rem (phone) down with position:relative, so it overlaps the start of the next block: our content blocks start below it */
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
	.alc-people .entry-content.row,
	.alc-profile-wrap .entry-content.row,
	.alc-news .entry-content.row,
	.alc-lib-wrap .entry-content.row,
	.alc-pub-wrap .entry-content.row,
	.alc-article .entry-content.row { margin-top: 1.5rem; }
}

/* buttons used by the profile/library/publication pages (old WPBakery buttons) */
.alc-btn-red,
.main-content a.alc-btn-red {
	display: inline-block;
	background: #ab0e1e;
	border: 2px solid #ab0e1e;
	border-radius: 4px;
	color: #fff;
	font: 500 0.875rem / 1.1875rem Roboto, Arial, sans-serif;
	padding: 12px 20px;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}
.alc-btn-red:hover,
.alc-btn-red:focus,
.main-content a.alc-btn-red:hover,
.main-content a.alc-btn-red:focus { background: #fff; color: #ab0e1e; text-decoration: none; }
.alc-btn-grey,
.main-content a.alc-btn-grey {
	display: inline-block;
	background: #ebebeb;
	color: #555;
	font: 400 1.0625rem / 1.5rem Roboto, Arial, sans-serif;
	padding: 17px 24px;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}
.alc-btn-grey .fa { margin-right: 0.75rem; font-size: 1.25rem; vertical-align: middle; }
.alc-btn-grey:hover,
.alc-btn-grey:focus,
.main-content a.alc-btn-grey:hover,
.main-content a.alc-btn-grey:focus { background: #dcdcdc; color: #243444; text-decoration: none; }

/* ---- People directory ---------------------------------------------------------------- */
.alc-people .entry-content.row { max-width: 1160px; padding: 54px 15px 20px; margin-left: auto; margin-right: auto; }
.alc-people__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 30px;
	row-gap: 60px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.alc-people__grid > li { margin: 0; list-style: none; font-size: 0; }
.alc-person { min-width: 0; }
.alc-person__link { display: block; text-decoration: none !important; color: #0a0a0a; }
.alc-person__photo { display: block; width: calc(100% - 60px); margin: 0 auto 30px; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; background: #ebe3dc; }
.alc-person__img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.alc-person__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font: 400 4rem / 1 Roboto, Arial, sans-serif; color: #ab0e1e; }
.alc-person__titles { display: block; background: #f5f5f5; padding: 9px 10px 10px; text-align: center; transition: background-color 0.2s; }
.alc-person__name { display: block; font: 400 1.3125rem / 1.6875rem Roboto, Arial, sans-serif; color: #ab0e1e; margin: 0 0 13px; overflow-wrap: anywhere; }
.alc-person__role { display: block; font: 400 1rem / 1.6875rem Roboto, Arial, sans-serif; color: #0a0a0a; }
.alc-person__link:hover .alc-person__titles,
.alc-person__link:focus-visible .alc-person__titles { background: #ebebeb; }
.alc-person__link:focus-visible { outline: 2px solid #ab0e1e; outline-offset: 4px; }
.alc-people__empty { text-align: center; padding: 3rem 0; }
.alc-people__filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 34px; align-items: center; }
.alc-people__filters input[type="search"],
.alc-people__filters select { flex: 1 1 220px; max-width: 320px; margin: 0; height: 44px; }
.alc-people__filters .button { margin: 0; min-height: 44px; }
@media screen and (max-width: 63.9375em) {
	.alc-person__name { font-size: 1.125rem; line-height: 1.5rem; }
	.alc-person__photo { width: calc(100% - 30px); margin-bottom: 20px; }
	.alc-people__grid { column-gap: 20px; row-gap: 40px; }
}
@media screen and (max-width: 47.9375em) {
	.alc-people__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 39.9375em) {
	.alc-people .entry-content.row { padding: 36px 20px 10px; }
	.alc-people__grid { grid-template-columns: minmax(0, 1fr); row-gap: 45px; }
	.alc-person__name { font-size: 1.3125rem; line-height: 1.6875rem; }
	.alc-person__photo { width: calc(100% - 60px); margin-bottom: 30px; }
}

/* ---- Professional profile ------------------------------------------------------------- */
.alc-profile-wrap .entry-content.row { max-width: 1160px; padding: 24px 15px 0; margin-left: auto; margin-right: auto; }
.alc-profile { display: grid; grid-template-columns: minmax(0, calc((100% + 30px) / 3 - 30px)) minmax(0, 1fr); column-gap: 30px; align-items: start; }
.alc-profile__aside { grid-column: 1; grid-row: 1; min-width: 0; }
.alc-profile__main { grid-column: 2; grid-row: 1; min-width: 0; }
.alc-profile__facts { grid-column: 1 / -1; grid-row: 2; min-width: 0; margin-top: 0; }
.alc-profile__photo { margin: 0; }
.alc-profile__img { display: block; width: 100%; height: auto; }
.alc-profile__contact { background: #f5f5f5; padding: 20px 20px 9px; margin: 35px 0 47px; }
.alc-profile__contact h5 { margin: 0 0 4px; color: #ab0e1e; }
.alc-profile__contact p { margin: 0 0 13px; font-size: 0.9375rem; line-height: 1.6875rem; overflow-wrap: anywhere; }
.main-content .alc-profile__contact a { color: #0a0a0a; text-decoration: none; }
.main-content .alc-profile__contact a:hover,
.main-content .alc-profile__contact a:focus { color: #ab0e1e; text-decoration: underline; }
.alc-profile__badges { margin: -12px 0 24px; text-align: center; }
/* the old site leaves 35px between the badges */
.alc-profile__badges .alc-profile__badgeitem { margin: 0 0 35px; padding: 0; }
.alc-profile__badges .alc-profile__badgeitem:last-child { margin-bottom: 0; }
.alc-profile__badge { display: block; height: auto; max-width: 100%; margin: 0 auto; }
.alc-profile__name { font: 400 2.25rem / 2.625rem Roboto, Arial, sans-serif; color: #ab0e1e; text-align: center; margin: 0 0 8px; }
.inner .alc-profile__name,
.inner h1.alc-profile__name { color: #ab0e1e; font: 400 2.25rem / 2.625rem Roboto, Arial, sans-serif; }
.alc-profile__role,
.main-content p.alc-profile__role { font: 400 1.3125rem / 1.6875rem Roboto, Arial, sans-serif; text-align: center; margin: 0 0 8px; color: #0a0a0a; }
.alc-profile__bio p { margin: 0 0 1rem; }
.alc-profile__bio h4:first-child { display: none; }
.alc-fact { margin: 0 0 6px; }
.alc-fact h2,
.inner .alc-fact h2 { font: 700 0.9375rem / 1.6875rem Roboto, Arial, sans-serif; color: #0a0a0a; text-transform: uppercase; margin: 0 0 14px; }
.alc-fact ul { margin: 0 0 20px 1.25rem; padding: 0; }
.alc-fact li { margin: 0 0 1rem; list-style: disc; }
.alc-profile__back { text-align: center; margin: 40px 0 0; padding: 0 0 20px; }
@media screen and (max-width: 47.9375em) {
	.alc-profile { grid-template-columns: minmax(0, 1fr); }
	.alc-profile__aside,
	.alc-profile__main,
	.alc-profile__facts { grid-column: 1; grid-row: auto; }
	.alc-profile__aside { width: 100%; }
	.alc-profile__contact { margin-bottom: 28px; margin-top: 28px; }
	.alc-profile__main { margin-bottom: 20px; }
	.alc-profile-wrap .entry-content.row { padding: 28px 20px 0; }
	.alc-profile__name { font-size: 1.875rem; line-height: 2.25rem; }
}
