:root {
  --uam-blue: #21599c;
  --uam-blue-dark: #174b82;
  --ink: #333;
  --white: #fff;
  --page-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 10px 16px;
  color: #fff;
  background: var(--uam-blue);
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 100px;
  margin-bottom: -100px;
  background: rgba(255, 255, 255, .85);
  transition: background-color .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 7px 24px rgba(28, 60, 90, .12);
}

.header-inner {
  width: min(var(--page-width), calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  width: 279px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav li {
  display: flex;
  align-items: center;
}

.primary-nav li:not(:last-child)::after {
  content: "·";
  margin: 0 22px;
  color: #6d7c8e;
}

.primary-nav a {
  position: relative;
  padding: 36px 0 31px;
  color: var(--uam-blue-dark);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 25px;
  left: 0;
  height: 2px;
  background: var(--uam-blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.phone-mark {
  width: 27px;
  flex: 0 0 auto;
}

.phone-mark img {
  width: 23px;
  filter: invert(31%) sepia(30%) saturate(2080%) hue-rotate(172deg) brightness(86%);
}

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 6px;
  border: 0;
  color: var(--uam-blue);
  background: transparent;
  cursor: pointer;
}

.menu-toggle img {
  width: 100%;
  height: 100%;
  filter: invert(31%) sepia(30%) saturate(2080%) hue-rotate(172deg) brightness(86%);
}

.menu-close-icon {
  display: none;
}

.nav-open .menu-open-icon {
  display: none;
}

.nav-open .menu-close-icon {
  display: block;
}

.hero {
  min-height: 400px;
  padding-top: 159px;
  display: flex;
  align-items: flex-start;
  background-image:
    linear-gradient(rgba(255, 255, 255, .40), rgba(255, 255, 255, .40)),
    var(--hero-image, url("assets/hero-recursos.jpg"));
  background-position: center center;
  background-size: cover;
  animation: fade-in .65s ease both;
}

.hero-inner {
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
}

.hero h1 {
  max-width: 560px;
  margin: 0 0 10px;
  color: var(--uam-blue);
  font-family: Roboto, Arial, sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
}

.hero p {
  margin: 0;
  color: var(--uam-blue);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero .hero-eyebrow {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

.hero .hero-subtitle {
  max-width: 650px;
  margin: 0 0 24px;
  color: #2e516f;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: none;
}

.hero-action {
  width: fit-content;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  border-radius: 2px;
  color: #fff;
  background: var(--uam-blue);
  font-weight: 700;
  box-shadow: 0 9px 22px rgba(26, 70, 113, .2);
}

.hero-action:hover,
.hero-action:focus-visible {
  background: var(--uam-blue-dark);
  transform: translateY(-1px);
}

.finder {
  position: relative;
  z-index: 20;
  background: #fff;
}

.finder-inner {
  width: min(var(--page-width), calc(100% - 40px));
  min-height: 120px;
  margin: 0 auto;
  padding: 30px 10px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  column-gap: 28px;
}

.view-selector {
  align-self: center;
}

.view-selector button {
  min-height: 29px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  color: var(--uam-blue);
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.view-selector button:first-child {
  border-bottom: 1px solid #777;
}

.view-selector button:hover,
.view-selector button:focus-visible {
  outline: 2px solid rgba(33, 89, 156, .3);
  outline-offset: 3px;
}

.view-selector button:not(.active) {
  border-bottom-color: transparent;
}

.view-selector img {
  width: 24px;
  height: 27px;
  filter: invert(31%) sepia(30%) saturate(2080%) hue-rotate(172deg) brightness(86%);
}

.search-shell {
  position: relative;
  width: min(100%, 692px);
}

.resource-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 79px;
  align-items: stretch;
  gap: 8px;
}

.search-field-wrap {
  height: 60px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  background: #fafafa;
  border: 1px solid #d1d1d1;
  border-radius: 31px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.search-field-wrap:focus-within {
  border-color: var(--uam-blue);
  box-shadow: 0 0 0 3px rgba(33, 89, 156, .12);
}

.search-field-wrap img {
  width: 21px;
  height: 21px;
}

.resource-search input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: #333;
  background: transparent;
  font-size: 16px;
}

.resource-search input::placeholder {
  color: #777;
  opacity: 1;
}

.resource-search button {
  height: 60px;
  border: 0;
  border-radius: 31px;
  color: #fff;
  background: var(--uam-blue);
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.resource-search button:hover,
.resource-search button:focus-visible {
  background: var(--uam-blue-dark);
  transform: translateY(-1px);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 120;
  width: calc(100% - 87px);
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid #d7dce3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(25, 58, 93, .18);
}

.search-result {
  width: 100%;
  min-height: 72px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #eef0f3;
  color: inherit;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover,
.search-result:focus-visible {
  outline: 0;
  background: #f1f6fc;
}

.search-result img {
  width: 72px;
  height: 52px;
  object-fit: cover;
}

.search-result strong {
  display: block;
  color: var(--uam-blue);
  font-size: 15px;
  line-height: 1.25;
}

.search-result small {
  color: #6e7781;
}

.search-empty {
  margin: 0;
  padding: 18px;
  color: #5b6470;
  text-align: center;
}

.resources {
  min-height: 440px;
  padding: 34px 0 84px;
  background: #fff url("assets/geometric-bg.png") center top / cover no-repeat;
  scroll-margin-top: 90px;
}

.resources-inner {
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
}

.course-catalog {
  min-height: 680px;
  background-size: 1280px auto;
}

.catalog-heading {
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .75fr);
  align-items: end;
  gap: 46px;
}

.catalog-heading > p {
  margin: 0 0 12px;
  color: #5c6f80;
  line-height: 1.7;
}

.catalog-heading .section-kicker {
  margin-bottom: 7px;
}

.catalog-heading .title-line {
  margin-bottom: 0;
}

.catalog-filters {
  margin-bottom: 28px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #dce5ec;
  background: rgba(255, 255, 255, .88);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  padding: 8px 13px;
  border: 1px solid #c7d4df;
  border-radius: 999px;
  color: #486176;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.active {
  outline: 0;
  border-color: var(--uam-blue);
  color: #fff;
  background: var(--uam-blue);
}

.course-count {
  margin: 0 0 0 auto;
  color: #687c8d;
  font-size: 14px;
  white-space: nowrap;
}

.course-count strong {
  color: var(--uam-blue);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.catalog-course-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce4eb;
  border-top: 5px solid var(--course-accent);
  background: #fff;
  box-shadow: 0 15px 38px rgba(33, 65, 96, .1);
  transition: transform .22s ease, box-shadow .22s ease;
}

.catalog-course-card:hover,
.catalog-course-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(33, 65, 96, .16);
}

.catalog-course-card[hidden] {
  display: none;
}

.course-cover {
  position: relative;
  height: 205px;
  display: block;
  overflow: hidden;
  background: #d9e5ee;
}

.course-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(13, 38, 61, .65));
}

.course-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.catalog-course-card:hover .course-cover img {
  transform: scale(1.04);
}

.course-year,
.course-category {
  position: absolute;
  z-index: 1;
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.course-year {
  top: 14px;
  right: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(19, 44, 68, .78);
}

.course-category {
  right: 18px;
  bottom: 16px;
  left: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.course-card-body {
  padding: 22px;
}

.course-instructor {
  margin: 0 0 7px;
  color: var(--course-accent);
  font-size: 13px;
  font-weight: 700;
}

.course-card-body h3 {
  min-height: 58px;
  margin: 0 0 10px;
  color: #203b54;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.25;
}

.course-card-body h3 a:hover,
.course-card-body h3 a:focus-visible {
  color: var(--course-accent);
}

.course-summary {
  min-height: 68px;
  margin: 0 0 18px;
  color: #607384;
  font-size: 14px;
  line-height: 1.55;
}

.course-meta {
  padding: 14px 0;
  display: flex;
  gap: 22px;
  border-top: 1px solid #e1e7ec;
  border-bottom: 1px solid #e1e7ec;
  color: #687b8b;
  font-size: 13px;
}

.course-meta strong {
  color: #244d70;
}

.course-enter {
  margin-top: 17px;
  display: flex;
  justify-content: space-between;
  color: var(--course-accent);
  font-weight: 700;
}

.catalog-empty {
  padding: 58px 20px;
  color: #5c7183;
  background: rgba(255, 255, 255, .88);
  text-align: center;
}

.catalog-empty strong {
  display: block;
  color: var(--uam-blue);
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
}

.resources h2 {
  margin: 0 0 10px;
  color: var(--uam-blue);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
}

.title-line {
  width: 68px;
  height: 5px;
  margin-bottom: 29px;
  display: block;
  background: var(--uam-blue);
}

.topic-browser {
  padding: 0 10px;
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: start;
  gap: 15px;
}

.topic-tabs {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.topic-tab {
  min-height: 49px;
  padding: 13px 16px 13px 30px;
  border: 0;
  color: #476279;
  background: #fff;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}

.topic-tab:hover,
.topic-tab:focus-visible,
.topic-tab.active {
  outline: 0;
  color: #fff;
  background: var(--uam-blue);
}

.topic-panels {
  min-width: 0;
}

.topic-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  animation: content-in .25s ease both;
}

.topic-panel[hidden] {
  display: none;
}

.topic-browser.year-mode .theme-tab {
  display: none;
}

.topic-browser.year-mode .year-tab {
  display: block;
}

.topic-browser.year-mode .topic-panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.topic-browser.year-mode .topic-panel {
  display: contents;
}

.resource-card {
  min-width: 0;
}

.card-image {
  position: relative;
  width: 100%;
  height: 146px;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 0;
  background: #dce5ef;
  cursor: pointer;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(33, 89, 156, .07);
  opacity: 0;
  transition: opacity .2s ease;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.resource-card:hover .card-image img,
.resource-card:focus-within .card-image img {
  transform: scale(1.035);
}

.resource-card:hover .card-image::after,
.resource-card:focus-within .card-image::after {
  opacity: 1;
}

.resource-card h3 {
  margin: 11px 0 0;
  color: #323b44;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.card-title-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.card-title-button:hover,
.card-title-button:focus-visible {
  outline: 0;
  color: var(--uam-blue);
}

.local-areas {
  padding: 82px 0 96px;
  color: #263c51;
  background: #f4f7fa;
  scroll-margin-top: 90px;
}

.local-areas-inner {
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--uam-blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.local-areas h2 {
  margin: 0 0 12px;
  color: var(--uam-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 400;
}

.section-lead {
  max-width: 700px;
  margin: 0 0 36px;
  color: #5a6d7e;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.area-card {
  min-height: 290px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  border-top: 5px solid var(--uam-blue);
  background: #fff;
  box-shadow: 0 13px 32px rgba(32, 67, 101, .09);
  scroll-margin-top: 115px;
}

.area-number {
  color: #9cb2c6;
  font-family: Georgia, serif;
  font-size: 28px;
}

.area-status {
  width: fit-content;
  margin-top: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--uam-blue);
  background: #eaf2fa;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.area-card h3 {
  margin: 17px 0 10px;
  color: var(--uam-blue);
  font-size: 21px;
}

.area-card p {
  margin: 0 0 24px;
  color: #5a6d7e;
  font-size: 15px;
}

.area-card button {
  width: fit-content;
  margin-top: auto;
  padding: 9px 0 4px;
  border: 0;
  border-bottom: 2px solid var(--uam-blue);
  color: var(--uam-blue);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.area-card button:hover,
.area-card button:focus-visible {
  color: var(--uam-blue-dark);
  border-color: var(--uam-blue-dark);
}

.footer-main {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  color: #fff;
  background: url("assets/uam-lerma.jpg") center center / cover no-repeat;
}

.compact-footer {
  grid-template-columns: minmax(0, 1fr) auto;
}

.compact-footer .footer-intro h2 {
  margin-bottom: 15px;
}

.compact-footer .footer-intro > p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
}

.footer-actions {
  display: grid;
  gap: 12px;
}

.footer-actions a {
  min-width: 240px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  text-align: center;
}

.footer-actions a:hover,
.footer-actions a:focus-visible {
  color: var(--uam-blue);
  background: #fff;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(39, 77, 121, .72);
}

.footer-inner {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 60px));
  min-height: 510px;
  margin: 0 auto;
  padding: 92px 0 48px;
  display: grid;
  grid-template-columns: minmax(400px, 1.4fr) minmax(285px, .85fr) 310px;
  align-items: center;
  gap: 28px;
}

.lerma-signature {
  width: 220px;
  margin-bottom: 22px;
}

.footer-intro h2 {
  max-width: 530px;
  margin: 0 0 48px;
  color: #fff;
  font-family: Roboto, Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.social-links {
  display: flex;
  gap: 6px;
}

.social-links button {
  width: 52px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}

.social-links button:hover,
.social-links button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.social-links img {
  width: 27px;
  height: 27px;
  filter: brightness(0) invert(1);
}

.social-links .facebook {
  background: #4267a9;
}

.social-links .twitter {
  background: #22a6e6;
}

.social-links .youtube {
  background: #e20d1a;
}

.campus-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 18px;
  align-items: center;
}

.campus-links button {
  padding: 0;
  display: block;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .18s ease;
}

.campus-links button:hover,
.campus-links button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, .75);
  outline-offset: 4px;
  transform: translateY(-2px);
}

.campus-links img {
  width: 84px;
  height: 73px;
  margin: 0 auto;
  object-fit: cover;
}

.map-wrap {
  width: 310px;
  height: 300px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .72);
  background: #d6e1eb;
}

.local-map {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #1d527f;
  background:
    linear-gradient(32deg, transparent 47%, rgba(124, 156, 180, .28) 48%, rgba(124, 156, 180, .28) 52%, transparent 53%),
    linear-gradient(-18deg, transparent 42%, rgba(143, 172, 194, .24) 43%, rgba(143, 172, 194, .24) 47%, transparent 48%),
    #e5edf2;
}

.local-map::before,
.local-map::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 45%;
}

.local-map::before {
  width: 330px;
  height: 100px;
  top: 48px;
  left: -85px;
  transform: rotate(18deg);
}

.local-map::after {
  width: 260px;
  height: 74px;
  right: -78px;
  bottom: 32px;
  transform: rotate(-21deg);
}

.map-road {
  position: absolute;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px rgba(119, 151, 175, .12);
}

.road-one {
  width: 230px;
  top: 78px;
  left: 40px;
  transform: rotate(-32deg);
}

.road-two {
  width: 245px;
  top: 180px;
  left: -10px;
  transform: rotate(24deg);
}

.road-three {
  width: 180px;
  top: 144px;
  right: -20px;
  transform: rotate(77deg);
}

.map-pin {
  position: absolute;
  top: 106px;
  left: 137px;
  width: 38px;
  height: 38px;
  border: 7px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #d73a36;
  box-shadow: 0 6px 15px rgba(45, 77, 103, .25);
  transform: rotate(-45deg);
}

.map-copy {
  position: absolute;
  right: 15px;
  bottom: 14px;
  left: 15px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 8px 18px rgba(43, 76, 104, .15);
}

.map-copy strong,
.map-copy small {
  display: block;
}

.map-copy strong {
  font-size: 17px;
}

.map-copy small {
  color: #60798f;
}

.local-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 3px;
  background: transparent;
}

.local-dialog::backdrop {
  background: rgba(15, 37, 59, .72);
  backdrop-filter: blur(3px);
}

.dialog-card {
  position: relative;
  max-height: calc(100vh - 32px);
  padding: 34px;
  overflow-y: auto;
  color: #334b60;
  background: #fff;
  box-shadow: 0 26px 70px rgba(5, 26, 47, .35);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--uam-blue);
  background: rgba(255, 255, 255, .93);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dialog-image {
  width: calc(100% + 68px);
  height: 235px;
  margin: -34px -34px 28px;
  object-fit: cover;
}

.dialog-kicker {
  margin: 0 0 6px;
  color: var(--uam-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dialog-card h2 {
  margin: 0 0 14px;
  color: var(--uam-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 400;
}

#dialog-message {
  margin: 0 0 24px;
}

.dialog-status {
  padding-top: 18px;
  border-top: 1px solid #dce4eb;
  color: #5f7282;
  font-size: 14px;
}

.dialog-status span {
  width: 9px;
  height: 9px;
  margin-right: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #3e9b65;
}

.copyright {
  min-height: 108px;
  padding: 28px 20px;
  display: grid;
  place-items: center;
  color: #285b91;
  background: #fff;
  text-align: center;
}

.copyright p {
  margin: 0;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes content-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .header-inner {
    width: calc(100% - 28px);
    gap: 15px;
  }

  .brand {
    width: 245px;
  }

  .primary-nav li:not(:last-child)::after {
    margin: 0 8px;
  }

  .primary-nav a {
    font-size: 14px;
  }

  .footer-inner {
    grid-template-columns: 1.25fr .8fr 290px;
    gap: 20px;
  }

  .map-wrap {
    width: 290px;
  }
}

@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    height: 67px;
    margin-bottom: -67px;
  }

  .header-inner {
    width: calc(100% - 20px);
  }

  .brand {
    width: min(200px, calc(100% - 100px));
  }

  .menu-toggle {
    display: block;
  }

  .phone-mark {
    width: 23px;
  }

  .primary-nav {
    position: fixed;
    top: 67px;
    right: 0;
    left: 0;
    max-height: calc(100vh - 67px);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    background: #fff;
    box-shadow: 0 14px 22px rgba(25, 58, 93, .18);
    transform: translateY(-10px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }

  .nav-open .primary-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-nav ul {
    display: block;
  }

  .primary-nav li {
    display: block;
    border-bottom: 1px solid #e9edf1;
  }

  .primary-nav li::after {
    display: none;
  }

  .primary-nav a {
    padding: 14px 24px;
    display: block;
    font-size: 15px;
  }

  .primary-nav a::after {
    display: none;
  }

  .hero {
    min-height: 364px;
    padding: 125px 10px 25px;
    background-position: center center;
  }

  .hero-inner {
    width: 100%;
  }

  .hero h1 {
    max-width: 370px;
  }

  .finder-inner {
    width: min(100% - 40px, 640px);
    padding: 30px 0;
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .view-selector {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .view-selector button:first-child {
    border-bottom: 0;
  }

  .view-selector button.active {
    border-bottom: 1px solid #777;
  }

  .search-shell {
    width: 100%;
  }

  .resources {
    padding-top: 34px;
  }

  .topic-browser {
    padding: 0;
    grid-template-columns: 1fr;
  }

  .topic-tabs {
    flex-direction: row;
  }

  .topic-tab {
    flex: 1;
    padding: 13px 15px;
    text-align: center;
  }

  .topic-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-footer {
    grid-template-columns: 1fr;
  }

  .footer-actions {
    justify-self: stretch;
  }

  .topic-browser.year-mode .topic-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    min-height: 0;
  }

  .footer-inner {
    width: min(100% - 50px, 620px);
    min-height: 0;
    padding: 78px 0 65px;
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .footer-intro {
    text-align: left;
  }

  .campus-links {
    width: min(100%, 420px);
    justify-self: center;
  }

  .map-wrap {
    width: 100%;
    height: 330px;
  }
}

@media (max-width: 520px) {
  .hero-inner,
  .resources-inner {
    width: calc(100% - 20px);
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    max-width: 350px;
  }

  .finder-inner {
    width: calc(100% - 60px);
  }

  .resource-search {
    grid-template-columns: 1fr;
  }

  .resource-search button {
    width: 92px;
  }

  .search-results {
    width: 100%;
  }

  .resources h2 {
    font-size: 32px;
  }

  .topic-panel {
    grid-template-columns: 1fr;
  }

  .catalog-filters {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-count {
    margin-left: 0;
  }

  .course-grid {
    grid-template-columns: 1fr;
  }

  .course-cover {
    height: 220px;
  }

  .topic-browser.year-mode .topic-panels,
  .area-grid {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 190px;
  }

  .footer-intro h2 {
    font-size: 32px;
  }

  .campus-links {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 12px;
  }

  .campus-links img {
    width: 72px;
    height: 63px;
  }
}

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

.library-section {
  padding: 92px 24px;
  background: #f1f6f8;
}

.library-inner,
.home-help-inner {
  width: min(1380px, 100%);
  margin: 0 auto;
}

.library-heading {
  display: grid;
  grid-template-columns: 1fr minmax(320px, .75fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 38px;
}

.library-heading h2,
.home-help-heading h2 {
  margin: 7px 0 10px;
  color: #173952;
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  line-height: 1.03;
}

.library-heading > p,
.home-help-heading > p {
  color: #587184;
  font-size: 1.05rem;
  line-height: 1.75;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.library-card {
  display: grid;
  grid-template-rows: 225px 1fr;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 42px rgba(21, 57, 82, .09);
  transition: transform .22s ease, box-shadow .22s ease;
}

.library-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(21, 57, 82, .15);
}

.library-cover {
  position: relative;
  overflow: hidden;
  background: #102d43;
}

.library-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 24, 37, .72));
  content: "";
}

.library-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.library-card:hover .library-cover img {
  transform: scale(1.05);
}

.library-cover > span {
  position: absolute;
  right: 16px;
  bottom: 15px;
  z-index: 1;
  padding: 7px 10px;
  color: #fff;
  background: var(--uam-blue);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.library-copy {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.library-copy > p:first-child {
  margin: 0 0 7px;
  color: var(--uam-blue);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.library-copy h3 {
  margin: 0 0 10px;
  color: #173952;
  font-size: 1.28rem;
  line-height: 1.25;
}

.library-copy > p:nth-of-type(2) {
  margin: 0 0 22px;
  color: #61798a;
  line-height: 1.6;
}

.library-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.library-downloads a {
  padding: 9px 11px;
  border: 1px solid #c6d6df;
  color: #244b66;
  background: #f7fafb;
  font-size: .76rem;
  font-weight: 900;
  text-decoration: none;
}

.library-downloads a:hover {
  border-color: var(--uam-blue);
  color: #fff;
  background: var(--uam-blue);
}

.home-help {
  padding: 92px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 15%, color-mix(in srgb, var(--uam-blue) 85%, transparent), transparent 32%),
    #102d43;
}

.home-help-inner {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  gap: 55px;
  align-items: start;
}

.home-help-heading {
  position: sticky;
  top: 105px;
}

.home-help-heading h2 {
  color: #fff;
}

.home-help-heading > p {
  color: #bad0dc;
}

.home-help-search input {
  width: 100%;
  margin-top: 18px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 0;
  color: #173952;
  background: #fff;
  font: inherit;
}

.home-help-list {
  display: grid;
  gap: 8px;
}

.home-help-list details {
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(9px);
}

.home-help-list summary {
  display: grid;
  grid-template-columns: 42px 1fr 25px;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.home-help-list summary::-webkit-details-marker {
  display: none;
}

.home-help-list summary > span:first-child {
  color: #7ee2ff;
  font-size: .75rem;
  font-weight: 900;
}

.home-help-list summary > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.home-help-list summary small {
  color: #7ca2b5;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-help-list summary strong {
  color: #fff;
}

.home-help-list summary i {
  color: #76dcf8;
  font-size: 1.35rem;
  font-style: normal;
  transition: transform .2s ease;
}

.home-help-list details[open] summary i {
  transform: rotate(45deg);
}

.home-help-list details > p {
  margin: 0;
  padding: 0 30px 20px 76px;
  color: #bfd2dc;
  line-height: 1.65;
}

.home-help-contact {
  grid-column: 2;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding: 22px;
  color: #173952;
  background: #7de4ff;
}

.home-help-contact > div {
  display: grid;
  gap: 4px;
}

.home-help-contact span {
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-help-contact a {
  padding: 10px 13px;
  border: 1px solid #173952;
  color: #173952;
  font-size: .8rem;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .library-heading,
  .home-help-inner {
    grid-template-columns: 1fr;
  }

  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-help-heading {
    position: static;
  }

  .home-help-contact {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .library-section,
  .home-help {
    padding: 65px 18px;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }

  .home-help-list details > p {
    padding: 0 20px 20px;
  }

  .home-help-contact {
    align-items: flex-start;
    flex-direction: column;
  }
}
