/* ==========================================================================
   UM PALEMBANG REPOSITORY — FULL RESPONSIVE ACADEMIC THEME (v20261128b)
   Overrides legacy EPrints auto-3.4.7.css fixed-width & display:table traps
   ========================================================================== */
:root {
  --ump-green-900: #053e2e;
  --ump-green-800: #065f46;
  --ump-green-700: #047857;
  --ump-green-600: #059669;
  --ump-green-50:  #ecfdf5;
  --ump-gold-600:  #d97706;
  --ump-gold-500:  #f59e0b;
  --ump-gold-100:  #fef3c7;
  --ump-slate-900: #0f172a;
  --ump-slate-800: #1e293b;
  --ump-slate-700: #334155;
  --ump-slate-600: #475569;
  --ump-slate-500: #64748b;
  --ump-slate-200: #e2e8f0;
  --ump-slate-100: #f1f5f9;
  --ump-slate-50:  #f8fafc;
  --ump-radius-lg: 16px;
  --ump-radius-md: 12px;
  --ump-radius-sm: 8px;
  --ump-shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.07);
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  width: 100%;
}

body.ump-body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  overflow-x: clip;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif !important;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ump-slate-800);
  background-color: var(--ump-slate-50) !important;
  background-image: none !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-align: left;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ump-green-800);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--ump-green-600);
}

/* Fluid responsive container across Ultrawide, Laptop, Tablet, and Phone */
.ump-shell {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(0.9rem, 2.5vw, 2rem);
  padding-right: clamp(0.9rem, 2.5vw, 2rem);
}

/* CRITICAL OVERRIDE: defeat auto-3.4.7.css `.ep_tm_page_content { max-width: 1024px }` */
.ump-content-card,
.ump-content-card.ep_tm_page_content,
div.ep_tm_page_content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: #ffffff;
  border: 1px solid var(--ump-slate-200);
  border-radius: var(--ump-radius-lg);
  box-shadow: var(--ump-shadow-md);
  padding: clamp(1.1rem, 2.5vw, 2.25rem);
}

.ump-page-body {
  width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* CRITICAL OVERRIDE: defeat auto-3.4.7.css `@media (max-width:570px) { footer { height: 54px; } }` */
footer.ump-footer {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  background: var(--ump-slate-900);
  color: #cbd5e1;
  margin-top: auto;
  border-top: 4px solid var(--ump-green-700);
}

/* --- Top Institutional Bar --- */
.ump-topbar {
  background: var(--ump-green-900);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8125rem;
  border-bottom: 2px solid var(--ump-gold-500);
}

.ump-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 38px;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
}

.ump-topbar__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  min-width: 0;
}

.ump-topbar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ump-gold-500);
  display: inline-block;
  flex-shrink: 0;
}

.ump-topbar__right ul.ep_tm_key_tools {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.ump-topbar__right li.ep_tm_key_tools_item,
.ump-topbar__right ul.ep_tm_key_tools li {
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
  color: #e2e8f0;
  font-size: 0.8rem;
}

.ump-topbar__right a.ep_tm_key_tools_item_link,
.ump-topbar__right a {
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  text-decoration: none !important;
  display: inline-block;
}

.ump-topbar__right a.ep_tm_key_tools_item_link:hover,
.ump-topbar__right a:hover {
  background: var(--ump-gold-500);
  color: var(--ump-slate-900) !important;
}

/* --- Sticky Main Navbar --- */
.ump-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ump-slate-200);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}

.ump-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  position: relative;
}

.ump-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  flex-shrink: 0;
}

.ump-brand__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.ump-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.ump-brand__eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--ump-green-700);
  text-transform: uppercase;
}

.ump-brand__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ump-slate-900);
  letter-spacing: -0.02em;
}

.ump-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.ump-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.ump-nav__item {
  position: relative;
}

.ump-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.72rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ump-slate-700);
  border-radius: var(--ump-radius-sm);
  white-space: nowrap;
}

.ump-nav__link:hover {
  color: var(--ump-green-800);
  background: var(--ump-green-50);
}

.ump-nav__link--has-sub::after {
  content: "\25BE";
  font-size: 0.75rem;
  opacity: 0.75;
}

.ump-dropdown {
  list-style: none;
  margin: 0;
  padding: 0.45rem;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--ump-slate-200);
  border-radius: var(--ump-radius-md);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  display: none;
  z-index: 1100;
}

.ump-nav__item--dropdown:hover .ump-dropdown,
.ump-nav__item--dropdown:focus-within .ump-dropdown {
  display: block;
}

.ump-dropdown li a {
  display: block;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ump-slate-700);
  border-radius: 6px;
}

.ump-dropdown li a:hover {
  background: var(--ump-green-50);
  color: var(--ump-green-800);
}

.ump-quicksearch {
  display: flex;
  align-items: center;
  background: var(--ump-slate-100);
  border: 1px solid var(--ump-slate-200);
  border-radius: 999px;
  padding: 0.18rem 0.22rem 0.18rem 0.8rem;
  flex-shrink: 0;
}

.ump-quicksearch:focus-within {
  background: #ffffff;
  border-color: var(--ump-green-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.ump-quicksearch__input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  font-size: 0.84rem !important;
  color: var(--ump-slate-800) !important;
  width: 165px;
  padding: 0.28rem 0.25rem !important;
}

.ump-quicksearch__btn {
  border: none !important;
  background: var(--ump-green-800) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  padding: 0.38rem 0.85rem !important;
  border-radius: 999px !important;
  min-width: 0 !important;
  cursor: pointer;
}

.ump-quicksearch__btn:hover {
  background: var(--ump-green-700) !important;
}

.ump-nav-toggle {
  display: none;
  background: var(--ump-slate-100);
  border: 1px solid var(--ump-slate-200);
  border-radius: 8px;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ump-nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--ump-slate-800);
  border-radius: 2px;
}

.ump-mobile-account {
  display: none;
}

/* --- Main Wrapper & Page Heading --- */
.ump-main {
  flex: 1;
  width: 100%;
  padding: clamp(1rem, 2.2vw, 1.85rem) 0 clamp(1.75rem, 3vw, 2.75rem);
}

.ump-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ump-slate-200);
}

h1.ep_tm_pagetitle,
h1.ep_tm_pagetitle.ump-pagetitle {
  margin: 0 !important;
  font-size: clamp(1.22rem, 2.2vw, 1.6rem) !important;
  font-weight: 800 !important;
  color: var(--ump-slate-900) !important;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-align: left !important;
}

/* --- Homepage Hero & Responsive Grid --- */
.ump-home {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ump-hero {
  background: linear-gradient(135deg, var(--ump-green-900) 0%, var(--ump-green-800) 58%, #0d6e52 100%);
  color: #ffffff;
  border-radius: var(--ump-radius-lg);
  padding: clamp(1.35rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 32px -8px rgba(6, 95, 70, 0.3);
}

.ump-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, rgba(245, 158, 11, 0) 70%);
  pointer-events: none;
}

.ump-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 0.28rem 0.8rem 0.28rem 0.4rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.ump-hero__badge img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
}

.ump-hero__title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.35rem, 2.8vw, 2.05rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  max-width: 820px;
}

.ump-hero__subtitle {
  margin: 0 0 1.35rem;
  font-size: clamp(0.9rem, 1.3vw, 1.02rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 740px;
}

.ump-hero-search {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  background: #ffffff;
  padding: 0.42rem;
  border-radius: var(--ump-radius-md);
  width: 100%;
  max-width: 780px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.ump-hero-search__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.68rem 0.9rem !important;
  font-size: 0.96rem !important;
  color: var(--ump-slate-900) !important;
  outline: none;
}

.ump-hero-search__btn {
  background: var(--ump-gold-500) !important;
  color: var(--ump-slate-900) !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 0.94rem !important;
  padding: 0.72rem 1.4rem !important;
  border-radius: 9px !important;
  min-width: 0 !important;
  max-width: none !important;
  cursor: pointer;
  white-space: nowrap;
}

.ump-hero-search__btn:hover {
  background: #fbbf24 !important;
}

.ump-hero__quicklinks {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.85);
}

.ump-hero__quicklinks a {
  color: #fde68a;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ump-hero__stats {
  margin-top: 1.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.ump-stat-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
}

.ump-stat-card__num {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 800;
  color: #fde68a;
  line-height: 1.2;
}

.ump-stat-card__label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.2rem;
}

.ump-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.ump-feature-card {
  display: flex;
  flex-direction: column;
  background: var(--ump-slate-50);
  border: 1px solid var(--ump-slate-200);
  border-radius: var(--ump-radius-md);
  padding: 1.3rem;
  color: var(--ump-slate-800);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.ump-feature-card:hover {
  background: #ffffff;
  border-color: var(--ump-green-600);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(6, 95, 70, 0.14);
}

.ump-feature-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.84rem;
  margin-bottom: 0.85rem;
}

.ump-feature-card__icon--green { background: #d1fae5; color: #065f46; }
.ump-feature-card__icon--gold  { background: #fef3c7; color: #b45309; }
.ump-feature-card__icon--teal  { background: #ccfbf1; color: #0f766e; }
.ump-feature-card__icon--slate { background: #e2e8f0; color: #1e293b; }

.ump-feature-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ump-slate-900);
}

.ump-feature-card__desc {
  margin: 0 0 0.95rem;
  font-size: 0.87rem;
  color: var(--ump-slate-600);
  flex: 1;
}

.ump-feature-card__cta {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ump-green-800);
}

.ump-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background: var(--ump-slate-50);
  border: 1px solid var(--ump-slate-200);
  border-radius: var(--ump-radius-md);
  padding: 0.95rem 1.15rem;
}

.ump-strip__browse,
.ump-strip__feeds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.ump-strip__label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ump-slate-700);
}

.ump-chip {
  display: inline-block;
  padding: 0.34rem 0.78rem;
  font-size: 0.81rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--ump-slate-200);
  border-radius: 999px;
  color: var(--ump-slate-700);
}

.ump-chip:hover {
  border-color: var(--ump-green-600);
  color: var(--ump-green-800);
  background: var(--ump-green-50);
}

.ump-feed-pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: var(--ump-gold-100);
  color: #92400e;
}

/* ==========================================================================
   FULL RESPONSIVE OVERRIDES FOR EPRINTS INTERNAL PAGES
   (Advanced Search, Simple Search, Browse Views, Abstract, Login, Admin)
   ========================================================================== */

/* 1. Inputs & Action Buttons */
.ump-page-body input[type="text"],
.ump-page-body input[type="password"],
.ump-page-body input[type="email"],
.ump-page-body input[type="number"],
.ump-page-body textarea,
.ump-page-body select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.52rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--ump-slate-900);
  max-width: 100%;
  box-sizing: border-box;
}

.ump-page-body input[type="text"]:focus,
.ump-page-body input[type="password"]:focus,
.ump-page-body textarea:focus,
.ump-page-body select:focus {
  outline: none;
  border-color: var(--ump-green-600);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.14);
}

.ep_form_action_button,
.ep_form_internal_button,
.ump-page-body input[type="submit"] {
  font-family: inherit !important;
  background: var(--ump-green-800) !important;
  color: #ffffff !important;
  border: 1px solid var(--ump-green-800) !important;
  border-radius: 8px !important;
  padding: 0.55rem 1.15rem !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0.2rem 0.4rem 0.2rem 0 !important;
  cursor: pointer;
  box-shadow: none !important;
}

.ep_form_action_button:hover,
.ep_form_internal_button:hover,
.ump-page-body input[type="submit"]:hover {
  background: var(--ump-green-700) !important;
  border-color: var(--ump-green-700) !important;
}

/* 2. Advanced Search & EPrints `.ep_search_fields` / `.ep_multi` Responsive Grid */
.ep_search_fields,
.ep_multi {
  display: block !important;
  width: 100% !important;
  border: 1px solid var(--ump-slate-200);
  border-radius: var(--ump-radius-md);
  background: #ffffff;
  overflow: hidden;
  margin: 1rem 0 !important;
}

.ep_search_fields > .ep_table_row,
.ep_multi > .ep_table_row {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  align-items: start;
  border-top: 1px solid var(--ump-slate-200) !important;
}

.ep_search_fields > .ep_table_row:first-child,
.ep_multi > .ep_table_row:first-child {
  border-top: none !important;
}

.ep_search_fields > .ep_table_row > div,
.ep_multi > .ep_table_row > div {
  display: block !important;
  border: none !important;
  padding: 0.85rem 1rem !important;
  min-width: 0;
}

.ep_multi_heading,
.ep_multi_heading_legend {
  text-align: left !important;
  font-weight: 700 !important;
  color: var(--ump-slate-800);
  background: var(--ump-slate-50);
  height: 100%;
  border-right: 1px solid var(--ump-slate-200) !important;
}

.ep_multi_input input.ep_form_text {
  width: 100% !important;
  max-width: 560px;
}

/* Compound name/date grids inside Advanced Search */
.ep_form_input_grid {
  display: block !important;
  width: 100% !important;
  overflow-x: auto;
}

.ep_form_input_grid > div {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  align-items: center;
}

.ep_form_input_grid > div > div {
  display: block !important;
  flex: 1 1 160px;
  min-width: 0;
}

.ep_form_input_grid > div > div input {
  width: 100% !important;
}

/* Checkbox multi-column lists (Item Type, Format, Divisions) */
.ep_option_list,
.ep_option_list_row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.35rem 1rem;
  width: 100% !important;
}

.ep_option_list_cell {
  display: flex !important;
  flex-direction: column;
  gap: 0.35rem;
}

.ep_option_list_option {
  margin-left: 0 !important;
  font-size: 0.9rem;
}

.ep_search_buttons {
  background: var(--ump-slate-50) !important;
  border: 1px solid var(--ump-slate-200) !important;
  border-radius: var(--ump-radius-sm);
  padding: 0.75rem 1rem !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
}

/* 3. Browse Views (`/view/year/`, `/view/divisions/`, `/view/creators/`, `/view/subjects/`) */
.ep_toolbox {
  background: var(--ump-slate-50) !important;
  border: 1px solid var(--ump-slate-200) !important;
  border-radius: var(--ump-radius-md) !important;
  padding: 1rem 1.15rem !important;
  margin-bottom: 1.25rem !important;
}

.ep_toolbox_content {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  line-height: 1.9;
}

.ep_view_cols {
  display: block !important;
  width: 100% !important;
}

.ep_view_cols > div {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  width: 100% !important;
}

.ep_view_col {
  display: block !important;
  width: 100% !important;
  min-width: 0;
}

.ep_view_col ul,
.ep_view_menu ul {
  padding-left: 1.2rem;
  margin: 0.35rem 0;
}

.ep_view_col li,
.ep_view_menu li {
  margin-bottom: 0.38rem;
  overflow-wrap: anywhere;
}

/* 4. Login Page (`/cgi/users/login`) Modern Centered Card */
form[action*="/cgi/users/login"] > .ep_block {
  max-width: 440px;
  margin: 1rem auto 1.5rem !important;
  padding: 1.75rem !important;
  background: var(--ump-slate-50);
  border: 1px solid var(--ump-slate-200);
  border-radius: var(--ump-radius-lg);
  text-align: left;
}

.ep_login_form_table,
.ep_login_form_table > div,
.ep_login_form_table > div > label,
.ep_login_form_table > div > div {
  display: block !important;
  width: 100% !important;
}

.ep_login_form_table > div {
  margin-bottom: 0.9rem;
}

.ep_login_form_table > div > label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ump-slate-700);
  margin-bottom: 0.3rem;
}

.ep_login_form_table input.ep_form_text {
  width: 100% !important;
  padding: 0.65rem 0.85rem !important;
}

.ep_login_form_table input.ep_form_action_button {
  width: 100% !important;
  margin-top: 0.85rem !important;
  padding: 0.7rem 1rem !important;
  font-size: 0.95rem !important;
}

/* 5. Search Results & Abstract Detail Page */
.ep_search_results table,
.ep_summary_content table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
}

.ep_search_result td {
  padding: 0.75rem 0.5rem !important;
  border-bottom: 1px solid var(--ump-slate-200);
  vertical-align: top;
}

.ep_summary_page_document {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background: var(--ump-slate-50);
  border: 1px solid var(--ump-slate-200);
  border-radius: var(--ump-radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.85rem;
}

a.ep_document_link {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.42rem 0.95rem;
  background: var(--ump-green-800);
  color: #ffffff !important;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.85rem;
}

.ep_summary_content table th,
.ep_summary_content table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--ump-slate-100);
  text-align: left;
  vertical-align: top;
}

.ep_summary_content table th {
  width: 210px;
  color: var(--ump-slate-600);
  font-weight: 600;
}

/* --- Footer --- */
.ump-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.25rem;
  padding-top: 2.4rem;
  padding-bottom: 2rem;
}

.ump-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.ump-footer__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 10px;
  padding: 4px;
  flex-shrink: 0;
}

.ump-footer__name {
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
}

.ump-footer__sub {
  font-size: 0.82rem;
  color: #94a3b8;
}

.ump-footer__desc {
  margin: 0;
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.65;
}

.ump-footer__heading {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ump-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ump-footer__links a {
  color: #cbd5e1;
  font-size: 0.875rem;
}

.ump-footer__links a:hover {
  color: #fde68a;
}

.ump-footer__bottom {
  background: #090f1d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.ump-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ump-footer__powered a {
  color: #cbd5e1;
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES — LAPTOP, TABLET, AND SMARTPHONE
   ========================================================================== */
@media (max-width: 1120px) {
  .ump-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ump-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ump-quicksearch__input {
    width: 125px;
  }
  .ep_view_cols > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .ump-nav-toggle {
    display: inline-flex;
  }

  .ump-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 2px solid var(--ump-green-700);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
    padding: 1rem 1.15rem 1.35rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    z-index: 1200;
  }

  .ump-nav.is-open {
    display: flex;
  }

  .ump-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .ump-nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 0.68rem 0.85rem;
    font-size: 0.95rem;
  }

  .ump-dropdown {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--ump-green-600);
    border-radius: 0;
    margin-left: 0.85rem;
    padding: 0.2rem 0 0.2rem 0.5rem;
    background: transparent;
  }

  .ump-quicksearch {
    width: 100%;
  }

  .ump-quicksearch__input {
    flex: 1;
    width: auto;
    font-size: 0.95rem !important;
  }

  /* Stack Advanced Search rows cleanly into 1 column on tablet & mobile */
  .ep_search_fields > .ep_table_row,
  .ep_multi > .ep_table_row {
    grid-template-columns: 1fr !important;
  }

  .ep_multi_heading,
  .ep_multi_heading_legend {
    border-right: none !important;
    border-bottom: 1px solid var(--ump-slate-100) !important;
    padding: 0.65rem 0.9rem !important;
  }

  .ep_multi_help {
    display: none !important;
  }

  .ep_multi_input input.ep_form_text {
    max-width: 100%;
  }

  .ump-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 640px) {
  .ump-topbar__left span:last-child {
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 225px;
  }

  .ump-header__inner {
    min-height: 64px;
  }

  .ump-brand__logo {
    width: 40px;
    height: 40px;
  }

  .ump-brand__title {
    font-size: 1.02rem;
  }

  .ump-hero-search {
    flex-direction: column;
    padding: 0.5rem;
  }

  .ump-hero-search__btn {
    width: 100%;
    padding: 0.78rem !important;
  }

  .ump-hero__stats,
  .ump-grid,
  .ep_view_cols > div {
    grid-template-columns: 1fr !important;
  }

  /* Stack search results & summary metadata tables cleanly on phones */
  .ep_search_results tr,
  .ep_search_results td,
  .ep_summary_content table,
  .ep_summary_content tbody,
  .ep_summary_content tr,
  .ep_summary_content th,
  .ep_summary_content td {
    display: block !important;
    width: 100% !important;
  }

  .ep_summary_content table th {
    padding-bottom: 0.15rem;
    border-bottom: none;
    color: var(--ump-green-800);
    font-size: 0.8rem;
    text-transform: uppercase;
  }

  .ep_summary_content table td {
    padding-top: 0.1rem;
    padding-bottom: 0.75rem;
  }

  .ep_search_buttons .ep_form_action_button {
    width: 100% !important;
    margin-right: 0 !important;
  }
}


/* ==========================================================================
   v20261128c — HEADER SEARCH & HERO SEARCH RESPONSIVE PRECISION FIX
   ========================================================================== */
.ump-header__actions {
  display: none;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.ump-search-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  background: var(--ump-green-50) !important;
  color: var(--ump-green-800) !important;
  border: 1px solid #a7f3d0 !important;
  border-radius: 999px !important;
  padding: 0.42rem 0.78rem !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  min-width: 0 !important;
}

.ump-search-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid var(--ump-slate-200);
  padding: 0.65rem 0;
}

.ump-search-drawer.is-open {
  display: block;
}

.ump-search-drawer__form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--ump-slate-100);
  border: 1px solid var(--ump-slate-200);
  border-radius: 999px;
  padding: 0.22rem 0.28rem 0.22rem 0.9rem;
}

.ump-search-drawer__input {
  flex: 1 1 auto;
  width: 100% !important;
  min-width: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.9rem !important;
  padding: 0.35rem 0.2rem !important;
  outline: none;
}

.ump-search-drawer__btn {
  flex-shrink: 0;
  border: none !important;
  background: var(--ump-green-800) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 0.42rem 1rem !important;
  border-radius: 999px !important;
  min-width: 0 !important;
  cursor: pointer;
}

/* Desktop Header Quicksearch: strictly bounded & fluidly shrinkable (never overly long or overflowing) */
.ump-quicksearch {
  flex: 0 1 215px !important;
  width: clamp(145px, 16vw, 215px) !important;
  max-width: 215px !important;
  min-width: 135px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.ump-quicksearch__input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 145px !important;
}

/* Hero Search: proportional pill on desktop AND sleek single-row pill on mobile */
.ump-hero-search {
  width: 100% !important;
  max-width: 600px !important;
  border-radius: 999px !important;
  padding: 0.32rem 0.38rem 0.32rem 1rem !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.4rem !important;
}

.ump-hero-search__input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 0.52rem 0.35rem !important;
  font-size: 0.94rem !important;
}

.ump-hero-search__btn {
  flex: 0 0 auto !important;
  width: auto !important;
  border-radius: 999px !important;
  padding: 0.62rem 1.25rem !important;
  font-size: 0.88rem !important;
}

/* Switch header search into sleek collapsible button at <= 1100px so navbar NEVER wraps or stretches */
@media (max-width: 1100px) {
  .ump-quicksearch {
    display: none !important;
  }
  .ump-header__actions {
    display: inline-flex;
  }
  .ump-nav-toggle {
    display: none;
  }
}

@media (max-width: 960px) {
  .ump-nav-toggle {
    display: inline-flex;
  }
  .ump-nav {
    left: auto;
    right: 0.85rem;
    width: min(340px, calc(100vw - 1.7rem));
    border: 1px solid var(--ump-slate-200);
    border-radius: 14px;
    margin-top: 0.35rem;
  }
}

@media (max-width: 520px) {
  .ump-search-toggle span {
    display: none;
  }
  .ump-search-toggle {
    padding: 0.45rem 0.62rem !important;
  }
  .ump-hero-search {
    padding: 0.24rem 0.28rem 0.24rem 0.75rem !important;
  }
  .ump-hero-search__input {
    font-size: 0.86rem !important;
  }
  .ump-hero-search__btn {
    padding: 0.55rem 0.95rem !important;
    font-size: 0.82rem !important;
  }
}
