  /*--------------------------------------------------------------
# Custom 'child theme' styles added to the IDFive templates by the Communications and Public Affairs web team
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Fix bug with image elements referenced in stylesheet
# Replace static file path with T4 tag to output path to image element in CMS media library
--------------------------------------------------------------*/

.homepage-news-feature__feature-media {
    mask-image: url(/media/umb-2025/assets/img/SVG-feature-curve-mask.svg), linear-gradient(171deg, rgb(0, 0, 0) 0%, rgb(0, 0, 0) 75%);
}

/*--------------------------------------------------------------
# Fix bug with other content elements (example: the Call to Action banner) overlapping the subnav and/or making it unclickable
--------------------------------------------------------------*/

nav.subnav {
  z-index: 2;
}

/*--------------------------------------------------------------
# Adds option for list items to have smaller images
# This option is added to ease the transition to the Central 2025 templates. Our legacy templates called for much smaller images dimensions. 
# Width values (6rem and 10.9375rem) chosen to be consistent with the 'People Listing' style
--------------------------------------------------------------*/

.paragraph-widget--list-items.paragraph-widget--list-items--small-image .list-items__list-item {
  grid-template-columns: 6rem 1fr;
}
@media screen and (min-width: 768px) {
  .paragraph-widget--list-items.paragraph-widget--list-items--small-image .list-items__list-item {
    grid-template-columns: 10.9375rem 1fr;
    gap: 3.125rem;
  }
}

/*--------------------------------------------------------------
# Add support for links in the Branch Alert content type
--------------------------------------------------------------*/

.branch-alert a {
  color: #fff;
  transition: color 0.2s ease-in-out;
}
.branch-alert a:hover,
.branch-alert a:focus {
  color: #ffcd00;
}

/*--------------------------------------------------------------
# Gray out menu items until JavaScript is ready
--------------------------------------------------------------*/

.main-site-header .main-site-header__search-hamburger-wrap>button {
  opacity: .25;
}
.main-site-header.main-site-header--ready .main-site-header__search-hamburger-wrap>button {
  opacity: 1;
}

/*--------------------------------------------------------------
# Two-Column List content type
--------------------------------------------------------------*/

.paragraph-widget--two-column-list-html {
  column-count: 2;
  column-gap: 2rem;
}

.paragraph-widget--two-column-list-html .paragraph-widget--two-column-list--non-breaking-element {
  display: inline-block;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid;
}
.paragraph-widget--two-column-list-html p:first-child {
  margin-top: 1rem;
}
.paragraph-widget--two-column-list-html .paragraph-widget--two-column-list--listitem:first-child p:first-child {
  margin-top: 0;
}

.paragraph-widget--two-column-list-html h1:first-child,
.paragraph-widget--two-column-list-html h2:first-child,
.paragraph-widget--two-column-list-html h3:first-child,
.paragraph-widget--two-column-list-html h4:first-child,
.paragraph-widget--two-column-list-html h5:first-child,
.paragraph-widget--two-column-list-html h6:first-child {
  margin-top: 3rem;
}

/*--------------------------------------------------------------
# Announcement content type
--------------------------------------------------------------*/

.paragraph-widget--announcement {
  padding-inline: 2.875rem;
  padding-block: 2.6875rem;
  background-color: #49182d;
  color: #fff;
}
.paragraph-widget--announcement h2 {
  font-size: 2.5rem;
  color: #fff;
  font-weight: 600;
  font-family: "aktiv-grotesk-extended", sans-serif;
}
.paragraph-widget--announcement h1,
.paragraph-widget--announcement h2,
.paragraph-widget--announcement h3,
.paragraph-widget--announcement h4,
.paragraph-widget--announcement h5,
.paragraph-widget--announcement h6 {
  color: #fff;
}
.paragraph-widget--announcement a,
.paragraph-widget--announcement .text-content p > a {
  color: #fff;
}
.paragraph-widget--announcement a:hover,
.paragraph-widget--announcement a:focus,
.paragraph-widget--announcement .text-content p > a:hover,
.paragraph-widget--announcement .text-content p > a:focus {
  color: #ffcd00;
}
.paragraph-widget--announcement .text-content p > a {
  background-image: linear-gradient(90deg, #c8102e, #c8102e 45%, #fff 50%, #ffcd00 55%);
}
.paragraph-widget--announcement .text-content ul li:before {
  background-color: #ffcd00;
}
.paragraph-widget--announcement .text-content ol li:before {
  color: #ffcd00;
}

/*--------------------------------------------------------------
# Editor tooltips / error messages that only appear on preview
--------------------------------------------------------------*/

.preview-tooltip {
  background-color: #c8102e;  
  display: inline-block;
  padding: 1rem 1rem 1rem 3.5rem;
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #fff;
  text-align: left;
  position: relative;
}
.preview-tooltip:before {
  content: "!";
  font-family: "aktiv-grotesk", sans-serif;
  font-weight: 900;
  display: inline-block;
  padding: .5rem;
  font-size: 1.5rem;
  line-height: 1rem;
  background-color: #fff;
  color: #c8102e;
  width: 2rem;
  height: 2rem;
  border-radius: 2rem;
  text-align: center;
  position: absolute;
  left: 1rem;
  top: 1rem;
}

/*--------------------------------------------------------------
# A preview-only notice for SSO password-protected pages
--------------------------------------------------------------*/

.preview-sso-message {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1;
    background-color: #000;
    color: #fff;
    display: inline-block;
    padding: .5rem 1rem;
    font-family: "aktiv-grotesk", sans-serif;
}

/*--------------------------------------------------------------
# Pagination Widget
--------------------------------------------------------------*/

.pagination-page {
    margin-top: 1.5em;
    font-size: 1.125rem;
    font-family: "aktiv-grotesk-extended", sans-serif;
}
.pagination-page ul {
    margin: 0;
}
.pagination-page a.page-link, .pagination-page span.current, .pagination-page span.ellipse {
    padding: 1rem 1.5rem;
    margin: 0px 1px 1px 0px;
    display: inline-block;
}
.pagination-page span.current {
    background-color: #ffcd00;
    color: #000;
}
.pagination-page span.current.prev,
.pagination-page span.current.next,
.pagination-page span.ellipse
{
    background-color: #c8102e;
    color: rgba(255,255,255,.5);
}
.pagination-page a.page-link {
    text-decoration: none;
    background-color: #c8102e;
    color: #fff;
    transition: all 0.2s ease-out;
}
.pagination-page a.page-link:focus,
.pagination-page a.page-link:hover {
    background-color: #735990;
    color: #fff;
}
.pagination-page li {
    display: inline-block;
}
.pagination-hidden {
        display: none !important;
}

/*--------------------------------------------------------------
# Branch Content Divider
--------------------------------------------------------------*/

#branch-content-divider,
.branch-content-divider {
    margin-block-start: 6rem;
    margin-block-end: 0;
    border: none;
    height: 0;
    background-color: transparent;
}

/*--------------------------------------------------------------
# Inline Images in the News Item content type
--------------------------------------------------------------*/

@media screen and (min-width: 768px) {
	.news_inline_img {
		display: inline-block;
	    float: right;
	    margin: 3rem;
	    margin-right: 0;
	    max-width: 50%;
	}
	.news_inline_img img,
	.text-content .news_inline_img img:not([style*=left]):not([style*=right]) {
		margin-top: 0;
		margin-bottom: 0;
	}
}
.news_inline_img .news_img_caption {
	color: #49182d;
    font-family: "aktiv-grotesk", sans-serif;
    font-style: italic;
    line-height: 1.25;
    font-size: 1rem;
    font-weight: 300;
}

/*--------------------------------------------------------------
# Adapts the styles of the dynamic table to the look of the 2025 templates
--------------------------------------------------------------*/

#sieve-input {
	border: 0.25rem solid #e6e6e6;
    border-radius: 3.125rem;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.81;
    color: #000;
    font-family: "aktiv-grotesk", sans-serif;
    margin-bottom: 1.25rem;
    margin-top: .5rem;
    padding: 0.6875rem 2.875rem;
    width: 100%;
}

table.super-table thead tr .sortheader {
    background-image: url("/media/umb-2025/assets/img/tablesorter-icons_arrows.svg"); /**/
    background-repeat: no-repeat;
    background-position: .75em center;
    background-size: .75em 1em;
    padding-left: 2.25em;
    cursor: pointer;
    color: #49182d;
    font-weight: 800;
    transition: color 300ms ease-out;
}

table.super-table thead tr .sortheader:hover,
table.super-table thead tr .sortheader:focus {
    color: #c8102e;
}
table.super-table thead tr .headerSortDown, table.super-table thead tr .headerSortUp {
    font-style: italic;
}
table.super-table thead tr .headerSortUp {
    background-image: url("/media/umb-2025/assets/img/tablesorter-icons_down.svg"); /**/
}
table.super-table thead tr .headerSortDown {
    background-image: url("/media/umb-2025/assets/img/tablesorter-icons_up.svg"); /**/
}

/*Move the lower margin below pagination*/
#super-table-container .paragraph-widget--table.paragraph-widget {
    margin-bottom: 0;
}

#super-table-container {
  margin-bottom: 3.125rem;
}
@media screen and (min-width: 991px) {
  #super-table-container {
    margin-bottom: 4.375rem;
  }
}
@media screen and (min-width: 1200px) {
  #super-table-container {
    margin-bottom: 5.625rem;
  }
}

/*--------------------------------------------------------------
# Makes sure featured UMB News articles on the UMB homepage are tall enough to accomodate the mask
--------------------------------------------------------------*/

.homepage-news-feature__feature-media img {
    min-height: 110vw
}
@media screen and (min-width: 1024px) {
    .homepage-news-feature__feature-media img {
        min-height: 45vw;
    }
}

/*--------------------------------------------------------------
# Remove the first article from the list of UMB News sub-features on the UMB homepage. It will be included as the main feature instead.
--------------------------------------------------------------*/

.homepage-news-feature__subfeatures .homepage-news-feature__subfeature:first-of-type {
    display: none;
}

/*--------------------------------------------------------------
# Center-alines buttons on fullwidth (primary and secondary landing) pages
--------------------------------------------------------------*/

@media screen and (min-width: 768px) {
    body:has(.hero__secondary) .button-set ul,
     body:has(.hero__primary) .button-set ul {
        justify-content: center;
    }
}

/*--------------------------------------------------------------
# Custom formatting for the non-discrimination message in the footer
--------------------------------------------------------------*/

.site-footer__disclaimer-statement__custom {
	font-size: .9rem;
}
@media screen and (min-width: 1024px) {
	.site-footer__disclaimer-statement__custom {
		max-width: 95%;
        text-align: left;
	}	
}

.site-footer__disclaimer-statement__custom a {
	color:#fff;
	transition: 0.3s text-decoration-color ease-in-out;
}
.site-footer__disclaimer-statement__custom a:hover,
.site-footer__disclaimer-statement__custom a:focus {
	text-decoration-color: transparent;
}

/*--------------------------------------------------------------
# Adjust formatting for UMB Alerts website banner
--------------------------------------------------------------*/

.global-alert .alert_link .um_alert .container img {
    top: 0.25rem;
}

/*--------------------------------------------------------------
# Fix a bug with the parent link on the Primary page layouts, so that they link to the parent instead ofthe website root
--------------------------------------------------------------*/

.hero__primary .breadcrumbs .breadcrumbs__list li:first-child,
.hero__primary .breadcrumbs .breadcrumbs__list li {
    display: none;
}
.hero__primary .breadcrumbs .breadcrumbs__list li:nth-last-child(2) {
    display: inline-block; 
}

/*The below styles are copied from idFive's style.css, except "li:first-child" has been replaced with just "li"*/
.hero__primary .breadcrumbs .breadcrumbs__list li {
  display: inline-block;
}
.hero__primary .breadcrumbs .breadcrumbs__list li a {
  display: flex;
  align-items: center;
  color: #fff;
}
.hero__primary .breadcrumbs .breadcrumbs__list li a:before {
  margin-right: 0.625rem;
  content: "";
  display: block;
  background-image: url(/media/umb-2025/assets/css/"data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' width='4.289' height='8.74' viewBox='0 0 4.289 8.74'%3E%3Cpath id='Path_20149' data-name='Path 20149' d='M3.44,3.289a1,1,0,0,1-.554-.167L-.554.833A1,1,0,0,1-.833-.554,1,1,0,0,1,.554-.833L3.428,1.08,6.17-.822A1,1,0,0,1,7.562-.57,1,1,0,0,1,7.31.822L4.01,3.11A1,1,0,0,1,3.44,3.289Z' transform='translate(1 7.74) rotate(-90)' fill='%23fff'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat no-repeat;
  background-position: center center;
  background-size: contain;
  width: 0.5rem;
  height: 0.5rem;
  transform: rotate(180deg);
}

/*--------------------------------------------------------------
# Allow the Primary templates to have the same subtitles as the Secondary templates
--------------------------------------------------------------*/

/*The below styles are copied from idFive's style.css, except "hero__secondary" has been replaced with "hero__primary"*/
.hero__primary .hero__subtitle {
  font-family: "aktiv-grotesk", sans-serif;
  font-style: italic;
}

/*--------------------------------------------------------------
# Hide the subnav on smaller screens, only for pages that have no siblings or children in the subnav (only the link to parent)
--------------------------------------------------------------*/
nav.subnav.subnav__onlyparentlink {
  display:none
}
@media screen and (min-width: 1200px) {
  nav.subnav.subnav__onlyparentlink {
    display:block
  }
}

/*--------------------------------------------------------------
# Replace the icons for secondary navigation links, so they're more visually distinct from breadcrumb links
--------------------------------------------------------------*/

.secondary-subnav__list > ul > li a:after {
  background-image: url("data:image/svg+xml,%3Csvg id='arrow' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 100'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 { fill: %23c8102e; } %3C/style%3E%3C/defs%3E%3Cpolygon class='cls-1' points='0 90 0 10 45 50 0 90'/%3E%3C/svg%3E");
  margin-left: 0.15rem;
}

/*--------------------------------------------------------------
# Apply link styles that IDFive's original stylesheet only applies to .text-content p > a to other combinations of tags (such as other content types, or a span inside a p for example)
--------------------------------------------------------------*/

.text-content p > a,
.tag-list__section-description a,
.video-embed__section-description a,
.full-width-image__section-description a,
.table__inner a,
.carousel__section-description a,
.card_set__section-description a,
.card__body a,
.text-content a,
.related__resources-contactmoreinfo a,
.branch-alert a,
.featured-news__date a,
.timeline-item__content a,
.list-items__list-item-content__content a,
.umb-inthenews a,
.people-listing__contact a {
  font-weight: bold;
  text-decoration: none;
  background-image: linear-gradient(90deg, #735990, #735990 45%, #fff 50%, #C8102E 55%);
  background-size: 215% 0.1875rem;
  background-position: right bottom;
  background-repeat: no-repeat;
  text-decoration: none;
  transition: background-position 300ms ease-out, color 300ms ease-out;
  padding-bottom: 0.3125rem;
  line-height: 1.75; /*Ensures the link has enough vertical space for the underline when it wraps*/
}
.text-content p > a:hover, .text-content p > a:focus-visible,
.tag-list__section-description a:hover, .tag-list__section-description a:focus-visible,
.video-embed__section-description a:hover, .video-embed__section-description a:focus-visible,
.full-width-image__section-description a:hover, .full-width-image__section-description a:focus-visible,
.table__inner a:hover, .table__inner a:focus-visible,
.carousel__section-description a:hover, .carousel__section-description a:focus-visible,
.card_set__section-description a:hover, .card_set__section-description a:focus-visible,
.card__body a:hover, .card__body a:focus-visible,
.text-content a:hover, .text-content a:focus-visible, 
.related__resources-contactmoreinfo a:hover, .related__resources-contactmoreinfo a:focus-visible,
.branch-alert a:hover, .branch-alert a:focus-visible,
.featured-news__date a:hover, .featured-news__date a:focus-visible,
.timeline-item__content a:hover, .timeline-item__content a:focus-visible,
.list-items__list-item-content__content a:hover, .list-items__list-item-content__content a:focus-visible,
.umb-inthenews a:hover, .umb-inthenews a:focus-visible,
.people-listing__contact a:hover, .people-listing__contact aa:focus-visible {
  background-position: left bottom;
  color: #735990;
}

/*Alternate colors for dark backgrounds*/

.paragraph-widget--announcement .text-content a,
.branch-alert a  {
  background-image: linear-gradient(90deg, #ffcd00, #ffcd00 45%, #fff 50%, #C8102E 55%);
}
.paragraph-widget--announcement .text-content a:hover, .paragraph-widget--announcement .text-content a:focus-visible,
.branch-alert a:hover, .branch-alert a:focus-visible {
  color: #ffcd00;
}

/*--------------------------------------------------------------
# Reduce vertical space for "Secondary" templates with hero text but no drop-down menu
--------------------------------------------------------------*/

.hero__secondary:not(:has(.secondary-subnav)) .hero__secondary-text .hero__secondary-text-inner {
	padding-bottom: 0;
}

/*--------------------------------------------------------------
# Icons that can be used as an alternative to images in certain content types
--------------------------------------------------------------*/

.imageAlternative-icon {
    width: 100%;
    height: 100%;
    background-color: #49182d;
    background-image: url("/media/umb-2025/assets/img/IconImageBackground.svg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; /*Necessary to vertically center the child element*/
    padding-top: 66%; /*Ensures box has at least a 3:2 aspect ratio*/

}
.imageAlternative-icon svg, .imageAlternative-icon img {
    color: #ffffff;
    width: 30%;
    height: auto;
    /*Vertically center the icon*/
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }

/*Ensures the CMS publishes the custom SVGs to the server*/
/*UMB Logo: /media/umb-2025/assets/custom-icons/Icons_davidge.svg*/
/*Office 365: /media/umb-2025/assets/custom-icons/Icons_office365.svg*/
/*Blackboard: /media/umb-2025/assets/custom-icons/Icons_blackboard.svg*/

/*--------------------------------------------------------------
# Hide the Edit in CMS link in the footer (the copyright symbol)
--------------------------------------------------------------*/
  
#t4Edit-page a,
#t4Edit-page a:focus-visible,
#t4Edit-page a:hover {
	text-decoration: none;
    color: #fff;
    cursor: default;
}
  
/*--------------------------------------------------------------
# Custom Accessibly button
--------------------------------------------------------------*/
  
body {
 	position: relative; /*Required for elements like the Accessibiltiy Options button to be absolutely positioned in the body*/
 }
  
#accessibility-options-button {
    background-color: #49182d;
    color: #fff;
    display: inline-block;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1.5rem;
    padding: .1rem;
    border: .2rem solid #fff;
    box-shadow:
    0 0 0 .2rem #49182d;
    z-index: 99999;
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    /*transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;*/
    transition: all 0.3s ease-in-out;
}

#accessibility-options-button svg {
   width: 100%;
   height: auto;
   fill: #fff;
}

@media screen and (min-width: 1024px) {
	#accessibility-options-button {
    	position: fixed;
    }
}

#accessibility-options-button:hover,
#accessibility-options-button:focus-visible {
	background-color: #735990;
	box-shadow: 0 0 0 .4rem #735990;
}

/*--------------------------------------------------------------
# Additional Contact Box features
--------------------------------------------------------------*/

/*Formats the "Contact Person" fields*/
.related__resources-contactinfo .related__resources-contactperson {
	font-family: "aktiv-grotesk", sans-serif;
	line-height: 1.7;
	margin-bottom: 1.75rem;
}
@media screen and (min-width: 1024px) {
    .related__resources-contactinfo .related__resources-contactaddress {
        margin-bottom: 2.0625rem;
    }
}
.related__resources-contactname {
   font-weight: 600; 
}
/*Adds a divider between a first and second set of contact info*/
hr.related__resources-contactdivider {
  border: none;
  border-top: 0.1875rem solid #e6e6e6;
  margin: 3rem 0;
}
.related__resources--no-resources hr.related__resources-contactdivider {
  border: none;
  border-top: 0.25rem solid #e6e6e6;
  margin: 4rem 0;
}
/*Removes top margins from the second set of contact info*/
.related__resources--no-resources .related__resources-contactinfo-two .related__resources-contactmain h3,
.related__resources--no-resources .related__resources-contactinfo-two .related__resources-contactsecondary {
  margin-top: 0;
}
/*Removes horizontal rules from certain elements, only when there are two sets of contact information*/
.related__resources--has-contactinfo-two .related__resources-contactinfo .related__resources-contactaddress {
	padding-bottom: inherit;
    border-bottom: none;
}
@media screen and (min-width: 1200px) {
    .related__resources--no-resources.related__resources--has-contactinfo-two .related__resources-contactinfo .related__resources-contactsecondary {
        border-top: none;
    	padding-top: inherit;
    }
}


