@font-face {
  font-family: 'dejavu_sansextralight';
  src: url("/assets/DejaVuSans-ExtraLight-webfont-7ba5e4c8f051b43a2add2a1098840f32aa10feb2.eot");
  src: url("/assets/DejaVuSans-ExtraLight-webfont-7ba5e4c8f051b43a2add2a1098840f32aa10feb2.eot?#iefix") format('embedded-opentype'),
       url("/assets/DejaVuSans-ExtraLight-webfont-224cfd701a82197028f0f0646443bca700b92fbc.woff") format('woff'),
       url("/assets/DejaVuSans-ExtraLight-webfont-4566ff97ae3c7f2653b6951ea36dc61044978756.ttf") format('truetype'),
       url("/assets/DejaVuSans-ExtraLight-webfont-aee0f2246e6c928c934170d48bff3fd92a0d145e.svg#dejavu_sansextralight") format('svg');
  font-display: swap;
  font-weight: normal;
  font-style: normal;
}

:root {
  /* Colors
     https://identity.stanford.edu/design-elements/color/primary-colors/ */
  --stanford-cardinal-rgb: 143, 20, 20;
  --stanford-cardinal: #8f1414;
  /* https://identity.stanford.edu/design-elements/color/accent-colors/ */
  --stanford-fog-light: #f4f4f4;
  --sul-link-color-rgb: 0, 108, 184; /* Digital blue #006CB8; */

  --sul-footer-background: var(--stanford-fog-light);
  --global-footer-color: white;
}

:root {
  --bs-font-sans-serif: 'Source Sans 3', 'Arial Unicode MS', Helvetica, sans-serif;
  --bs-link-color-rgb: var(--sul-link-color-rgb);
  --bs-link-color: rgb(var(--bs-link-color-rgb)); /* Needed for .btn-link */
  --bs-heading-color: var(--bs-gray-dark);
  --bs-link-hover-color-rgb: var(--bs-body-color-rgb);
  --bs-link-decoration: none;
	--bs-link-hover-decoration: underline;
  --bs-primary-rgb: var(--stanford-cardinal-rgb); /* Needed for text-primary */
}

/* This can be regenerated by setting $primary and running sass on bootstrap. */
.btn-primary {
	--bs-btn-color: #ffffff;
	--bs-btn-bg: rgb(var(--bs-primary-rgb));
	--bs-btn-border-color: rgb(var(--bs-primary-rgb));
	--bs-btn-hover-color: #ffffff;
	--bs-btn-hover-bg: #771212;
	--bs-btn-hover-border-color: #701111;
	--bs-btn-focus-shadow-rgb: 157, 56, 56;
	--bs-btn-active-color: #ffffff;
	--bs-btn-active-bg: #701111;
	--bs-btn-active-border-color: #691010;
	--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
	--bs-btn-disabled-color: #ffffff;
	--bs-btn-disabled-bg: #8c1515;
	--bs-btn-disabled-border-color: #8c1515;
}
.navbar {
	--bs-navbar-padding-y: 0;
}

.nav-link {
	--bs-nav-link-color: rgb(var(--bs-primary-rgb));
	--bs-nav-link-hover-color: rgb(var(--bs-primary-rgb));
	--bs-link-hover-decoration: none;
	--bs-nav-link-padding-y: 3px;

  border-bottom: 3px solid transparent;

  &:hover {
    border-bottom: 3px solid rgb(var(--bs-primary-rgb));
  }
}

.table {
  --bs-table-border-color: var(--bs-gray-500);
}

/* This selector/rule can be removed after https://github.com/twbs/bootstrap/pull/39098 is released */
a {
  text-decoration: var(--bs-link-decoration);
  &:hover,
  &:focus-visible {
    text-decoration: var(--bs-link-hover-decoration);
  }
}

.su-underline {
  --bs-link-hover-decoration: none;
  --bs-link-decoration: none;

  border-bottom: 1px dotted var(--bs-gray-500);
}

h1 {
  font-family: 'dejavu_sansextralight';
  font-weight: 300;
  letter-spacing: -0.05em;
}

h2 {
  font-weight: 300;
}

h3 {
  font-weight: 400;
}

#outer-container{
	padding: 0;
}

#main-container {
  /* keep the not available items with sufficent height. See db586ns4974 */
  min-height: calc(100vh - 323px);

  #main-flashes {
    min-height: 0;
  }
}

#feedback-form {
  border-bottom: 3px solid var(--bs-gray-500);
}

.purl-embed-viewer {
  display: none;
  margin-bottom: 15px;
}

.embed-iframe {
  border: 0;
  width: 100%;
  height: 400px;
}

.record-sections {
  section {
    margin-bottom: 2rem;

    h2 {
      span.sul-i {
        font-size: 18px;
        margin-right: 5px;
      }
    }

    .section-body {

      th {
        padding-left: 0px;
        border-bottom-width: 0px;
        width: 20%;
      }

      th:first-letter {
        text-transform: uppercase;
      }

      tbody {
        tr:not(:first-of-type) th {
          /* Visibility hidden doesn't work here because it also hides the border */
          font-size: 0;
        }

        tr:first-of-type {
          th, td {
            border-top-width: 1px;
          }
        }
  
        td {
          border-bottom-width: 0px;
        }
      
        tr:last-of-type th, tr:last-of-type td {
          border-bottom-width: 1px;
        }
  
        > dl > dd:not(:last-child) {
          margin-bottom: 15px;
        }
  
        > dl > dd:last-child {
          margin-bottom: 0px;
        }
  
        dl.mods_display_related_item:not(:first-child) {
          margin-top: 20px;
        }
  
        dl.mods_display_related_item {
          margin-bottom: 0px;
  
          dt {
            font-weight: normal;
            font-style: italic;
            text-transform: capitalize;
          }
  
          dd {
            margin-bottom: 5px;
          }
        }
      }    
    }    
  }
}

/* Based on sul-embed */
.stanford-only-text {
  background: url("/assets/stanford_s-84d75367447a9c2d27c71ea672e060e55df8182b.png") no-repeat left;
  background: url("/assets/stanford_s-2dc83d863479d2d09ae10b201adcc87fee8c7141.svg") no-repeat left, none;
  padding-left: 15px;
  margin-left: 5px;
}

#search-navbar-container {
  background-color: rgb(var(--bs-primary-rgb));
}

#pre-footer {
  background-color: var(--sul-footer-background);
}

.su-global-footer {
  --bs-link-color-rgb: 255,255,255;
  --bs-link-hover-color-rgb: 255,255,255;

  color: var(--global-footer-color);
  background-color: rgb(var(--bs-primary-rgb));

  .su-global-footer__menu--policy {
    font-size: 0.9rem;
  }

  .su-global-footer__menu--global {
    font-weight: 600;
  }

  .su-global-footer__copyright {
    font-size: 0.8rem;
  }
}

.sdr-brand {
  font-family: 'Source Sans 3';
  letter-spacing: normal;
  font-weight: 300;
  color: #fff;
}

.record-metadata {
  margin-bottom: 2em;
}
