/* ── Header layout fix (D11 / TB Mega Menu) ────────────────────────── */
/* ════════════════════════════════════════════════════
   SITE HEADER — UMD Design System
   Targeting actual TB Mega Menu DOM structure
   ════════════════════════════════════════════════════ */

/* ── Global typography (UMD Design System tokens) ─────────────────── */
html {
  font-family: var(--sanSerif);
  font-size: var(--umd-font-size-base);
  line-height: 1.5;
  color: var(--umd-color-gray-darker);
}

body {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  color: inherit;
  background: var(--umd-color-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--sanSerif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--umd-color-gray-darker);
  margin: 0 0 var(--umd-space-sm);
}

h1 {
  font-size: var(--umd-font-size-6xl);
  line-height: 1.1;
}

h2 {
  font-size: var(--umd-font-size-4xl);
}

h3 {
  font-size: var(--umd-font-size-3xl);
}

h4 {
  font-size: var(--umd-font-size-2xl);
}

h5 {
  font-size: var(--umd-font-size-lg);
}

h6 {
  font-size: var(--umd-font-size-base);
}

p,
li,
dd,
dt,
blockquote {
  font-size: var(--umd-font-size-base);
  line-height: 1.6;
  color: var(--umd-color-gray-darker);
}

p {
  margin: 0 0 var(--umd-space-sm);
}

a {
  color: var(--umd-color-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: var(--umd-color-redDark);
  text-decoration-color: var(--umd-color-redDark);
}

strong {
  font-weight: 700;
}

/* ── Breadcrumbs (UMD Design System) ─────────────────────────────────
   Styles the `<umd-element-breadcrumb>` markup emitted by
   `templates/navigation/breadcrumb.html.twig`.

   These rules target the LIGHT DOM so the trail looks correct whether or
   not the design-system web component upgrades. Once the component does
   upgrade, its own shadow-DOM styles take over automatically (shadow DOM
   is isolated from outer CSS).

   Spec: https://playground.designsystem.umd.edu/?path=/story/components-navigation-breadcrumbs--light
     • Non-current items: medium gray (--umd-color-gray-mediumAA)
     • Current page: darker gray, non-interactive
     • Separator: 1px, 14px tall, gray, rotated 15° (angled slash)
     • Hover / focus: UMD red with red 1px underline
   ──────────────────────────────────────────────────────────────────────── */
umd-element-breadcrumb {
  display: block;
  margin-top: var(--umd-space-sm);
  container-type: inline-size;
}

umd-element-breadcrumb > nav[slot="paths"] {
  display: flex;
  align-items: center;
  padding: 0;
  padding-right: 24px;
  margin: 0;
  font-family: var(--sanSerif);
  font-size: 12px;
  line-height: 1;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(
    90deg,
    var(--umd-color-white) calc(100% - 24px),
    transparent
  );
          mask-image: linear-gradient(
    90deg,
    var(--umd-color-white) calc(100% - 24px),
    transparent
  );
}
umd-element-breadcrumb > nav[slot="paths"]::-webkit-scrollbar {
  display: none;
}

/* Every trail item (both links and the non-linked current page). */
umd-element-breadcrumb > nav[slot="paths"] a {
  position: relative;
  color: var(--umd-color-gray-mediumAA);
  text-decoration: none;
}

/* Underline lives on the inner <span> so it sizes exactly to the text
   (never to the flex-item width of the anchor). `inline-block` gives the
   span a predictable box so the background gradient paints reliably
   across browsers — `display: inline` produced no visible underline in
   Chrome/Firefox because inline line-box backgrounds ignore `bottom`
   positioning with padding. The span still hugs the text: `inline-block`
   sizes to content by default, and `white-space: nowrap` on the nav
   guarantees single-line items.

   Gradient is 200% wide (twice the span) with red on the LEFT half and
   light gray on the RIGHT half. We slide it via keyword positions so the
   math is unambiguous:
     • rest  → `right bottom`  → right half visible → GRAY
     • hover → `left bottom`   → left half visible  → RED
   As `background-position` transitions between the two keywords, the
   image shifts right, so red enters from the LEFT edge of the box and
   sweeps across to fill the whole underline ("grows left → right"). */
umd-element-breadcrumb > nav[slot="paths"] a > span {
  display: inline-block;
  position: relative;
  text-decoration: none;
  padding-bottom: 3px;
  background-image: linear-gradient(
    to left,
    var(--umd-color-gray-light) 50%,
    var(--umd-color-red) 50% 100%
  );
  background-repeat: no-repeat;
  background-size: 200% 1px;
  background-position: right bottom;
  transition: background-position 0.5s ease;
}

/* Angled slash separator inserted before every item after the first. */
umd-element-breadcrumb > nav[slot="paths"] a + a::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 14px;
  margin: 0 14px;
  background: var(--umd-color-gray-dark);
  transform: rotate(15deg);
  vertical-align: middle;
}

/* Hover / keyboard-focus: slide the gradient left so the red half wipes
   in from the left edge of the underline. Only the underline color
   changes — the text stays gray, per the current design brief. */
umd-element-breadcrumb > nav[slot="paths"] a:not([aria-current="page"]):hover > span,
umd-element-breadcrumb > nav[slot="paths"] a:not([aria-current="page"]):focus-visible > span {
  background-position: left bottom;
}

/* Current page: darker text, no interactivity, no underline at all. */
umd-element-breadcrumb > nav[slot="paths"] a[aria-current="page"] {
  color: var(--umd-color-gray-darker);
  cursor: default;
}
umd-element-breadcrumb > nav[slot="paths"] a[aria-current="page"] > span {
  background-image: none;
  padding-bottom: 0;
}

/* Respect reduced-motion preferences: skip the slide animation. */
@media (prefers-reduced-motion: reduce) {
  umd-element-breadcrumb > nav[slot="paths"] a > span {
    transition: none;
  }
}

.site-header {
  background: var(--umd-color-white);
  border-bottom: 3px solid var(--umd-color-red);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ── Header bar ─────────────────────────────────── */
.site-header__bar {
  display: flex;
  align-items: stretch;
  min-height: 70px;
  padding: 0;
}

/* ── Logo ────────────────────────────────────────── */
.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 10px 20px;
  text-decoration: none;
  /*border-right: 1px solid var(--umd-color-gray-light);*/
}

.site-header__logo img {
  height: auto;
  width: 30em;
}

/* ── Nav wrapper ─────────────────────────────────── */
.site-header__nav {
  flex: 0 1 auto;
  margin-left: auto;
  display: flex;
  align-items: stretch;
  overflow: visible;
}

/* ── TB Mega Menu structural resets ──────────────── */
.site-header__nav .tbm,
.site-header__nav .tbm-main {
  display: flex !important;
  align-items: stretch;
  width: 100%;
  background: transparent;
  border: none;
  overflow: visible;
}

/* Hide TB's own hamburger — we use ours */
.site-header__nav .tbm-button {
  display: none !important;
}

.site-header__nav .tbm-collapse {
  display: flex !important;
  align-items: stretch;
  width: 100%;
  overflow: visible;
}

/* Top-level list */
.site-header__nav ul.tbm-nav.level-0 {
  display: flex !important;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: visible;
}

/* Remove TB Mega Menu vertical separators in the header */
.site-header__nav .tbm-nav.level-0 > .tbm-item,
.site-header__nav .tbm-item.level-1,
.site-header__nav .tbm-item.level-1 > .tbm-link-container,
.site-header__nav .tbm-item.level-1 > .tbm-link-container > .tbm-link,
.site-header__nav
  .tbm-item.level-1
  > .tbm-link-container
  > .tbm-submenu-toggle {
  border-left: 0 !important;
  border-right: 0 !important;
  box-shadow: none !important;
}

/* ── Level 1 items ───────────────────────────────── */
.site-header__nav .tbm-item.level-1 {
  display: flex;
  align-items: stretch;
  position: relative;
  /*border-right: 1px solid var(--umd-color-gray-light);*/
  overflow: visible;
}

/* The link-container div must stretch full height */
.site-header__nav .tbm-item.level-1 > .tbm-link-container {
  display: flex;
  align-items: stretch;
  width: 100%;
}

/* Level 1 links — both <a> and <span class="no-link"> */
.site-header__nav .tbm-item.level-1 > .tbm-link-container > .tbm-link {
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-family: var(--sanSerif);
  font-size: 14px;
  font-weight: 700;
  color: var(--umd-color-gray-darker);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition:
    background 0.15s,
    color 0.15s;
  flex: 1;
}

/* Submenu toggle arrow inside link-container */
.site-header__nav
  .tbm-item.level-1
  > .tbm-link-container
  > .tbm-submenu-toggle {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0 8px 0 0;
  cursor: pointer;
  color: var(--umd-color-gray-dark);
  font-size: 10px;
  transition: color 0.15s;
}

/* Hover state — target the link-container's children */
.site-header__nav .tbm-item.level-1:hover > .tbm-link-container > .tbm-link,
.site-header__nav
  .tbm-item.level-1:focus-within
  > .tbm-link-container
  > .tbm-link {
  background: var(--umd-color-red);
  color: var(--umd-color-white);
}

.site-header__nav
  .tbm-item.level-1:hover
  > .tbm-link-container
  > .tbm-submenu-toggle,
.site-header__nav
  .tbm-item.level-1:focus-within
  > .tbm-link-container
  > .tbm-submenu-toggle {
  background: var(--umd-color-red);
  color: var(--umd-color-white);
}

/* Active trail */
.site-header__nav
  .tbm-item.level-1
  > .tbm-link-container
  > .tbm-link.active-trail {
  color: var(--umd-color-red);
}

.site-header__nav
  .tbm-item.level-1:hover
  > .tbm-link-container
  > .tbm-link.active-trail {
  color: var(--umd-color-white);
}

/* ── Dropdown — TB controls display, we control appearance ── */
.site-header__nav .tbm-item.level-1 > .tbm-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  width: max-content;
  max-width: 380px;
  background: var(--umd-color-white);
  border-top: 3px solid var(--umd-color-red);
  border-bottom: 1px solid var(--umd-color-gray-light);
  z-index: 9999;
  overflow: visible;
}

/* TB Mega Menu uses .tbm-row and .tbm-column wrappers inside submenu */
.site-header__nav .tbm-submenu .tbm-row {
  padding: 0;
}

.site-header__nav .tbm-submenu .tbm-column {
  padding: 0;
}

.site-header__nav .tbm-submenu .tbm-column-inner {
  padding: 0;
}

/* Level 2 subnav list */
.site-header__nav ul.tbm-subnav {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

/* Level 2 items */
.site-header__nav .tbm-item.level-2 > .tbm-link-container {
  display: flex;
  align-items: center;
}

.site-header__nav .tbm-item.level-2 > .tbm-link-container > .tbm-link {
  display: block;
  padding: 10px 20px;
  font-family: var(--sanSerif);
  font-size: 14px;
  font-weight: 400;
  color: var(--umd-color-gray-darker);
  text-decoration: none;
  white-space: nowrap;
  flex: 1;
  transition:
    background 0.15s,
    color 0.15s;
}

.site-header__nav .tbm-item.level-2:hover > .tbm-link-container > .tbm-link {
  background: var(--umd-color-gray-lighter);
  color: var(--umd-color-red);
}

.site-header__nav
  .tbm-item.level-2
  > .tbm-link-container
  > .tbm-submenu-toggle {
  padding: 0 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--umd-color-gray-dark);
  font-size: 10px;
}

/* ── Level 3 flyout ──────────────────────────────── */
.site-header__nav .tbm-item.level-2 > .tbm-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  width: max-content;
  max-width: 300px;
  background: var(--umd-color-white);
  border-top: 3px solid var(--umd-color-red);
  border-bottom: 1px solid var(--umd-color-gray-light);
  z-index: 9999;
}

.site-header__nav .tbm-item.level-3 > .tbm-link-container > .tbm-link {
  display: block;
  padding: 10px 20px;
  font-family: var(--sanSerif);
  font-size: 14px;
  color: var(--umd-color-gray-dark);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}

.site-header__nav .tbm-item.level-3:hover > .tbm-link-container > .tbm-link {
  background: var(--umd-color-gray-lighter);
  color: var(--umd-color-red);
}

/* ── Overflow fixes ──────────────────────────────── */
.region-header,
.region-header .block {
  overflow: visible;
}

/* ── Mobile toggle ───────────────────────────────── */
.site-header__nav-toggle {
  display: none;
  align-items: center;
  padding: 0 16px;
  margin-left: auto;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  color: var(--umd-color-gray-darker);
  cursor: pointer;
}

.site-header__nav-icon span[role="presentation"] {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
}

/* ── Mobile breakpoint ───────────────────────────── */
@media (max-width: 1199px) {
  .site-header__nav-toggle {
    display: flex;
  }

  .site-header__bar {
    flex-wrap: wrap;
    position: relative;
  }

  .site-header__nav {
    order: 3;
    width: 100%;
    display: flex;
    flex-direction: column;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    border-top: 1px solid transparent;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      visibility 0.25s ease,
      border-color 0.25s ease;
  }

  .site-header__nav.is-open,
  .site-header__nav[aria-hidden="false"] {
    max-height: 80rem;
    opacity: 1;
    visibility: visible;
    border-top-color: var(--umd-color-gray-light);
  }

  /* TB Mega Menu handles its own mobile layout once .tbm--mobile is added */
  .site-header__nav .tbm--mobile .tbm-collapse {
    flex-direction: column;
    width: 100%;
  }

  .site-header__nav .tbm--mobile .tbm-nav.level-0 {
    flex-direction: column;
  }

  .site-header__nav .tbm--mobile .tbm-item.level-1 {
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--umd-color-gray-light);
    width: 100%;
  }

  .site-header__nav .tbm--mobile .tbm-item.level-1:first-child {
    border-left: none;
  }

  .site-header__nav
    .tbm--mobile
    .tbm-item.level-1
    > .tbm-link-container
    > .tbm-link {
    padding: 14px 20px;
    white-space: normal;
  }

  /* We use the site header toggle, so keep TB's mobile collapse visible once
   * the outer nav has been opened and restyle the accordion to match desktop. */
  .site-header__nav .tbm.tbm--mobile,
  .site-header__nav .tbm.tbm--mobile .tbm-nav,
  .site-header__nav .tbm.tbm--mobile .tbm-subnav,
  .site-header__nav .tbm.tbm--mobile .tbm-collapse {
    background: var(--umd-color-white);
  }

  .site-header__nav .tbm.tbm--mobile .tbm-collapse {
    display: flex !important;
    position: static;
    padding-top: 0;
  }

  .site-header__nav .tbm.tbm--mobile .tbm-item {
    border-top: 0;
  }

  .site-header__nav .tbm.tbm--mobile .tbm-subnav .tbm-subnav {
    margin-left: 0;
  }

  .site-header__nav .tbm.tbm--mobile .tbm-submenu-toggle {
    border-left: 0;
    border-right: 0;
    background: transparent;
    color: var(--umd-color-gray-dark);
    transition:
      background-color 0.25s ease,
      color 0.25s ease;
  }

  .site-header__nav .tbm.tbm--mobile .tbm-link {
    transition:
      background-color 0.25s ease,
      color 0.25s ease;
  }

  .site-header__nav
    .tbm.tbm--mobile
    .tbm-item.open
    > .tbm-link-container
    > .tbm-link,
  .site-header__nav
    .tbm.tbm--mobile
    .tbm-item.open
    > .tbm-link-container
    > .tbm-submenu-toggle {
    background: var(--umd-color-red);
    color: var(--umd-color-white);
  }

  .site-header__nav .tbm.tbm--mobile .tbm-item.level-1 > .tbm-submenu,
  .site-header__nav .tbm.tbm--mobile .tbm-item.level-2 > .tbm-submenu {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    max-width: none;
    display: block !important;
    width: 100% !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    border-top: 1px solid transparent;
    border-bottom: 0;
    box-shadow: none;
    background: var(--umd-color-white);
    transition:
      max-height 0.3s ease,
      opacity 0.2s ease,
      visibility 0.2s ease,
      border-color 0.2s ease;
  }

  .site-header__nav .tbm.tbm--mobile .tbm-item.open > .tbm-submenu {
    max-height: 60rem;
    opacity: 1;
    visibility: visible;
    border-top-color: var(--umd-color-gray-light);
  }

  .site-header__nav
    .tbm.tbm--mobile
    .tbm-item.level-2
    > .tbm-link-container
    > .tbm-link,
  .site-header__nav
    .tbm.tbm--mobile
    .tbm-item.level-2
    > .tbm-link-container
    > .tbm-submenu-toggle {
    padding-left: 32px;
  }

  .site-header__nav
    .tbm.tbm--mobile
    .tbm-item.level-3
    > .tbm-link-container
    > .tbm-link {
    padding-left: 44px;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__nav,
  .site-header__nav .tbm.tbm--mobile .tbm-link,
  .site-header__nav .tbm.tbm--mobile .tbm-submenu-toggle,
  .site-header__nav .tbm.tbm--mobile .tbm-item.level-1 > .tbm-submenu,
  .site-header__nav .tbm.tbm--mobile .tbm-item.level-2 > .tbm-submenu {
    transition: none;
  }
}
/* page-content */
.container.page-content {
  width: 100%;
  padding: 1.25rem 1.5rem 4rem;
  max-width: none;
}

@media (min-width: 40rem) {
  .container.page-content {
    max-width: 40rem;
  }
}

@media (min-width: 48rem) {
  .container.page-content {
    max-width: 48rem;
  }
}

@media (min-width: 64rem) {
  .container.page-content {
    max-width: 64rem;
  }
}

@media (min-width: 80rem) {
  .container.page-content {
    max-width: 80rem;
  }
}

@media (min-width: 96rem) {
  .container.page-content {
    max-width: 96rem;
  }
}

/* homepage partner logos */
.logo-container {
  padding: 16px 20px;
  align-items: center;
  justify-content: center;
  height: 100%;
  display: flex;
}

.logo-container > img {
  height: 60px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(100%);
  transition:
    filter 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease;
}

.logo-container:hover > img,
.logo-container:focus-within > img {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-2px);
}

/* homepage news style */
.views-view-grid umd-element-card {
  display: block;
  width: 100%;
  height: 100%;
}

/* highlight teaser rows */
.paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser {
  margin-bottom: 3rem;
}

.paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser:last-child {
  margin-bottom: 0;
}

.paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser
  .mt-highlight-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 1.5rem;
}

.paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser
  .mt-highlight-image-wrapper,
.paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser
  .mt-highlight-content-wrapper {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

.paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser
  .mt-highlight-image-wrapper
  img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

.paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser
  .mt-highlight-content {
  padding: 0;
}

.paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser
  .mt-highlight-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 2vw, 2.5rem);
  line-height: 1.15;
}

.paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser
  .mt-highlight-body
  > :last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser {
    margin-bottom: 4rem;
  }

  .paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser
    .mt-highlight-row {
    flex-direction: row;
    flex-wrap: nowrap;
    row-gap: 0;
  }

  .paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser
    .mt-highlight-image-wrapper,
  .paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser
    .mt-highlight-content-wrapper {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser
    .mt-highlight-content {
    padding: 1.5rem 2rem;
  }

  .paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser:nth-child(even)
    .mt-highlight-row,
  .paragraph--type--mt-highlight.paragraph--view-mode--mt-teaser:nth-of-type(
      even
    )
    .mt-highlight-row {
    flex-direction: row-reverse;
  }
}

.news-card-image {
  display: block;
  width: 100%;
}

.news-card-image img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
  object-fit: cover;
  border-radius: 16px;
}

.article-teaser-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}

.path--center-activities .view-content .item-list > ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.path--center-activities .view-content .item-list > ul > li {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.path--center-activities .article-teaser-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.path--center-activities .article-teaser-card__media-link {
  display: block !important;
  flex: 0 0 500px !important;
}

.path--center-activities .article-teaser-card__media,
.path--center-activities .center-activities-card__media {
  aspect-ratio: 16 / 10 !important;
  height: auto !important;
  min-height: 280px !important;
  max-height: 350px !important;
}

.path--center-activities .article-teaser-card__content {
  min-width: 0 !important;
  padding: 1.25rem 1.5rem !important;
}

.path--center-activities .article-teaser-card h2,
.path--center-activities .article-teaser-card h3,
.path--center-activities .article-teaser-card h6 {
  margin-bottom: 0.5rem !important;
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
}

.path--center-activities .article-teaser-card .mb-2 {
  margin-bottom: 0.5rem !important;
}

.path--center-activities .article-teaser-card .text-sm.leading-6 {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.path--center-activities .article-teaser-card .line-clamp-3 {
  display: -webkit-box !important;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

.path--center-activities .article-teaser-card__media-inner img {
  object-fit: contain !important;
  object-position: center !important;
  background: #f3f4f6;
}

@media (max-width: 767px) {
  .path--center-activities .article-teaser-card {
    flex-direction: column !important;
    max-width: 100% !important;
  }

  .path--center-activities .article-teaser-card__media-link {
    flex: 0 0 auto !important;
  }

  .path--center-activities .article-teaser-card__media,
  .path--center-activities .center-activities-card__media {
    height: 160px !important;
  }
}

.article-teaser-card__media-inner,
.article-teaser-card__media-inner .field,
.article-teaser-card__media-inner .field__item,
.article-teaser-card__media-inner picture,
.article-teaser-card__media-inner img {
  width: 100%;
  height: 100%;
}

.article-teaser-card__media-inner,
.article-teaser-card__media-inner .field,
.article-teaser-card__media-inner .field__item,
.article-teaser-card__media-inner picture {
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-teaser-card__media-inner img {
  display: block;
  object-fit: contain;
  object-position: center;
}

.center-activities-card {
  height: 100%;
}

.center-activities-card__media {
  display: flex;
  aspect-ratio: 16 / 9;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f3f4f6;
}

.center-activities-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.center-activities-card__title h6,
.center-activities-card__title h3,
.center-activities-card__title h2 {
  margin: 0;
}

.center-activities-card__title a {
  color: var(--umd-color-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}

.mt-post-card {
  margin-bottom: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.views-view-responsive-grid .mt-post-card {
  margin-bottom: 0;
}

.view-id-mt-posts-grid .views-view-responsive-grid {
  --views-responsive-grid--layout-gap: 16px;
}

.mt-post-card__media {
  display: block;
  aspect-ratio: 2.5 / 1;
  max-height: 200px;
  overflow: hidden;
  background: #f3f4f6;
  line-height: 0;
}

.mt-post-card__media-link,
.mt-post-card__media .field,
.mt-post-card__media .field__item,
.mt-post-card__media a,
.mt-post-card__media picture {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.mt-post-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.news-card-headline {
  display: block;
  width: 100%;
}

.news-card-headline a {
  text-decoration: none;
}

/* layout builder menu */
.layout-builder__link--configure,
.ui-widget,
.ui-menu,
.ui-menu-item-wrapper,
.dropbutton__item a {
  color: #111 !important;
  background: #fff !important;
}

.ui-menu .ui-state-active,
.ui-menu .ui-state-focus,
.ui-menu-item-wrapper:hover,
.dropbutton__item a:hover {
  color: #fff !important;
  background: #0057b8 !important;
}

/* ── Center News & Activities - Large cards (matching style) ────────────────────── */
/* Center News - same large horizontal layout as Center Activities */
.path--center-news .view-content .item-list > ul {
  display: flex !important;
  flex-direction: column !important;
  gap: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.path--center-news .view-content .item-list > ul > li {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.path--center-news .article-teaser-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.path--center-news .article-teaser-card__media-link {
  display: block !important;
  flex: 0 0 500px !important;
}

.path--center-news .article-teaser-card__media,
.path--center-news .center-news-card__media {
  aspect-ratio: 16 / 10 !important;
  height: auto !important;
  min-height: 280px !important;
  max-height: 350px !important;
}

.path--center-news .article-teaser-card__content {
  min-width: 0 !important;
  padding: 1.25rem 1.5rem !important;
}

.path--center-news .article-teaser-card h2,
.path--center-news .article-teaser-card h3,
.path--center-news .article-teaser-card h6 {
  margin-bottom: 0.5rem !important;
  font-size: 1.25rem !important;
  line-height: 1.3 !important;
}

.path--center-news .article-teaser-card .mb-2 {
  margin-bottom: 0.5rem !important;
}

.path--center-news .article-teaser-card .text-sm.leading-6 {
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

.path--center-news .article-teaser-card .line-clamp-3 {
  display: -webkit-box !important;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
}

.path--center-news .article-teaser-card__media-inner img {
  object-fit: contain !important;
  object-position: center !important;
  background: #f3f4f6;
}

@media (max-width: 767px) {
  .path--center-news .article-teaser-card {
    flex-direction: column !important;
    max-width: 100% !important;
  }

  .path--center-news .article-teaser-card__media-link {
    flex: 0 0 auto !important;
  }

  .path--center-news .article-teaser-card__media,
  .path--center-news .center-news-card__media {
    height: 160px !important;
    min-height: auto !important;
  }
}

.center-news-wrapper .article-teaser-card {
  max-width: 100%;
}

.center-news-wrapper .article-teaser-card__media {
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 280px;
  max-height: 350px;
}

.center-news-wrapper .article-teaser-card__media-inner,
.center-news-wrapper .article-teaser-card__media-inner img {
  object-fit: contain;
  height: 100%;
  width: 100%;
  background: #f3f4f6;
}

/* Center Activities - keep horizontal layout but adjust sizes */
.center-activities-wrapper .article-teaser-card {
  max-width: 100%;
}

/* ── Custom Footer (using UMD design tokens) ──────────────────────── */
.umd-custom-footer {
  background: var(--umd-color-gray-lighter); /* matches screenshot exactly */
  border-top: 1px solid var(--umd-color-gray-light);
  padding: var(--umd-space-2xl) 0;
  font-family: var(--sanSerif);
  font-size: var(--umd-font-size-sm);
  color: var(--umd-color-gray-darker);
}

.umd-custom-footer__inner {
  display: flex;
  align-items: center;
  gap: var(--umd-space-xl);
  flex-wrap: wrap;
  max-width: var(--umd-space-maxWidth-normal);
  margin: 0 auto;
  padding: 0 var(--umd-space-lg);
}

.umd-custom-footer__logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--umd-space-md);
  flex-shrink: 0;
}

.umd-custom-footer__logo img,
.umd-custom-footer__logo svg {
  height: auto !important;
  width: auto !important;
  display: block;
}

/* First logo (UMD Department logo) - constrain to smaller size */
.umd-custom-footer__logos .umd-custom-footer__logo--1 img,
.umd-custom-footer__logos .umd-custom-footer__logo--1 svg {
  max-height: 75px !important;
  width: auto !important;
  height: auto !important;
}

/* Second logo (Geospatial Analytics) - make much larger to match first logo visually */
.umd-custom-footer__logos .umd-custom-footer__logo--2 img,
.umd-custom-footer__logos .umd-custom-footer__logo--2 svg {
  max-height: 85px !important;
  width: auto !important;
  height: auto !important;
}

.umd-custom-footer__contact {
  flex: 1;
  min-width: 220px;
}

.umd-custom-footer__tagline {
  font-weight: 700;
  font-size: var(--umd-font-size-base);
  margin: 0 0 var(--umd-space-xs);
}

.umd-custom-footer__site-name {
  display: block;
  margin-bottom: var(--umd-space-xs);
}

.umd-custom-footer__address {
  font-style: normal;
  margin: 0 0 var(--umd-space-xs);
  color: var(--umd-color-gray-dark);
}

.umd-custom-footer__contact-links a {
  color: var(--umd-color-gray-darker);
  text-decoration: none;
}

.umd-custom-footer__contact-links a:hover {
  text-decoration: underline;
}

.umd-custom-footer__social-wrap {
  flex-shrink: 0;
}

.umd-custom-footer__social-label {
  font-weight: 700;
  font-size: var(--umd-font-size-sm);
  margin: 0 0 var(--umd-space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--umd-color-gray-dark);
}

.umd-custom-footer__social {
  display: flex;
  align-items: center;
  gap: var(--umd-space-xs);
}

.umd-custom-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--umd-color-gray-medium);
  border-radius: 4px;
  color: var(--umd-color-gray-darker);
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.umd-custom-footer__social-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.umd-custom-footer__social-link:hover {
  background: var(--umd-color-gray-darker);
  color: var(--umd-color-white);
  border-color: var(--umd-color-gray-darker);
}

@media (max-width: 48rem) {
  .umd-custom-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ── Footer legal bar ───────────────────────────────────────────────── */
.umd-custom-footer__legal {
  background: var(--umd-color-gray-light);
  border-top: 1px solid var(--umd-color-gray-medium);
  padding: var(--umd-space-md) 0;
  font-size: var(--umd-font-size-sm);
  color: var(--umd-color-gray-dark);
}

.umd-custom-footer__legal-inner {
  display: flex;
  align-items: center;
  gap: var(--umd-space-xl);
  max-width: var(--umd-space-maxWidth-normal);
  margin: 0 auto;
  padding: 0 var(--umd-space-lg);
  flex-wrap: wrap;
}

.umd-custom-footer__legal-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.umd-custom-footer__legal-links li {
  display: flex;
  align-items: center;
}

/* Pipe separator between links */
.umd-custom-footer__legal-links li + li::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  background: var(--umd-color-gray-mediumAA);
  margin: 0 var(--umd-space-md);
}

.umd-custom-footer__legal-links a {
  color: var(--umd-color-gray-dark);
  text-decoration: none;
}

.umd-custom-footer__legal-links a:hover {
  text-decoration: underline;
  color: var(--umd-color-gray-darker);
}

.umd-custom-footer__copyright {
  margin: 0;
  color: var(--umd-color-gray-dark);
}

@media (max-width: 48rem) {
  .umd-custom-footer__legal-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--umd-space-sm);
  }
}

/* Research Areas Styling */
/* Center the section and heading */
.region-content:has(.view-project-research-area) {
  text-align: center;
}

.region-content:has(.view-project-research-area) > h1,
.region-content:has(.view-project-research-area) > h2,
.region-content:has(.view-project-research-area) > h3 {
  text-align: center;
}

.page-content:has(.view-project-research-area) > h1,
.page-content:has(.view-project-research-area) > h2,
.page-content:has(.view-project-research-area) > h3 {
  text-align: center;
}

/* Fallback for browsers that don't support :has() */
.container.page-content h1,
.container.page-content h2,
.container.page-content h3 {
  text-align: center;
}

/* Reset text alignment for other content */
.container.page-content .view-content {
  text-align: left;
}

.view-project-research-area {
  text-align: center;
}

.view-project-research-area .view-content {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.view-project-research-area table {
  border: 2px solid var(--umd-color-gray-light);
  border-radius: 20px;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  max-width: 1200px;
  padding: 2rem 3rem;
  background-color: var(--umd-color-white);
}

.view-project-research-area table:not(.cols-2) tbody {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  text-align: left;
}

.view-project-research-area table:not(.cols-2) tr.views-row {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 0;
}

.view-project-research-area table:not(.cols-2) td.views-field {
  display: block;
  padding: 0;
  border: none;
  margin: 0;
  text-align: left;
  width: 100%;
}

.view-project-research-area table:not(.cols-2) td.views-field a {
  display: inline-block;
  padding: 0;
  text-decoration: none;
  color: var(--umd-color-red);
  font-size: 1.25rem;
  font-weight: 400;
  transition: color 0.2s ease;
  text-align: left;
}

.view-project-research-area table:not(.cols-2) td.views-field a:hover,
.view-project-research-area table:not(.cols-2) td.views-field a:focus {
  color: var(--umd-color-redDark);
  text-decoration: underline;
}

/* Ensure headings and all content within table cells are left-aligned */
.view-project-research-area table:not(.cols-2) td.views-field h1,
.view-project-research-area table:not(.cols-2) td.views-field h2,
.view-project-research-area table:not(.cols-2) td.views-field h3,
.view-project-research-area table:not(.cols-2) td.views-field h4,
.view-project-research-area table:not(.cols-2) td.views-field h5,
.view-project-research-area table:not(.cols-2) td.views-field h6,
.view-project-research-area table:not(.cols-2) td.views-field p,
.view-project-research-area table:not(.cols-2) td.views-field div {
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
}

/* Override any heading link centering */
.view-project-research-area table:not(.cols-2) td.views-field h1 a,
.view-project-research-area table:not(.cols-2) td.views-field h2 a,
.view-project-research-area table:not(.cols-2) td.views-field h3 a,
.view-project-research-area table:not(.cols-2) td.views-field h4 a,
.view-project-research-area table:not(.cols-2) td.views-field h5 a,
.view-project-research-area table:not(.cols-2) td.views-field h6 a {
  display: inline-block;
  text-align: left !important;
  margin: 0;
  padding: 0;
}

@media (max-width: 767px) {
  .view-project-research-area table {
    padding: 1.5rem 2rem;
  }

  .view-project-research-area td.views-field a {
    font-size: 1.1rem;
  }
}

/* Projects Table Styling */
table.cols-2 {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  display: table;
}

table.cols-2 thead {
  background-color: var(--umd-color-gray-lighter);
  display: table-header-group;
}

table.cols-2 thead tr {
  display: table-row;
}

table.cols-2 thead th {
  display: table-cell;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--umd-color-gray-light);
  vertical-align: bottom;
}

/* Fix for rows displaying vertically - override Bootstrap classes */
table.cols-2 tbody {
  display: table-row-group;
}

table.cols-2 tbody tr {
  display: table-row !important;
  width: auto !important;
  flex: none !important;
  border-bottom: 1px solid var(--umd-color-gray-light);
}

table.cols-2 tbody td {
  display: table-cell !important;
  width: 50% !important;
  padding: 1rem;
  vertical-align: top;
  flex: none !important;
}

/* Ensure links don't add extra spacing */
table.cols-2 tbody td a {
  display: inline;
}

table.cols-2 tbody tr:hover {
  background-color: var(--umd-color-gray-lightest);
}

table.cols-2 a {
  color: var(--umd-color-red);
  text-decoration: none;
}

table.cols-2 a:hover,
table.cols-2 a:focus {
  color: var(--umd-color-redDark);
  text-decoration: underline;
}

/* Responsive table for mobile */
@media (max-width: 767px) {
  table.cols-2 thead {
    display: none;
  }

  table.cols-2 tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--umd-color-gray-light);
    border-radius: 8px;
    padding: 1rem;
  }

  table.cols-2 tbody td {
    display: block;
    padding: 0.5rem 0;
    border: none;
    width: 100%;
  }

  table.cols-2 tbody td::before {
    content: attr(headers);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
    text-transform: capitalize;
  }

  table.cols-2 tbody td.views-field-title::before {
    content: "Project: ";
  }

  table.cols-2 tbody td.views-field-field-mt-project-lead::before {
    content: "Lead Faculty: ";
  }
}

/* Field Area of Innovation Styling */
.field--name-field-area-of-innovation {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: var(--umd-color-gray-lightest);
  border-radius: 8px;
}

.field--name-field-area-of-innovation .field__label {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--umd-color-gray-darker);
}

.field__label {
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.field__label::before {
  content: "";
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.25rem;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23E21833"><path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

.field--name-field-area-of-innovation .field__items {
  margin-top: 0.5rem;
}

.field--name-field-area-of-innovation .field__item {
  margin-bottom: 0.5rem;
}

.field--name-field-area-of-innovation a {
  color: var(--umd-color-red);
  text-decoration: none;
  font-size: 1rem;
}

.field--name-field-area-of-innovation a:hover,
.field--name-field-area-of-innovation a:focus {
  color: var(--umd-color-redDark);
  text-decoration: underline;
}

/* Read More Arrow Icon Styles */
.arrow-icon {
  margin-left: 0.5rem;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.arrow-icon svg {
  width: 1rem;
  height: 1rem;
  vertical-align: middle;
  fill: currentColor;
}

.arrow-icon svg path {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0.75;
}

a:hover .arrow-icon,
a:focus .arrow-icon {
  transform: translateX(4px);
}

/* Add arrow to Read More links using pseudo-element */
a[href*="read-more"]::after,
a.card-cta::after,
.article-teaser-card__content a[href]:last-child::after,
ul.links.inline a::after {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 0.5rem;
  margin-left: 0.5rem;
  background-image: url('data:image/svg+xml;utf8,<svg title="forward arrow icon" aria-hidden="true" viewBox="0 0 24 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.0184 5.05487L17.0694 8H19.8462L23.8959 4.03913L23.8567 4L23.8959 3.96087L19.8462 0L17.0694 0L20.2936 3.22002H0L0 5.05487H20.0184Z" fill="%23E21833" stroke="%23E21833" stroke-width="0.5"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

a[href*="read-more"]:hover::after,
a.card-cta:hover::after,
.article-teaser-card__content a[href]:last-child:hover::after,
ul.links.inline a:hover::after {
  transform: translateX(4px);
}

/* Center align Read More links in taxonomy term lists */
.center-activities-list ul.links.inline,
.field--name-field-area-of-innovation ul.links.inline {
  text-align: left;
  padding: 0;
  margin: 0.5rem 0 0 0;
  list-style: none;
}

.center-activities-list ul.links.inline li,
.field--name-field-area-of-innovation ul.links.inline li {
  padding: 0;
  margin: 0;
}

/* Center the content block but keep text left-aligned */
.center-activities-list > li,
.field--name-field-area-of-innovation .field__item {
  max-width: 800px;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0;
  text-align: left;
}

/* Ensure taxonomy term titles and content align */
.center-activities-list h2,
.center-activities-list h3,
.field--name-field-area-of-innovation h2,
.field--name-field-area-of-innovation h3 {
  padding: 0 !important;
  margin: 0 0 0.5rem 0 !important;
  text-align: left !important;
}

.center-activities-list article,
.center-activities-list .contextual-region {
  text-align: left !important;
  margin: 0 !important;
  padding: 0 !important;
}

.center-activities-list .taxonomy-term,
.field--name-field-area-of-innovation .taxonomy-term {
  padding: 0 !important;
  margin: 0 !important;
  text-align: left !important;
}

/* Force consistent alignment for all taxonomy term content */
.center-activities-list .taxonomy-term > *,
.field--name-field-area-of-innovation .taxonomy-term > * {
  padding-left: 0;
  padding-right: 0;
}

.center-activities-list .field,
.field--name-field-area-of-innovation .field {
  padding: 0;
  margin: 0;
}

.center-activities-list .field__item,
.field--name-field-area-of-innovation .field__item {
  padding: 0;
}
