/*

U-M Library Design System Styles for Research Guides

*/


@import url("https://fonts.googleapis.com/css?family=Crimson+Text|Muli:400,600,700");
:root {
    --color-blue-100: #f7f8f9;
    --color-blue-200: #b2bec9;
    --color-blue-300: #4c6781;
    --color-blue-400: #00274c;
    --color-blue-500: #001324;
    --color-maize-100: #fff9e6;
    --color-maize-200: #ffea9b;
    --color-maize-300: #ffda50;
    --color-maize-400: #ffcb05;
    --color-maize-500: #eaba02;
    --color-neutral-100: #e5e9ed;
    --color-neutral-200: #8a96a1;
    --color-neutral-300: #637381;
    --color-neutral-400: #212b36;
    --color-neutral-500: #06080a;
    --color-teal-100: #e9f2f5;
    --color-teal-200: #a7cddb;
    --color-teal-300: #65a8bf;
    --color-teal-400: #1d7491;
    --color-teal-500: #106684;
    --color-orange-100: #fff1eb;
    --color-orange-200: #ffb899;
    --color-orange-300: #ff8a58;
    --color-orange-400: #f25f1f;
    --color-orange-500: #c74e1a;
    --color-pink-100: #fcebeb;
    --color-pink-200: #f29d9d;
    --color-pink-300: #ec6969;
    --color-pink-400: #d93838;
    --color-pink-500: #bf3232;
    --color-indigo-100: #eef1f9;
    --color-indigo-200: #aab9e3;
    --color-indigo-300: #7c93d4;
    --color-indigo-400: #506fc5;
    --color-indigo-500: #274391;
    --color-green-100: #eaf8ee;
    --color-green-200: #96dbaa;
    --color-green-300: #57bc75;
    --color-green-400: #20a848;
    --color-green-500: #198539;
    --font-base-family: "Muli", sans-serif;
    --font-second-family: "Crimson Text", serif;
    --bold: 700;
    --regular: 400;
    --semibold: 600;
    --extrabold: 800;
    --line-height-default: 1.5;
    --line-height-heading: 1.25;
    --line-height-page-heading: 1.125;
    --text-base-size: 16px;
    --text-xxx-large: 3.5rem;
    --text-xx-large: 2.25rem;
    --text-x-large: 2rem;
    --text-large: 1.75rem;
    --text-medium: 1.5rem;
    --text-small: 1.125rem;
    --text-x-small: 1.125rem;
    --text-xx-small: 1rem;
    --text-xxx-small: 0.875rem;
    --space-xxx-small: 2px;
    --space-xx-small: 4px;
    --space-x-small: 8px;
    --space-small: 12px;
    --space-medium: 16px;
    --space-large: 24px;
    --space-x-large: 32px;
    --space-xx-large: 40px;
    --space-xxx-large: 48px;
    --space-xxxx-large: 64px;
    --space-xxxxx-large: 96px;
    --z-space-small: rgba(0, 0, 0, 0.2) 0px 2px 8px 0px;
    --z-space-medium: rgba(0, 0, 0, 0.2) 0px 2px 16px 0px;
    --opacity-75: 0.75;
    --opacity-50: 0.5;
    --opacity-30: 0.3;
    --radius-default: 4px;
    --line-length: 60ch;
    --viewport-margin: var(--space-medium);
    --page-heading-size: var(--space-xx-large);
}
@media (min-width: 720px) {
    :root {
        --viewport-margin: var(--space-xx-large);
        --page-heading-size: var(--space-xxx-large);
    }
}

*,
:after,
:before {
    box-sizing: inherit;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body,
html {
    padding: 0;
    margin: 0;
    height: 100%;
    color: var(--color-neutral-400);
    font-family: var(--font-base-family);
    line-height: 1.5;
    font-size: 16px;
    box-sizing: border-box;
}

a {
    color: var(--color-teal-400);
    text-decoration: underline;
}

a:hover {
    text-decoration-thickness: 2px;
}

.page-heading,
h1 {
    font-size: var(--page-heading-size);
    font-family: var(--font-second-family);
    line-height: var(--line-height-page-heading);
}

.page-sub-heading,
h2 {
    font-size: var(--text-medium);
    font-weight: var(--bold);
}

.page-sub-sub-heading,
h3 {
    font-size: var(--text-small);
    font-weight: var(--bold);
}

.viewport-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--viewport-margin);
    padding-right: var(--viewport-margin);
}

pre {
    overflow-x: auto;
}


.button:hover {
    cursor: pointer;
}

.button:not([disabled]):active,
.button:not([disabled]):focus,
.button:not([disabled]):hover {
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--color-neutral-400);
}

.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
}

@media (prefers-reduced-motion: reduce) {
    *,
    :after,
    :before {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: scroll !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}

/* Focus, Hover and Active Styles */

:focus {
  outline: 0px;
  box-shadow: 0 0 0 2px var(--color-maize-400), 0 0 0 3px var(--color-neutral-400);
  border-radius: 2px !important;
}

.prose {
    --max-prose-width: 65ch;
}
.prose > img,
.prose > p {
    max-width: var(--max-prose-width);
}

kbd {
    border: 1px solid var(--color-neutral-300);
    box-shadow: 1px 0 1px 0 var(--color-neutral-200), 0 2px 0 2px var(--color-neutral-100), 0 2px 0 3px var(--color-neutral-300);
    border-radius: 3px;
    margin: 2px 3px;
    padding: 1px 5px;
    white-space: nowrap;
}

/* Utilities */

.flex {
  display: flex;
  gap: 0 1rem;
}

.prose {
  max-width: 60ch;
}

.p-l-1 {
  padding-left: 1rem;
}

.p-l-2 {
  padding-left: 2rem;
}

.m-b-2 {
  margin-bottom: 2rem;
}


/*Buttons (Primary, secondary, search, critical, ghosty */

.button {
  border: none;
  outline: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.75rem;
  font-size: 1rem;
  min-height: 2.5rem;
  line-height: 1.5;
  font-weight: 700;
  font-family: var(--font-base-family);
  border-radius: var(--radius-default);
}

button:focus,
.button:focus {
  outline: 0 !important;
  box-shadow: 0 0 0 2px var(--color-maize-400),
    0 0 0 3px var(--color-neutral-400) !important;
  border-radius: 2px !important;
}

.button--primary {
  background: var(--color-teal-400);
  color: #fff;
}

.button--secondary {
  background: var(--color-neutral-100);
  color: var(--color-neutral-400);
}

.button--critical {
  background: var(--color-pink-500);
  color: #fff;
}


.button--search {
  background: var(--color-maize-400);
  color: var(--color-neutral-400);
}

button:disabled,
.button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}


/* Website Header */

.website-header {
  background-color: #fff;
  color: var(--color-neutral-400);
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.website-header__inner-container,
.website-header__logo-container {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  line-height: 1.25;
}
.website-header__inner-container {
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 1rem;
  width: 100%;
}

a.website-header__utility-link {
  display: flex;
  align-items: center;
  gap: .25rem;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--color-neutral-300);
  font-weight: var(--bold);
  letter-spacing: 1.25px;
}

@media (min-width: 52rem) {
  .website-header__inner-container {
    padding: 0 2.5rem;
  }
}
.website-header__logo-container {
  flex-grow: 1;
}
.website-header__lib-link svg {
  margin-top: 0.25rem;
  max-width: 100%;
}
.website-header__website-name {
  color: var(--color-neutral-300);
  font-size: var(--text-medium);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
a.website-header__website-home-link:not(:hover) {
  text-decoration: none;
}

.website-header {
  border-bottom: solid 2px var(--color-neutral-100);
}


/* UH Jitter */

m-universal-header {
  display: block;
  transition: max-height 0.25s ease-out;
  max-height: 600px;
}

m-universal-header:not(.hydrated) {
  height: 3.59rem;
  max-height: 3.59rem;
}

m-website-header {
  display: block;
  transition: max-height 0.25s ease-out;
  max-height: 600px;
}

m-website-header:not(.hydrated) {
  height: 4rem;
  max-height: 4rem;
}
m-website-header:not(.hydrated) * {
  display: none;
}

/* Website Footer */
.m-website-footer {
  background: var(--color-blue-400);
}

.m-website-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.m-website-footer ul a {
  display: inline-block;
  padding: .5rem 0;
}

.m-website-footer ul a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.m-website-footerul a span:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.m-website-footer a {
  color: white;
}

.m-website-footer a > svg {
  margin-right: 0.5em;
}

.address {
  max-width: 22ch;
}

.m-website-footer__content {
  color: var(--color-blue-100);
  padding: 2rem 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, 350px);
  gap: 3rem;
}

@media screen and (max-width: 720px) {
  .m-website-footer__content {
    gap: 1rem;
  }
}

.m-website-footer__content .first-column ul li a {
  text-decoration: none;
  display: flex;
  align-items: baseline;
}

.m-website-footer__content ul li a {
  text-decoration: none;
}

.m-website-footer__content h2 {
  color: var(--color-blue-200);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 1.25px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.m-website-footer__policies {
  border-left: solid 1px var(--color-blue-300);
  padding-left: 2em;
}

@media screen and (max-width: 1200px) {
  .m-website-footer__policies {
    border-left: none;
    padding-left: 0;
  }
}

.m-website-footer__disclaimer {
  background: var(--color-blue-500);
  color: var(--color-blue-200);
  padding: 1rem 0;
}

.m-website-footer__disclaimer a {
  color: var(--color-blue-200);
}

.m-website-footer__disclaimer p {
  margin: 0;
}

@media screen and (max-width:40rem) {
  .m-website-footer__disclaimer p {
    padding-top: 0.5rem;
  }
 }

@media screen and (min-width: 820px) {
  .m-website-footer__disclaimer p {
    display: inline-block;
  }
  .m-website-footer__disclaimer p + p {
    margin-left: 2rem;
  }
}
