/* T4 Custom CSS Document */

body {
  --secondary-accent-color: #cc4628;
}

/* ===================================================
		Highlights Cards Content Type
======================================================*/

/* 1. Default Card Layout: Title Link & Arrow Alignment */
.highlights__title__link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: underline; /* Fully underlines the title by default */
}

.highlights__title__link:hover,
.highlights__title__link:focus {
  text-decoration: underline;
}

/* Ensure the arrow wrapper inside the default card link behaves cleanly */
.highlights__title__link .highlights__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.highlights__title__link .highlights__arrow svg {
  width: 1em;
  height: 1em;
  color: #21314d!important;
}

.router--grid .router__item__text {
  padding: 1rem!important;
}


/* ===================================================
   2. Icon Card Layout (.highlights--icon) Fixes
======================================================*/

/* Restore proper grid behavior for the icon card container */
.highlights__highlight.bg--white.highlights--icon {
  display: grid;
  width: 100%;
}

.highlights--icon .highlights__text-container {
  display: grid;
  /* Preserves original theme grid-template-areas */
}

/* Ensure the standalone arrow in the icon layout maps correctly back to its grid area */
.highlights--icon .highlights__arrow {
  grid-area: arrow; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlights__arrow:hover,
  .highlights__arrow:focus {
    background-color: #cc4628 !important;
    transition: background-color 0.2s ease;
    color: white !important;
  }

/* ===================================================
  				BUTTON OVERRIDES
======================================================*/
.btn, .btn-blue, .btn-colorado-red, .btn-ghost, .btn-ghost-white, .btn-white, .form_button_submit {
  margin: 2px;
}

/* ===================================================
  	Faculty Directory: Bold Faculty Titles
======================================================*/
p.faculty--list__position {
  font-weight: 600;
}



/* ===================================================
	Offset Terminalfour content links for fixed navigation
====================================================== */
[id^="d.en."] {
  scroll-margin-top: 200px;
}


/* ===================================================
	Add spacing at the top of the Tabs Simple container
======================================================*/
.t4-tab-container {
    padding-top: 1rem;
}



/* ===================================================
		PROGRAM PAGE - TEXT BLOCK OVERRIDES
======================================================*/
.wysiwyg__full-width {
  padding: 1rem 8rem 1rem 4rem;
}

@media (max-width: 919px) {
  .wysiwyg__full-width {
  	padding: 1rem;
  }
}

.wysiwyg .bg--blue-dark p, .wysiwyg .bg--blue-dark li, .wysiwyg .bg--colorado-red p, .wysiwyg .bg--colorado-red li {
  color: white;
}

/* Constrain .wysiwyg width ONLY when contentTypeId="281" is present in the section */
.container--large.has-side-callout .wysiwyg {
  max-width: 95%; /* Adjust to match the exact width left of your red border line */
  box-sizing: border-box;
}

/* Prevent the inner nested .wysiwyg inside text/display-right-column from shrinking twice */
.container--large.has-side-callout .wysiwyg .wysiwyg {
  max-width: 100%;
}

/* Reset to full width on mobile/tablet when the Side Callout stacks */
@media (max-width: 918px) {
  .container--large.has-side-callout .wysiwyg {
    max-width: 100%;
  }
}

.btn-group {
  display: flex;
  flex-wrap: wrap;       /* Allows buttons to drop to the next line on mobile */
  gap: 1rem;             /* Controls the space between buttons (both horizontal and vertical when wrapped) */
  align-items: center;   /* Ensures buttons stay vertically aligned if text wraps */
}

/* Mobile styles (screens 768px wide or smaller) */
@media (max-width: 768px) {
  .btn-group {
    flex-direction: column;
    align-items: stretch; /* Forces child buttons to stretch 100% width */
  }

  .btn-group .btn {
    width: 100%;
    text-align: center;
  }
}


/* ===================================================
		RELATED NEWS BTN OVERRIDES
======================================================*/
.news--related-news a.btn.btn-ghost {
  width: 20%;
  margin: 0 auto; 
  justify-content: center;
  align-items: center;
}

body:not(.site-mines-intranet) .news--full .container {
  gap: 0;
}












