@import url('https://fonts.googleapis.com/css2?family=Dosis:wght@400;500;600;700&family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&display=swap');

/* GSVMC repository homepage */
.gsvmc-home-hero {
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(34, 123, 195, .32), transparent 27rem),
    linear-gradient(125deg, #080875 0%, #2f1b72 62%, #227bc3 145%);
  border-top: 4px solid #ff5722;
  overflow: hidden;
}

ds-themed-home-news { display: block; margin-top: calc(-1 * var(--ds-content-spacing)); }
ds-home-page > ds-base-home-page > .container > ds-search-form { display: none !important; }

/* All top-level communities shown as homepage cards */
.gsvmc-community-section { padding: 2.5rem 0 4rem; }
.gsvmc-community-section--index { padding-top: 1rem; }
.gsvmc-community-index ds-community-list-page h1 { display: none !important; }
.gsvmc-community-index ds-community-list { display: block; width: 100%; }
.gsvmc-community-section__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.gsvmc-community-section__heading h2 { margin: 0 0 .35rem; color: #2f1b72; font-size: clamp(1.8rem, 3vw, 2.35rem); }
.gsvmc-community-section__heading p { margin: 0; color: #5d6472; }
.gsvmc-community-section__eyebrow { margin-bottom: .35rem !important; color: #ff5722 !important; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gsvmc-community-section__count { flex: 0 0 auto; padding: .4rem .8rem; color: #2f1b72; background: #f0edf9; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.gsvmc-community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gsvmc-community-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 128px;
  gap: 1rem;
  padding: 1.25rem 3rem 1.25rem 1.25rem;
  color: #202435 !important;
  background: #fff;
  border: 1px solid #e3deef;
  border-top: 4px solid #2f1b72;
  border-radius: .85rem;
  box-shadow: 0 7px 24px rgba(47, 27, 114, .08);
  text-decoration: none !important;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.gsvmc-community-card:hover,
.gsvmc-community-card:focus-visible { transform: translateY(-3px); border-color: #ff5722; box-shadow: 0 13px 30px rgba(47, 27, 114, .16); }
.gsvmc-community-card__icon { display: grid; flex: 0 0 48px; width: 48px; height: 48px; place-items: center; color: #fff; background: #2f1b72; border-radius: .8rem; font-size: 1.2rem; }
.gsvmc-community-card__body { display: flex; min-width: 0; flex-direction: column; gap: .3rem; }
.gsvmc-community-card__body strong { color: #2f1b72; font-size: 1.05rem; line-height: 1.3; }
.gsvmc-community-card__body > span { color: #6b7280; font-size: .85rem; }
.gsvmc-community-card__arrow { position: absolute; right: 1.2rem; color: #ff5722; }

/* Community, sub-community, collection, and scoped search pages */
ds-community-page .comcol-header,
ds-collection-page .comcol-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'title' 'handle' 'content';
  gap: .75rem 2rem;
  width: 100%;
  margin: 1rem 0 1.75rem;
  padding: 2rem;
  color: #202435;
  background: linear-gradient(135deg, #fff 0%, #f7f5fc 100%) !important;
  border: 1px solid #e3deef;
  border-left: 6px solid #ff5722;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(47, 27, 114, .1) !important;
}
ds-community-page .comcol-header:has(ds-comcol-page-logo),
ds-collection-page .comcol-header:has(ds-comcol-page-logo) {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 230px);
  grid-template-areas: 'title logo' 'handle logo' 'content logo';
  align-items: center;
}
ds-comcol-page-header { grid-area: title; }
ds-comcol-page-header h1 { margin: 0; color: #2f1b72 !important; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; }
ds-comcol-page-logo { grid-area: logo; }
ds-comcol-page-logo .dso-logo { display: grid; max-width: 220px; height: 190px; margin: 0 auto !important; place-items: center; overflow: hidden; background: #fff; border: 1px solid #e3deef; border-radius: .85rem; }
ds-comcol-page-logo .dso-logo img { width: 100% !important; height: 100% !important; padding: .6rem; object-fit: contain; }
ds-comcol-page-handle { grid-area: handle; }
ds-comcol-page-handle p { margin: 0; color: #606878; font-size: .9rem; }
ds-comcol-page-handle a { color: #227bc3 !important; }
ds-comcol-page-content { grid-area: content; }

.comcol-page-browse-section {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #ebe7f3;
  border-radius: 1rem;
  box-shadow: 0 8px 28px rgba(47, 27, 114, .07);
}
.comcol-browse-label { margin-bottom: 1rem; color: #2f1b72 !important; }
.comcol-browse .list-group-horizontal { flex-wrap: wrap; gap: .45rem; }
.comcol-browse .list-group-item { color: #2f1b72; background: #f7f5fc; border: 1px solid #e3deef !important; border-radius: 999px !important; }
.comcol-browse .list-group-item:hover { color: #fff; background: #227bc3; }
.comcol-browse .list-group-item.active { color: #fff !important; background: #2f1b72 !important; border-color: #2f1b72 !important; }

ds-object-list li[data-test='list-object'] {
  width: 100%;
  margin: .65rem 0 !important;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #e3deef;
  border-left: 4px solid #2f1b72;
  border-radius: .75rem;
  box-shadow: 0 5px 18px rgba(47, 27, 114, .06);
}
ds-object-list li[data-test='list-object']:hover { border-left-color: #ff5722; box-shadow: 0 8px 24px rgba(47, 27, 114, .12); }
ds-object-list li[data-test='list-object'] ds-listable-object-component-loader { width: 100%; }
ds-community-search-result-list-element .row > div,
ds-collection-search-result-list-element .row > div { width: 100%; margin-left: 0 !important; }
ds-community-search-result-list-element a.lead,
ds-collection-search-result-list-element a.lead { color: #2f1b72 !important; font-weight: 700; }
ds-community-search-result-list-element .badge,
ds-collection-search-result-list-element .badge { background: #227bc3 !important; }

ds-comcol-search-section #search-form .input-group { box-shadow: 0 5px 18px rgba(47, 27, 114, .08); }
ds-comcol-search-section h2,
ds-comcol-search-section h3 { color: #2f1b72; }

/* Publication-only repository search */
.gsvmc-item-search ds-search-sidebar { display: none !important; }
.gsvmc-item-search .row-with-sidebar > .col-md-9 { width: 100%; max-width: 100%; }
.gsvmc-publication-results { width: 100%; max-width: 100%; padding: 1rem 0 3rem; box-sizing: border-box; overflow: hidden; }
.gsvmc-publication-results__heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.gsvmc-publication-results__heading h1 { margin: 0; color: #2f1b72 !important; font-size: clamp(2rem, 4vw, 3rem); }
.gsvmc-publication-results__intro { max-width: 760px; margin: .5rem 0 0; color: #606878; }
.gsvmc-publication-results__empty { display: flex; width: 100%; min-width: 0; align-items: center; gap: 1.25rem; padding: 2rem; box-sizing: border-box; background: #fff; border: 1px solid #e3deef; border-left: 5px solid #ff5722; border-radius: 1rem; box-shadow: 0 8px 28px rgba(47, 27, 114, .08); }
.gsvmc-publication-results__empty h2 { margin: 0 0 .35rem; color: #2f1b72; font-size: 1.35rem; }
.gsvmc-publication-results__empty p { margin: 0; color: #606878; }
.gsvmc-publication-results__empty-icon,
.gsvmc-publication-card__icon { display: grid; flex: 0 0 52px; width: 52px; height: 52px; place-items: center; color: #fff; background: #2f1b72; border-radius: .85rem; font-size: 1.25rem; }
.gsvmc-publication-results__list { display: grid; gap: .85rem; }
.gsvmc-search-group { margin-top: 2rem; }
.gsvmc-search-group__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; padding-bottom: .55rem; border-bottom: 2px solid #e3deef; }
.gsvmc-search-group__heading h2 { margin: 0; color: #2f1b72; font-size: 1.45rem; }
.gsvmc-search-group__heading span { display: grid; min-width: 2rem; height: 2rem; place-items: center; color: #fff; background: #227bc3; border-radius: 999px; font-weight: 700; }
.gsvmc-publication-card { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 104px; padding: 1.15rem 3.25rem 1.15rem 1.15rem; color: #202435 !important; background: #fff; border: 1px solid #e3deef; border-left: 5px solid #2f1b72; border-radius: .85rem; box-shadow: 0 6px 22px rgba(47, 27, 114, .07); text-decoration: none !important; }
.gsvmc-publication-card:hover { border-left-color: #ff5722; box-shadow: 0 10px 28px rgba(47, 27, 114, .14); }
.gsvmc-publication-card__body { display: flex; min-width: 0; flex-direction: column; gap: .3rem; }
.gsvmc-publication-card__type { color: #ff5722 !important; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gsvmc-publication-card__body strong { color: #2f1b72; font-size: 1.08rem; }
.gsvmc-publication-card__body > span { color: #687080; }
.gsvmc-publication-card__arrow { position: absolute; right: 1.25rem; color: #ff5722; }

@media (max-width: 991.98px) { .gsvmc-community-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gsvmc-home-hero__inner {
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  align-items: center;
  gap: 4rem;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.gsvmc-home-hero__copy { min-width: 0; }

.gsvmc-home-hero__eyebrow {
  margin: 0 0 .75rem;
  color: #ff8a65;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.gsvmc-home-hero h1 {
  max-width: 800px;
  margin: 0 0 1rem;
  color: #fff !important;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  text-shadow: 0 3px 15px rgba(0, 0, 0, .24);
}

.gsvmc-home-hero__lead {
  max-width: 780px;
  margin-bottom: 1rem;
  color: #fff;
  font-family: 'Merriweather', serif;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.65;
}

.gsvmc-home-hero__text {
  max-width: 760px;
  margin-bottom: 1.75rem;
  color: #dce3ff;
  font-size: 1rem;
  line-height: 1.65;
}

.gsvmc-home-hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.gsvmc-home-hero__actions .btn { border-radius: 999px; padding: .75rem 1.4rem; font-weight: 700; }
.gsvmc-home-hero__primary { color: #2f1b72 !important; background: #fff !important; border: 2px solid #fff !important; }
.gsvmc-home-hero__secondary { color: #fff !important; background: transparent !important; border: 2px solid rgba(255,255,255,.72) !important; }
.gsvmc-home-hero__actions .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.18); }

.gsvmc-hero-search { width: 100%; padding: 1.65rem; color: #202435; background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.78); border-radius: 1.25rem; box-shadow: 0 22px 55px rgba(0,0,0,.28); }
.gsvmc-hero-search label { display: block; margin-bottom: .35rem; color: #2f1b72; font-size: 1.45rem; font-weight: 700; }
.gsvmc-hero-search p { margin: 0 0 1rem; color: #606878; line-height: 1.45; }
.gsvmc-hero-search__group { display: flex; width: 100%; }
.gsvmc-hero-search__group input { min-width: 0; flex: 1 1 auto; padding: .85rem 1rem; background: #fff; border: 1px solid #d9d4e6; border-right: 0; border-radius: .7rem 0 0 .7rem; font: inherit; }
.gsvmc-hero-search__group input:focus { border-color: #227bc3; outline: 3px solid rgba(34,123,195,.18); }
.gsvmc-hero-search__group button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .85rem 1.05rem; color: #fff; background: #ff5722; border: 1px solid #ff5722; border-radius: 0 .7rem .7rem 0; font: inherit; font-weight: 700; }
.gsvmc-hero-search__group button:hover { background: #e64a19; border-color: #e64a19; }

@media (max-width: 767.98px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  nav#desktop-navbar { display: none !important; }
  ds-lang-switch { display: none !important; }
  ds-search-navbar { display: none !important; }
  #header-left > a::after { margin-left: 10px !important; font-size: 22px !important; }
  /* Keep the repository login discoverable on phones; the old icon-only rule
     hid the label and left users without an obvious sign-in action. */
  ds-auth-nav-menu .loginLink {
    display: inline-flex !important;
    align-items: center;
    gap: .35rem;
    max-width: none !important;
    min-width: max-content;
    overflow: visible !important;
    padding: .5rem .75rem !important;
    font-size: .9rem !important;
    white-space: nowrap;
  }
  .gsvmc-home-hero__inner {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding: 3rem 1.25rem;
    box-sizing: border-box;
  }
  .gsvmc-home-hero__copy { width: 100%; max-width: 100%; }
  .gsvmc-home-hero__brand { display: block; width: calc(100vw - 3rem); max-width: calc(100vw - 3rem); }
  .gsvmc-home-hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3rem);
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .gsvmc-home-hero h1 span { display: block; }
  .gsvmc-home-hero__lead,
  .gsvmc-home-hero__text { width: min(19rem, 100%); max-width: 100%; overflow-wrap: break-word; white-space: normal; }
  .gsvmc-home-hero__actions { width: calc(100vw - 3rem); max-width: calc(100vw - 3rem); flex-direction: column; }
  .gsvmc-home-hero__actions .btn { width: calc(100% - 1.5rem) !important; max-width: calc(100% - 1.5rem); text-align: center; }
  .gsvmc-hero-search { padding: 1.25rem; box-sizing: border-box; }
  .gsvmc-home-hero__brand .gsvmc-hero-search { width: calc(100vw - 4.5rem) !important; max-width: calc(100vw - 4.5rem) !important; }
  .gsvmc-hero-search__group { width: calc(100% - 1.5rem); max-width: calc(100% - 1.5rem); }
  .gsvmc-hero-search label { font-size: 1.25rem; }
  .gsvmc-hero-search__group button { flex: 0 0 48px; width: 48px; padding-right: 0; padding-left: 0; }
  .gsvmc-hero-search__group button span { display: none; }
  .gsvmc-community-section { width: calc(100vw - 1.5rem); max-width: calc(100vw - 1.5rem); padding: 2rem 1.5rem 3rem; box-sizing: border-box; overflow: hidden; }
  .gsvmc-community-section--index { width: calc(100vw - 1.5rem); max-width: calc(100vw - 1.5rem); padding-right: 0; padding-left: 0; overflow: visible; }
  .gsvmc-community-section__heading { align-items: start; flex-direction: column; gap: .75rem; }
  .gsvmc-community-section__heading > div,
  .gsvmc-community-section__heading p { max-width: calc(100vw - 6rem); overflow-wrap: anywhere; }
  .gsvmc-community-grid { width: calc(100vw - 4.5rem); max-width: calc(100vw - 4.5rem); grid-template-columns: minmax(0, 1fr); }
  .gsvmc-community-section--index .gsvmc-community-grid { width: calc(100vw - 3rem) !important; max-width: calc(100vw - 3rem) !important; }
  .gsvmc-community-card { width: calc(100% - 1.5rem) !important; max-width: calc(100% - 1.5rem); min-width: 0; min-height: 110px; box-sizing: border-box; }
  .gsvmc-community-card__body strong { overflow-wrap: anywhere; }
  .gsvmc-community-card__arrow { display: none; }
  ds-home-page > ds-base-home-page > .container:has(> ds-search-form) { width: calc(100vw - 3rem); max-width: calc(100vw - 3rem); margin: 1.25rem auto .25rem; padding: 0; box-sizing: border-box; }
  ds-home-page > ds-base-home-page > .container > ds-search-form .input-group { width: calc(100vw - 4.5rem) !important; max-width: calc(100vw - 4.5rem) !important; flex-wrap: nowrap; }
  ds-home-page > ds-base-home-page > .container > ds-search-form input { min-width: 0; }
  ds-home-page > ds-base-home-page > .container > ds-search-form .search-button { flex: 0 0 46px; width: 46px; padding-right: 0; padding-left: 0; overflow: hidden; font-size: 0; }
  ds-home-page > ds-base-home-page > .container > ds-search-form .search-button i { font-size: 1rem; }
  ds-community-page .comcol-header,
  ds-collection-page .comcol-header,
  ds-community-page .comcol-header:has(ds-comcol-page-logo),
  ds-collection-page .comcol-header:has(ds-comcol-page-logo) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'title' 'logo' 'handle' 'content';
    padding: 1.25rem;
  }
  ds-comcol-page-logo .dso-logo { width: 100%; max-width: 240px; height: 220px; }
  .comcol-page-browse-section { padding: 1rem; }
  ds-comcol-search-section { display: block; width: calc(100vw - 4rem); max-width: 100%; overflow: hidden; }
  ds-comcol-search-section .container { width: 100%; max-width: 100%; padding-right: 0; padding-left: 0; }
  ds-comcol-search-section #search-form .input-group { width: 100%; flex-wrap: nowrap; }
  ds-comcol-search-section #search-form input { min-width: 0; }
  ds-comcol-search-section #search-form .search-button { flex: 0 0 48px; width: 48px; padding-right: 0; padding-left: 0; overflow: hidden; font-size: 0; }
  ds-comcol-search-section #search-form .search-button i { font-size: 1rem; }
  .gsvmc-publication-results__heading { align-items: start; flex-direction: column; gap: .75rem; }
  .gsvmc-publication-results { width: calc(100vw - 1.5rem); max-width: calc(100vw - 1.5rem); }
  .gsvmc-publication-results__empty { width: calc(100vw - 3rem); max-width: calc(100vw - 3rem); align-items: flex-start; padding: 1.25rem; }
  .gsvmc-publication-results__empty > div { min-width: 0; }
  .gsvmc-publication-results__empty h2,
  .gsvmc-publication-results__empty p { overflow-wrap: anywhere; }
  .gsvmc-publication-results__empty > div { width: calc(100vw - 8rem); max-width: calc(100vw - 8rem); }
  .gsvmc-item-search #search-content > .search-controls { display: none !important; }
  .gsvmc-item-search ds-search-form .input-group { width: calc(100vw - 1.5rem); max-width: calc(100vw - 1.5rem); flex-wrap: nowrap; }
  .gsvmc-item-search ds-search-form .scope-button { flex: 0 0 119px; }
  .gsvmc-item-search ds-search-form input { min-width: 0; }
  .gsvmc-item-search ds-search-form .search-button { flex: 0 0 46px; width: 46px; padding-right: 0; padding-left: 0; overflow: hidden; font-size: 0; }
  .gsvmc-item-search ds-search-form .search-button i { font-size: 1rem; }
  .gsvmc-publication-card { min-width: 0; padding-right: 1rem; }
  .gsvmc-publication-card__body strong { overflow-wrap: anywhere; }
  .gsvmc-publication-card__arrow { display: none; }
  html.gsvmc-scoped-search .gsvmc-publication-results,
  html.gsvmc-scoped-search .gsvmc-publication-results__empty,
  html.gsvmc-scoped-search .gsvmc-publication-results__heading,
  html.gsvmc-scoped-search ds-search-form .input-group {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  html.gsvmc-scoped-search .gsvmc-publication-results__heading > div,
  html.gsvmc-scoped-search .gsvmc-publication-results__empty > div {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  html.gsvmc-scoped-search .gsvmc-publication-results__heading > div {
    width: 100% !important;
  }
  html.gsvmc-scoped-search .gsvmc-publication-results__empty > div {
    width: 0 !important;
    flex: 1 1 0;
  }
  html.gsvmc-scoped-search .gsvmc-publication-results__intro,
  html.gsvmc-scoped-search .gsvmc-publication-results__empty p {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  html.gsvmc-scoped-search .comcol-page-browse-section,
  html.gsvmc-scoped-search ds-community-page .comcol-header,
  html.gsvmc-scoped-search ds-collection-page .comcol-header {
    width: calc(100vw - 1.5rem) !important;
    max-width: calc(100vw - 1.5rem) !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
  }
}

:root {
  --bs-primary: #2f1b72 !important;
  --bs-primary-rgb: 47, 27, 114 !important;
  --bs-body-bg: #F7F6F2 !important;
  --bs-body-font-family: 'Dosis', sans-serif !important;
  --bs-font-sans-serif: 'Dosis', sans-serif !important;
  --ds-header-bg: #2f1b72 !important;
  --ds-header-icon-color: #ffffff !important;
  --ds-header-icon-color-hover: #cccccc !important;
}

body {
  font-family: 'Dosis', sans-serif !important;
  background-color: #F7F6F2 !important;
  color: #333333 !important;
}

/* Keep authenticated admin-sidebar padding inside the available viewport. */
.outer-wrapper,
.outer-wrapper .inner-wrapper,
#main-content {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.outer-wrapper .inner-wrapper {
  width: auto;
}

/* Preserve the authenticated administration rail's collapsible flyout. */
ds-admin-sidebar {
  overflow: visible !important;
  z-index: 2100 !important;
}

ds-admin-sidebar nav#admin-sidebar,
ds-admin-sidebar .sidebar-section-wrapper,
ds-admin-sidebar .sidebar-collapsible-element-outer-wrapper,
ds-admin-sidebar .sidebar-collapsible-element-inner-wrapper {
  overflow-x: visible !important;
}

ds-admin-sidebar nav#admin-sidebar,
ds-admin-sidebar .sidebar-collapsible-element-outer-wrapper {
  position: relative;
  z-index: 2101 !important;
}

ds-admin-sidebar:hover nav#admin-sidebar,
ds-admin-sidebar:focus-within nav#admin-sidebar {
  max-width: calc(var(--ds-admin-sidebar-fixed-element-width) + var(--ds-admin-sidebar-collapsible-element-width)) !important;
}

/* Header Replicating OPAC */
ds-themed-header header {
  background-color: #2f1b72 !important;
  box-shadow: 0 2px 15px rgba(0,0,0,0.15) !important;
  margin-bottom: 0 !important;
}

ds-themed-header header .navbar {
  background-color: #2f1b72 !important;
}

ds-themed-header header a.nav-link,
ds-themed-header header .navbar-nav .nav-link,
ds-themed-header header .navbar-light .navbar-nav .nav-link {
  color: #cccccc !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  transition: all 0.3s ease;
  font-family: 'Dosis', sans-serif !important;
}

ds-themed-header header a.nav-link:hover,
ds-themed-header header .navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

/* Accessible contrast for DSpace navigation and supporting interface text */
ds-themed-header header .navbar a,
ds-themed-header header .navbar button,
ds-themed-header header .navbar .nav-link,
ds-themed-header header .navbar .dropdown-toggle,
ds-themed-header header #desktop-navbar .ds-menu-item,
ds-themed-header header ds-search-navbar a,
ds-themed-header header ds-lang-switch a,
ds-themed-header header ds-auth-nav-menu a {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .18);
}

ds-themed-header header .navbar a:hover,
ds-themed-header header .navbar a:focus-visible,
ds-themed-header header .navbar button:hover,
ds-themed-header header .navbar button:focus-visible,
ds-themed-header header .navbar .nav-link.active,
ds-themed-header header .navbar .show > .nav-link {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, .14) !important;
  text-decoration: none !important;
}

ds-themed-header header .navbar a:focus-visible,
ds-themed-header header .navbar button:focus-visible {
  outline: 2px solid #ff8a65 !important;
  outline-offset: 2px;
}

ds-themed-header header .dropdown-menu {
  color: #202435 !important;
  background: #ffffff !important;
  border-color: #d9d4e6 !important;
}

ds-themed-header header .dropdown-menu a,
ds-themed-header header .dropdown-menu button,
ds-themed-header header .dropdown-item {
  color: #2f1b72 !important;
  background-color: transparent !important;
  text-shadow: none;
}

ds-themed-header header .dropdown-menu a:hover,
ds-themed-header header .dropdown-menu a:focus-visible,
ds-themed-header header .dropdown-menu button:hover,
ds-themed-header header .dropdown-menu button:focus-visible,
ds-themed-header header .dropdown-item.active {
  color: #1f145e !important;
  background-color: #f0edf9 !important;
}

main .text-muted,
main .text-secondary,
main small,
main .small,
main .breadcrumb-item,
main .form-text {
  color: #555d6c !important;
}

main .breadcrumb-item a,
main a.text-muted,
main a.text-secondary {
  color: #2f1b72 !important;
  font-weight: 600;
}

main input::placeholder,
main textarea::placeholder {
  color: #687080 !important;
  opacity: 1 !important;
}

/* Logo Replacement */
#header-logo {
  content: url('/assets/gsvmc-official-logo.png') !important;
  max-height: 60px !important;
  border-radius: 5px;
  background-color: white;
  padding: 2px;
}

/* Primary Buttons */
.btn-primary {
  background-color: #2f1b72 !important;
  border-color: #2f1b72 !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #1f145e !important;
  border-color: #1f145e !important;
}

/* Search bar styling */
.search-form .form-control {
  border-radius: 4px 0 0 4px !important;
  border: 1px solid #ced4da !important;
}
.search-form .btn {
  border-radius: 0 4px 4px 0 !important;
  background-color: #2f1b72 !important;
  border-color: #2f1b72 !important;
  color: white !important;
}

/* Secondary / Outline Buttons */
.btn-outline-primary {
  color: #2f1b72 !important;
  border-color: #2f1b72 !important;
}
.btn-outline-primary:hover {
  background-color: #2f1b72 !important;
  color: #ffffff !important;
}

/* Links */
a {
  color: #2f1b72;
  text-decoration: none;
}
a.text-primary, 
.text-primary {
  color: #2f1b72 !important;
}
a:hover {
  color: #2f1b72;
  text-decoration: underline;
}

/* Cards and Containers to match OPAC clean look */
.card {
  border: none !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  border-top: 4px solid #2f1b72 !important;
}
.card-header {
  background-color: #ffffff !important;
  border-bottom: 2px solid #2f1b72 !important;
  font-weight: bold !important;
  color: #2f1b72 !important;
}

/* Badges */
.badge-primary, .badge-info {
  background-color: #2f1b72 !important;
  color: #ffffff !important;
}

/* Reading mode for item view or descriptions */
.item-page, .abstract-text, .metadata-value, .ds-item-view {
  font-family: 'Merriweather', serif !important;
  color: #2c2c2c !important;
  line-height: 1.8 !important;
}
.metadata-field {
  font-family: 'Dosis', sans-serif !important;
  font-weight: 600 !important;
  color: #2f1b72 !important;
}

/* Titles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Dosis', sans-serif !important;
  font-weight: bold !important;
  color: #2f1b72 !important;
}

/* Footer to match OPAC */
footer {
  background-color: #2f1b72 !important;
  color: white !important;
  padding-top: 40px !important;
  margin-top: 40px !important;
}
footer a {
  color: #cccccc !important;
}
footer a:hover {
  color: white !important;
}
footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  padding: 20px 0 !important;
  margin-top: 20px !important;
}




/* Inject Repository Name next to Logo safely using Flexbox */
#header-left > a {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
}

#header-left > a::after {
  content: 'GSVMC E-Repository';
  font-family: 'Dosis', sans-serif !important;
  font-size: 26px !important;
  font-weight: bold !important;
  color: white !important;
  margin-left: 15px !important;
  white-space: nowrap !important;
  letter-spacing: 0.5px !important;
}

#header-logo {
  max-height: 60px !important;
  border-radius: 5px !important;
  background-color: white !important;
  padding: 2px !important;
}


/* Make all header menu items and login menu look identical and elegant (White Pill, Navy Text) */
#desktop-navbar .ds-menu-item, 
ds-auth-nav-menu .auth-menu-item,
ds-auth-nav-menu a {
  background-color: transparent !important;
  color: white !important;
  border-radius: 4px !important;
  padding: 8px 15px !important;
  margin-left: 5px !important;
  font-family: 'Dosis', sans-serif !important;
  font-weight: 600 !important;
  border: 1px solid transparent !important;
  transition: all 0.3s ease !important;
}

#desktop-navbar .ds-menu-item:hover, 
ds-auth-nav-menu .auth-menu-item:hover,
ds-auth-nav-menu a:hover {
  background-color: rgba(255,255,255,0.1) !important;
  color: white !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* Specifically for the primary actions (like Log In) if they need to stand out gently */
ds-auth-nav-menu .auth-menu-item,
ds-auth-nav-menu a.login-icon {
  background-color: white !important;
  color: #2f1b72 !important;
  border-radius: 50px !important;
  padding: 8px 25px !important;
  font-weight: bold !important;
}
ds-auth-nav-menu .auth-menu-item:hover,
ds-auth-nav-menu a.login-icon:hover {
  background-color: #f0f0f0 !important;
  color: #2f1b72 !important;
}


/* Hide the hardcoded DSpace 9 default news component completely */


/* Ensure our injected Hero Block looks perfect */
.hero-block {
    background: linear-gradient(135deg, #2f1b72 0%, #1f145e 100%) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 60px 40px !important;
    margin-top: 20px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 10px 30px rgba(2, 23, 134, 0.2) !important;
}


/* Hide default DSpace footer elements */
footer .footer-info-list {
    display: none !important;
}
footer .footer-content > p {
    display: none !important;
}

/* Ensure our injected OPAC footer displays properly */
footer {
    display: none !important;
}
ds-footer {
    display: none !important;
}

/* Final header override: DSpace menu labels are nested below the menu host. */
ds-themed-header header #desktop-navbar,
ds-themed-header header #desktop-navbar a,
ds-themed-header header #desktop-navbar button,
ds-themed-header header #desktop-navbar span,
ds-themed-header header ds-search-navbar a,
ds-themed-header header ds-search-navbar button,
ds-themed-header header ds-search-navbar i,
ds-themed-header header ds-lang-switch a,
ds-themed-header header ds-lang-switch button,
ds-themed-header header ds-lang-switch i,
ds-themed-header header ds-auth-nav-menu a,
ds-themed-header header ds-auth-nav-menu button,
ds-themed-header header ds-auth-nav-menu span,
ds-themed-header header ds-auth-nav-menu i {
    color: #ffffff !important;
    opacity: 1 !important;
}

ds-themed-header header #desktop-navbar a:hover,
ds-themed-header header #desktop-navbar a:focus-visible,
ds-themed-header header #desktop-navbar button:hover,
ds-themed-header header #desktop-navbar button:focus-visible,
ds-themed-header header ds-search-navbar a:hover,
ds-themed-header header ds-search-navbar a:focus-visible,
ds-themed-header header ds-lang-switch a:hover,
ds-themed-header header ds-lang-switch a:focus-visible,
ds-themed-header header ds-auth-nav-menu a:hover,
ds-themed-header header ds-auth-nav-menu a:focus-visible {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, .14) !important;
}

ds-themed-header header .dropdown-menu,
ds-themed-header header .dropdown-menu * {
    color: #2f1b72 !important;
    text-shadow: none !important;
}

/* GSVMC_POLISHED_LOGIN_V1 — native DSpace login, visual-only and accessibility-first. */
ds-login-page {
  display: block;
  min-height: calc(100vh - var(--ds-header-height, 72px));
  padding: clamp(2rem, 6vw, 4.5rem) 1rem;
  background:
    radial-gradient(circle at 12% 12%, rgba(34, 123, 195, .16), transparent 25rem),
    radial-gradient(circle at 90% 88%, rgba(255, 87, 34, .13), transparent 24rem),
    linear-gradient(135deg, #f7f5fc 0%, #eef5fb 100%);
}

ds-login-page ds-base-login-page {
  display: block;
  width: min(100%, 34rem);
  margin: 0 auto;
}

ds-login-page .login-container {
  width: 100%;
  padding: clamp(1.75rem, 5vw, 2.75rem) !important;
  background: rgba(255, 255, 255, .98);
  border: 1px solid #e3deef;
  border-top: 5px solid #ff5722;
  border-radius: 1.15rem;
  box-shadow: 0 20px 52px rgba(47, 27, 114, .16);
}

ds-login-page .login-logo {
  display: block;
  width: auto;
  max-width: 10rem;
  height: auto;
  margin: 0 auto 1.25rem !important;
  padding: .45rem;
  background: #fff;
  border: 1px solid #ebe7f3;
  border-radius: .85rem;
}

ds-login-page h1,
ds-login-page h2,
ds-login-page .card-title {
  color: #2f1b72 !important;
  font-weight: 700;
}

ds-login-page .form-control {
  min-height: 3.25rem;
  color: #202435;
  background: #fff;
  border: 1px solid #cfc6df;
  border-radius: .7rem;
  box-shadow: none;
}

ds-login-page .form-control:focus {
  border-color: #227bc3;
  box-shadow: 0 0 0 .24rem rgba(34, 123, 195, .18);
}

ds-login-page .btn-primary,
ds-login-page button[type="submit"] {
  min-height: 3.1rem;
  padding: .7rem 1.2rem;
  color: #fff !important;
  background: #2f1b72 !important;
  border-color: #2f1b72 !important;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(47, 27, 114, .20);
}

ds-login-page .btn-primary:hover,
ds-login-page .btn-primary:focus-visible,
ds-login-page button[type="submit"]:hover,
ds-login-page button[type="submit"]:focus-visible {
  color: #fff !important;
  background: #227bc3 !important;
  border-color: #227bc3 !important;
  transform: translateY(-1px);
}

ds-login-page a { color: #2f1b72; font-weight: 700; }
ds-login-page a:hover, ds-login-page a:focus-visible { color: #d94b20; }
ds-login-page a:focus-visible, ds-login-page button:focus-visible { outline: 3px solid rgba(255, 87, 34, .42); outline-offset: 3px; }

/* Angular header projections vary by build; inherit high contrast universally. */
ds-themed-header header,
ds-themed-header header * {
    color: #ffffff !important;
    opacity: 1 !important;
}

ds-themed-header header input,
ds-themed-header header textarea,
ds-themed-header header select,
ds-themed-header header .dropdown-menu,
ds-themed-header header .dropdown-menu * {
    color: #202435 !important;
}

ds-themed-header header input::placeholder,
ds-themed-header header textarea::placeholder {
    color: #687080 !important;
    opacity: 1 !important;
}

ds-themed-header header ds-search-navbar,
ds-themed-header header ds-search-navbar a,
ds-themed-header header ds-search-navbar button,
ds-themed-header header ds-search-navbar .btn {
    color: #ffffff !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}

ds-themed-header header ds-search-navbar a:hover,
ds-themed-header header ds-search-navbar a:focus-visible,
ds-themed-header header ds-search-navbar button:hover,
ds-themed-header header ds-search-navbar button:focus-visible {
    color: #ffffff !important;
    background: rgba(255, 255, 255, .14) !important;
}

ds-themed-header header ds-search-navbar i,
ds-themed-header header ds-search-navbar svg {
    color: #ffffff !important;
    fill: currentColor !important;
    opacity: 1 !important;
}

/* Keep the header search action an icon-only control without Bootstrap's pale tile. */
ds-themed-header header ds-search-navbar {
    display: flex;
    align-items: center;
    justify-content: center;
}

ds-themed-header header ds-search-navbar > *,
ds-themed-header header ds-search-navbar a,
ds-themed-header header ds-search-navbar button,
ds-themed-header header ds-search-navbar .btn,
ds-themed-header header ds-search-navbar a > *,
ds-themed-header header ds-search-navbar button > * {
    background: transparent !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

ds-themed-header header ds-search-navbar a,
ds-themed-header header ds-search-navbar button,
ds-themed-header header ds-search-navbar .btn {
    display: inline-flex !important;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0 !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
}

ds-themed-header header ds-search-navbar i,
ds-themed-header header ds-search-navbar svg {
    width: 1.15rem;
    height: 1.15rem;
    font-size: 1.15rem !important;
}

ds-themed-header header ds-search-navbar input,
ds-themed-header header ds-search-navbar input.form-control {
    display: none !important;
    width: 0 !important;
    min-width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

ds-themed-header header ds-search-navbar a:hover,
ds-themed-header header ds-search-navbar a:focus-visible,
ds-themed-header header ds-search-navbar button:hover,
ds-themed-header header ds-search-navbar button:focus-visible {
    background: rgba(255, 255, 255, .14) !important;
}

/* Scoped community/collection searches must size against their parent container. */
html.gsvmc-scoped-search ds-search-page,
html.gsvmc-scoped-search ds-search-page ds-base-search-page,
html.gsvmc-scoped-search ds-search-page .container,
html.gsvmc-scoped-search ds-search-form,
html.gsvmc-scoped-search ds-search-results,
html.gsvmc-scoped-search #search-content,
html.gsvmc-scoped-search .row-with-sidebar,
html.gsvmc-scoped-search .row-with-sidebar > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

html.gsvmc-scoped-search ds-search-form,
html.gsvmc-scoped-search ds-search-form form,
html.gsvmc-scoped-search ds-search-form .input-group,
html.gsvmc-scoped-search ds-search-results,
html.gsvmc-scoped-search .gsvmc-publication-results,
html.gsvmc-scoped-search .gsvmc-publication-results__empty {
    width: 100% !important;
    max-width: 100% !important;
}

html.gsvmc-scoped-search ds-search-form,
html.gsvmc-scoped-search #search-form {
    margin-left: 0 !important;
}

html.gsvmc-scoped-search ds-search-form .input-group {
    flex-wrap: nowrap;
}

html.gsvmc-scoped-search ds-search-form input {
    width: 0;
    min-width: 0;
    flex: 1 1 0;
}

html.gsvmc-scoped-search .gsvmc-publication-results {
    overflow: visible;
}

html.gsvmc-scoped-search .gsvmc-publication-results__empty > div {
    min-width: 0;
}

html.gsvmc-scoped-search #search-content .col-md-9,
html.gsvmc-scoped-search .row-with-sidebar > .col-md-9 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-left: 0 !important;
}

html.gsvmc-scoped-search .row-with-sidebar > .sidebar-content {
    display: none !important;
}

html.gsvmc-scoped-search ds-search-form .row {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

html.gsvmc-scoped-search ds-search-form [class*="offset-"] {
    margin-left: 0 !important;
}

html.gsvmc-scoped-search ds-search-form [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

@media (max-width: 767.98px) {
    html.gsvmc-scoped-search ds-search-page .container {
        width: 100% !important;
        padding-right: .75rem;
        padding-left: .75rem;
    }

    html.gsvmc-scoped-search .row-with-sidebar,
    html.gsvmc-scoped-search .row-with-sidebar.row-offcanvas {
        margin-right: 0;
        margin-left: 0;
        width: 100% !important;
    }

    html.gsvmc-scoped-search .gsvmc-publication-results__empty {
        display: grid;
        grid-template-columns: 2.75rem minmax(0, 1fr);
        gap: .85rem;
        padding: 1rem;
    }

    html.gsvmc-scoped-search .gsvmc-publication-results__empty-icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1rem;
    }

    html.gsvmc-scoped-search .gsvmc-publication-results__empty > div {
        width: auto !important;
        max-width: 100% !important;
    }

    html.gsvmc-scoped-search ds-search-form .scope-button {
        flex: 0 1 auto;
        max-width: 42%;
        min-width: 0;
    }
}

/* Repository-wide search uses the same full-width, sidebar-free results layout. */
html.gsvmc-item-search ds-search-page,
html.gsvmc-item-search ds-search-page ds-base-search-page,
html.gsvmc-item-search ds-search-page .container,
html.gsvmc-item-search ds-search-form,
html.gsvmc-item-search ds-search-results,
html.gsvmc-item-search #search-content,
html.gsvmc-item-search .row-with-sidebar,
html.gsvmc-item-search .row-with-sidebar > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

html.gsvmc-item-search .row-with-sidebar > .sidebar-content {
    display: none !important;
}

html.gsvmc-item-search #search-content .col-md-9,
html.gsvmc-item-search .row-with-sidebar > .col-md-9 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-left: 0 !important;
}

html.gsvmc-item-search ds-search-form,
html.gsvmc-item-search #search-form,
html.gsvmc-item-search ds-search-form form,
html.gsvmc-item-search ds-search-form .input-group,
html.gsvmc-item-search ds-search-results,
html.gsvmc-item-search .gsvmc-publication-results,
html.gsvmc-item-search .gsvmc-publication-results__empty {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
}

html.gsvmc-item-search ds-search-form .input-group {
    flex-wrap: nowrap;
}

html.gsvmc-item-search ds-search-form input {
    width: 0;
    min-width: 0;
    flex: 1 1 0;
}

html.gsvmc-item-search .gsvmc-publication-results {
    overflow: visible;
}

html.gsvmc-item-search .gsvmc-publication-results__empty > div {
    min-width: 0;
}

@media (max-width: 767.98px) {
    html.gsvmc-item-search ds-search-page .container {
        width: 100% !important;
        padding-right: .75rem;
        padding-left: .75rem;
    }

    html.gsvmc-item-search .row-with-sidebar,
    html.gsvmc-item-search .row-with-sidebar.row-offcanvas {
        width: 100% !important;
        margin-right: 0;
        margin-left: 0;
    }

    html.gsvmc-item-search .gsvmc-publication-results {
        width: 100% !important;
        max-width: 100% !important;
    }

    html.gsvmc-item-search .gsvmc-publication-results__empty {
        display: grid;
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: 2.75rem minmax(0, 1fr);
        gap: .85rem;
        padding: 1rem;
    }

    html.gsvmc-item-search .gsvmc-publication-results__empty-icon {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 1rem;
    }

    html.gsvmc-item-search .gsvmc-publication-results__empty > div {
        width: auto !important;
        max-width: 100% !important;
    }

    html.gsvmc-item-search .gsvmc-publication-results__empty h2,
    html.gsvmc-item-search .gsvmc-publication-results__empty p {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    /* Global mobile containment: size components from their parent, not 100vw. */
    .gsvmc-home-hero__inner,
    .gsvmc-home-hero__copy,
    .gsvmc-home-hero__brand,
    .gsvmc-home-hero__actions,
    .gsvmc-home-hero__actions .btn,
    .gsvmc-home-hero__brand .gsvmc-hero-search,
    .gsvmc-hero-search__group,
    .gsvmc-community-section,
    .gsvmc-community-section--index,
    .gsvmc-community-grid,
    .gsvmc-community-section--index .gsvmc-community-grid,
    .gsvmc-community-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .gsvmc-home-hero__inner {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .gsvmc-home-hero__actions .btn {
        display: block;
    }

    .gsvmc-home-hero__brand .gsvmc-hero-search {
        padding: 1.25rem;
    }

    .gsvmc-hero-search__group {
        display: flex;
    }

    .gsvmc-community-section {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .gsvmc-community-section--index {
        padding-right: .75rem;
        padding-left: .75rem;
    }

    .gsvmc-community-section__heading > div,
    .gsvmc-community-section__heading p {
        width: 100%;
        max-width: 100%;
    }

    ds-comcol-search-section .container {
        padding-right: .75rem;
        padding-left: 0;
    }

    html.gsvmc-scoped-search .comcol-page-browse-section,
    html.gsvmc-scoped-search ds-community-page .comcol-header,
    html.gsvmc-scoped-search ds-collection-page .comcol-header {
        width: auto !important;
        max-width: none !important;
        margin-right: .75rem;
    }

    .breadcrumb {
        min-width: 0;
        flex-wrap: wrap;
        overflow-wrap: anywhere;
    }

    .breadcrumb-item,
    .breadcrumb-item-limiter,
    .breadcrumb-item-limiter > * {
        min-width: 0;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    /* Bootstrap rows extend one half-gutter beyond their content box. */
    .gsvmc-home-hero__actions,
    .gsvmc-home-hero__brand,
    .gsvmc-community-section {
        width: calc(100% - .75rem) !important;
    }

    html.gsvmc-item-search ds-search-form .input-group,
    html.gsvmc-item-search .gsvmc-publication-results {
        width: calc(100% - .75rem) !important;
    }

    html.gsvmc-item-search .gsvmc-publication-results__empty {
        width: 100% !important;
    }

    html.gsvmc-item-search #main-content > div,
    html.gsvmc-item-search ds-search-page,
    html.gsvmc-item-search ds-base-search-page,
    html.gsvmc-item-search ds-search,
    html.gsvmc-item-search ds-base-search,
    html.gsvmc-item-search ds-page-with-sidebar,
    html.gsvmc-item-search #search-content,
    html.gsvmc-item-search .gsvmc-publication-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    html.gsvmc-item-search .gsvmc-publication-results__empty {
        overflow: hidden;
    }

    html.gsvmc-item-search .gsvmc-publication-results__empty h2,
    html.gsvmc-item-search .gsvmc-publication-results__empty p,
    html.gsvmc-item-search .gsvmc-publication-card__body,
    html.gsvmc-item-search .gsvmc-publication-card__body strong,
    html.gsvmc-item-search .gsvmc-publication-card__body > span {
        min-width: 0 !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word;
    }
}

/* High-contrast custom repository footer */
.opac-footer-container,
.opac-footer-container p,
.opac-footer-container span,
.opac-footer-container strong {
    color: #f7f8ff !important;
}

.opac-footer-container {
    z-index: 0 !important;
}

.opac-footer-container h1,
.opac-footer-container h2,
.opac-footer-container h3,
.opac-footer-container h4,
.opac-footer-container h5,
.opac-footer-container h6,
.opac-footer-container .sitename {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.opac-footer-container a,
.opac-footer-container .footer-links a {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(255, 255, 255, .45) !important;
    text-underline-offset: .18em;
}

.opac-footer-container a:hover,
.opac-footer-container a:focus-visible,
.opac-footer-container .footer-links a:hover,
.opac-footer-container .footer-links a:focus-visible {
    color: #ffb199 !important;
    text-decoration-color: #ffb199 !important;
}

.opac-footer-container a:focus-visible {
    outline: 2px solid #ffb199;
    outline-offset: 3px;
}

.opac-footer-container .credits,
.opac-footer-container .credits a {
    color: #e4e8ff !important;
}

@media (max-width: 767.98px) {
    .opac-footer-container .footer-about,
    .opac-footer-container .footer-links,
    .opac-footer-container .col-md-12 {
        width: 100% !important;
    }
}
