@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/custom/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --stim-primary: #0B4DBA;
  --stim-navy: #12335F;
  --stim-navy-deep: #0B2548;
  --stim-light-blue: #EAF2FF;
  --stim-white: #FFFFFF;
  --stim-soft-gray: #F5F7FA;
  --stim-border: #E5E7EB;
  --stim-red: #D71920;
  --stim-gold: #F2B705;
  --stim-text: #1F2937;
  --stim-muted: #6B7280;
}

html,
body {
  background: #F2F5FA;
  color: var(--stim-text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

p {
  font-weight: 400;
  line-height: 1.65;
}

a,
a:visited {
  color: var(--stim-primary);
}

a:hover,
a:focus {
  color: var(--stim-navy);
}

#wrapper {
  background: var(--stim-white);
  border: 1px solid rgba(229, 231, 235, 0.92);
  box-shadow: 0 18px 38px rgba(18, 51, 95, 0.06);
  margin: 16px auto;
  max-width: 1280px;
  min-height: calc(100vh - 32px);
}

.ep_tm_header {
  background: var(--stim-white);
  border-bottom: 1px solid var(--stim-border);
  box-shadow: none;
  padding: 0;
}

.stim-header-inner {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(250px, auto) minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 1180px;
  padding: 16px 24px;
}

.stim-header-brand {
  border-bottom: 0;
  padding: 0;
}

.stim-header-brand__link,
.stim-header-brand__link:visited {
  align-items: center;
  color: var(--stim-navy);
  display: inline-flex;
  gap: 12px;
  text-decoration: none !important;
}

.stim-header-brand__link:hover,
.stim-header-brand__link:focus {
  color: var(--stim-navy);
  text-decoration: none;
}

.stim-header-brand__logo {
  display: block;
  height: 42px;
  max-height: 42px;
  max-width: 42px;
  object-fit: contain;
  width: 42px;
}

.stim-header-brand__text {
  display: grid;
  gap: 1px;
}

.stim-header-brand__name {
  color: var(--stim-navy);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.stim-header-brand__meta {
  color: var(--stim-muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.25;
}

.ep_tm_menu,
.ep_tm_menu ul {
  background: transparent;
}

.stim-header-nav {
  min-width: 0;
}

.ep_tm_menu {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.ep_tm_menu li {
  float: none;
  list-style: none;
  margin: 0;
  position: relative;
}

.ep_tm_menu a,
.ep_tm_menu a:visited,
.ep_tm_key_tools_item_link,
.ep_tm_key_tools_item_link:visited {
  border-radius: 6px;
  color: var(--stim-navy);
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 8px 9px 10px;
  position: relative;
  text-decoration: none;
}

.ep_tm_menu li:hover,
.ep_tm_menu a:hover,
.ep_tm_menu a:focus {
  background: var(--stim-light-blue);
  color: var(--stim-primary);
}

.ep_tm_menu a.is-active,
.ep_tm_menu a.is-active:visited {
  background: transparent;
  color: var(--stim-navy-deep);
  font-weight: 800;
}

.ep_tm_menu a.is-active::after {
  background: var(--stim-primary);
  border-radius: 999px;
  bottom: 2px;
  content: "";
  height: 3px;
  left: 10px;
  position: absolute;
  right: 10px;
}

.ep_tm_menu ul {
  background: var(--stim-white);
  border: 1px solid var(--stim-border);
  border-radius: 6px;
  box-shadow: 0 16px 30px rgba(18, 51, 95, 0.12);
  padding: 6px;
}

.ep_tm_menu ul a,
.ep_tm_menu ul a:visited {
  border-radius: 4px;
  display: block;
  min-width: 160px;
  padding: 9px 10px;
}

.ep_tm_key_tools_item a[href$="/cgi/register"],
.ep_tm_key_tools_item a[href="/cgi/register"] {
  display: none;
}

.ep_tm_searchbarbox {
  border: 1px solid var(--stim-border);
  border-radius: 4px;
  color: var(--stim-text);
  font-family: inherit;
  height: 34px;
  padding: 0 10px;
  width: 150px;
}

.ep_tm_searchbarbutton,
.ep_form_action_button,
input[type="submit"] {
  background: var(--stim-primary);
  border: 1px solid var(--stim-primary);
  border-radius: 4px;
  color: var(--stim-white);
  font-family: inherit;
  font-weight: 700;
  min-height: 34px;
  padding: 0 12px;
}

.ep_tm_searchbarbutton:hover,
.ep_tm_searchbarbutton:focus,
.ep_form_action_button:hover,
.ep_form_action_button:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
  background: var(--stim-navy);
  border-color: var(--stim-navy);
  color: var(--stim-white);
}

.ep_tm_searchbar {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: none !important;
  gap: 10px;
  justify-content: flex-end;
}

.ep_tm_searchbar > div {
  display: contents;
}

.ep_tm_searchbar form {
  align-items: center;
  display: flex !important;
  gap: 6px;
}

.ep_tm_key_tools:not(:has(a[href*="screen="])),
.ep_tm_key_tools_item a[href$="/cgi/register"],
.ep_tm_key_tools_item a[href="/cgi/register"],
a[href$="/cgi/register"],
a[href="/cgi/register"] {
  display: none !important;
}

.stim-header-actions {
  align-items: center;
  display: flex;
  justify-content: flex-end;
}

.stim-admin-login,
.stim-admin-login:visited {
  align-items: center;
  background: var(--stim-white);
  border: 1px solid var(--stim-navy);
  border-radius: 6px;
  color: var(--stim-navy);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1;
  min-height: 36px;
  padding: 0 13px;
  text-decoration: none;
  white-space: nowrap;
}

.stim-admin-login:hover,
.stim-admin-login:focus {
  background: var(--stim-navy);
  border-color: var(--stim-navy);
  color: var(--stim-white);
  text-decoration: none;
}

.stim-admin-login.is-active,
.stim-admin-login.is-active:visited {
  background: var(--stim-navy);
  border-color: var(--stim-navy);
  box-shadow: 0 0 0 3px rgba(18, 51, 95, 0.14);
  color: var(--stim-white);
}

#main_content {
  background: var(--stim-white);
}

.ep_tm_page_content {
  background: transparent;
  color: var(--stim-text);
  max-width: 1120px;
  padding: 0 24px 36px;
}

.ep_tm_pagetitle {
  height: 1px;
  margin: 0;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.stim-hero {
  background: var(--stim-navy);
  border-bottom: 4px solid var(--stim-primary);
  color: var(--stim-white);
  border-radius: 0;
  margin: 0 -24px 26px;
  padding: 30px 24px 32px;
}

.stim-hero__content {
  margin: 0 auto;
  max-width: 960px;
}

.stim-hero__main {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr);
}

.stim-hero__eyebrow,
.stim-section__eyebrow {
  color: var(--stim-primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.stim-hero__eyebrow {
  color: #DDEBFF;
}

.stim-hero h2 {
  color: var(--stim-white);
  font-size: 1.72rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.stim-hero__subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.65;
  margin: 8px 0 18px;
  max-width: 620px;
}

.stim-hero-search {
  background: var(--stim-white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(4, 19, 38, 0.16);
  display: flex;
  gap: 8px;
  max-width: 620px;
  padding: 8px;
}

.stim-hero-search label {
  height: 1px;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.stim-hero-search input[type="text"] {
  border: 1px solid var(--stim-border);
  border-radius: 4px;
  color: var(--stim-text);
  flex: 1 1 auto;
  font-size: 0.95rem;
  min-width: 0;
  padding: 10px 12px;
}

.stim-hero-search button {
  background: var(--stim-primary);
  border: 1px solid var(--stim-primary);
  border-radius: 4px;
  color: var(--stim-white);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  min-width: 92px;
  padding: 10px 18px;
}

.stim-hero-search button:hover,
.stim-hero-search button:focus {
  background: var(--stim-navy);
  border-color: var(--stim-navy);
}

.stim-section {
  margin: 0 auto 22px;
  max-width: 1040px;
}

.stim-section__heading {
  border-bottom: 1px solid var(--stim-border);
  margin-bottom: 12px;
  padding-bottom: 8px;
}

.stim-section h2 {
  color: var(--stim-navy);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

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

.stim-card,
.stim-card:visited {
  background: #FFFFFF;
  border: 1px solid var(--stim-border);
  border-radius: 6px;
  box-shadow: none;
  color: var(--stim-text);
  display: block;
  min-height: 0;
  padding: 14px 15px;
  text-decoration: none;
}

.stim-card:hover,
.stim-card:focus {
  background: #FBFDFF;
  border-color: rgba(11, 77, 186, 0.38);
  box-shadow: 0 10px 20px rgba(18, 51, 95, 0.07);
  color: var(--stim-text);
  transform: translateY(-1px);
}

.stim-card__icon {
  display: none;
}

.stim-card__title {
  color: var(--stim-navy);
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.stim-card__desc {
  color: var(--stim-muted);
  display: block;
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.58;
}

.stim-about__panel {
  background: var(--stim-white);
  border: 1px solid var(--stim-border);
  border-radius: 6px;
  border-left: 4px solid var(--stim-primary);
  padding: 18px 20px;
}

.stim-about p:last-child {
  color: var(--stim-muted);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 880px;
}

.ep_tm_footer {
  align-items: center;
  background: var(--stim-navy);
  border-top: 4px solid var(--stim-primary);
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 26px;
  padding: 14px 24px;
}

.ep_tm_footer a,
.ep_tm_footer a:visited {
  color: var(--stim-white);
}

.stim-footer__brand {
  align-items: center;
  display: flex;
  gap: 10px;
}

.stim-footer__logo {
  background: var(--stim-white);
  border-radius: 999px;
  display: block;
  flex: 0 0 auto;
  height: 34px;
  object-fit: contain;
  padding: 3px;
  width: 34px;
}

.stim-footer__brand strong,
.stim-footer__brand span,
.stim-footer__links span {
  display: block;
}

.stim-footer__brand strong {
  color: var(--stim-white);
  font-size: 0.95rem;
  line-height: 1.3;
}

.stim-footer__brand span,
.stim-footer__links {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  line-height: 1.45;
}

.stim-footer__links {
  text-align: right;
}

.stim-footer__links a {
  font-weight: 700;
}

.ep_tm_footer .ep_tm_eprints_logo {
  display: none;
}

.ep_tm_page_content:has(.stim-login-card),
.ep_tm_page_content:has(.ep_login_form_table) {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 460px;
  padding-top: 72px;
}

.stim-login-page .ep_tm_pagetitle,
.stim-login-page #page-title,
.ep_tm_page_content:has(.stim-login-card) .ep_tm_pagetitle {
  display: none !important;
  height: 1px;
  margin: 0;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.ep_tm_page_content:has(.ep_login_form_table):not(:has(.stim-login-card)) .ep_tm_pagetitle {
  color: var(--stim-navy);
  height: auto;
  margin: 0 0 16px;
  overflow: visible;
  position: static;
  white-space: normal;
  width: auto;
}

.stim-login-card {
  background: var(--stim-white);
  border: 1px solid var(--stim-border);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(18, 51, 95, 0.09);
  margin: 0 auto;
  max-width: 440px;
  padding: 26px 32px;
  width: 100%;
}

.stim-login-card {
  position: relative;
}

.stim-login-card::before {
  background: var(--stim-primary);
  border-radius: 8px 8px 0 0;
  content: "";
  display: block;
  height: 4px;
  left: -1px;
  position: absolute;
  right: -1px;
  top: -1px;
}

.ep_login_form_table {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block !important;
  margin: 0;
  max-width: none;
  padding: 0;
  text-align: left;
}

.ep_tm_page_content > .ep_block:not(.stim-login-card):has(.ep_login_form_table) {
  background: var(--stim-white);
  border: 1px solid var(--stim-border);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(18, 51, 95, 0.09);
  margin: 0 auto;
  max-width: 430px;
  padding: 22px;
  width: 100%;
}

.ep_tm_page_content > .ep_block:not(.stim-login-card):has(.ep_login_form_table) > p:first-child {
  color: var(--stim-muted);
  margin: 0 0 18px;
}

.ep_tm_page_content > .ep_block:not(.stim-login-card):has(.ep_login_form_table) > p:last-child {
  border-top: 1px solid var(--stim-border);
  color: var(--stim-muted);
  font-size: 0.86rem;
  margin: 16px 0 0;
  padding-top: 12px;
}

.ep_login_form_table::before {
  color: var(--stim-navy);
  content: "Login Admin Repository";
  display: block;
  font-size: 1.16rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.stim-login-card .ep_login_form_table::before {
  content: "";
  display: none;
}

.stim-login-card__header {
  border-bottom: 1px solid var(--stim-border);
  margin: 0 0 18px;
  padding-bottom: 16px;
  text-align: center;
}

.stim-login-card__logo {
  display: block;
  height: 42px;
  margin: 0 auto 10px;
  max-height: 42px;
  max-width: 42px;
  object-fit: contain;
  width: 42px;
}

.stim-login-card__header h2 {
  color: var(--stim-navy);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.stim-login-card__intro p {
  color: var(--stim-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 auto 20px;
  max-width: 340px;
  text-align: center;
}

.stim-login-card .ep_login_form_table {
  margin-left: auto;
  margin-right: auto;
  max-width: 360px;
  width: 100%;
}

.ep_login_form_table label,
.stim-login-card .ep_login_form_table label {
  color: var(--stim-navy);
  display: block;
  float: none !important;
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0 0 7px;
  text-align: left;
  width: 100% !important;
}

.ep_login_form_table > div,
.stim-login-field,
.stim-login-actions {
  clear: both;
  display: grid !important;
  float: none !important;
  gap: 0;
  grid-template-columns: 1fr;
  margin-bottom: 16px;
  text-align: left;
  width: 100%;
}

.stim-login-field__control {
  clear: both;
  display: block !important;
  float: none !important;
  width: 100%;
}

.stim-login-card .stim-login-field__control > *,
.stim-login-card .stim-login-actions > * {
  display: block;
  width: 100% !important;
}

.stim-login-card .stim-login-actions * {
  box-sizing: border-box;
  max-width: none !important;
}

.stim-login-card .stim-login-actions {
  justify-items: center;
  margin-bottom: 0;
  max-width: 360px;
  width: 100%;
}

.stim-login-card .stim-login-actions div,
.stim-login-card .stim-login-actions span,
.stim-login-card .stim-login-actions button,
.stim-login-card .stim-login-actions input,
.stim-login-card .stim-login-actions .ep_form_action_button {
  box-sizing: border-box;
  display: block !important;
  float: none !important;
  max-width: none !important;
  min-width: 0 !important;
  width: 100% !important;
}

.stim-login-card .stim-login-actions input[type="submit"],
.stim-login-card .stim-login-actions input[type="button"],
.stim-login-card .stim-login-actions button,
.stim-login-card .stim-login-actions .ep_form_action_button {
  margin-left: auto !important;
  margin-right: auto !important;
  min-width: min(260px, 100%) !important;
}

.stim-login-card .ep_login_form_table br {
  display: none;
}

.ep_login_form_table input[type="text"],
.ep_login_form_table input[type="password"],
.ep_login_form_table input.ep_form_text {
  border: 1px solid var(--stim-border);
  border-radius: 6px;
  box-sizing: border-box;
  display: block;
  float: none;
  font-family: inherit;
  min-height: 42px;
  padding: 10px 12px;
  width: 100% !important;
}

.ep_login_form_table input[type="text"]:focus,
.ep_login_form_table input[type="password"]:focus,
.ep_login_form_table input.ep_form_text:focus,
.stim-hero-search input[type="text"]:focus,
.ep_tm_searchbarbox:focus {
  border-color: var(--stim-primary);
  box-shadow: 0 0 0 3px rgba(11, 77, 186, 0.12);
  outline: none;
}

.ep_login_form_table input[type="submit"],
.stim-login-card input[type="submit"],
.stim-login-card .stim-login-actions input[type="submit"],
.stim-login-card .stim-login-actions input[type="button"],
.stim-login-card .stim-login-actions button,
.stim-login-card .stim-login-actions input.ep_form_action_button,
.stim-login-card .stim-login-actions .ep_form_action_button {
  border-radius: 6px;
  box-sizing: border-box;
  display: block;
  float: none;
  margin-top: 4px;
  max-width: none !important;
  min-height: 42px;
  min-width: 0 !important;
  padding-left: 12px;
  padding-right: 12px;
  width: 100% !important;
}

.stim-login-card__note {
  border-top: 1px solid var(--stim-border);
  color: var(--stim-muted);
  font-size: 0.82rem;
  margin: 16px 0 0;
  padding-top: 12px;
  text-align: center;
}

.stim-login-card__back {
  font-size: 0.84rem;
  margin: 8px 0 0;
  text-align: center;
}

.stim-login-card__back a,
.stim-login-card__back a:visited {
  color: var(--stim-primary);
  font-weight: 700;
  text-decoration: none;
}

.stim-login-card__back a:hover,
.stim-login-card__back a:focus {
  color: var(--stim-navy);
  text-decoration: underline;
}

.ep_login_tools {
  margin: 14px auto 0;
  max-width: 430px;
}

/* Legacy admin overrides disabled during asset pipeline stabilization. Final admin cleanup now lives in cfg/static/style/auto/zzz_local.css. */

/* STIM_PUBLIC_DEMO_CLEANUP_20260619_A */
/* STIM_PUBLIC_DEMO_BUGFIX_CLEANUP_20260619_A */
.stim-public-hidden {
  display: none !important;
}

.stim-public-demo-hidden-link {
  display: none !important;
}

.stim-static-page,
.stim-summary-page {
  margin: 0 auto;
  max-width: 1120px;
  padding: 28px 18px 44px;
}

.stim-static-page__header,
.stim-summary-hero,
.stim-summary-card,
.stim-search-intro,
.stim-browse-intro {
  background: #ffffff;
  border: 1px solid var(--stim-border);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(18, 51, 95, 0.08);
}

.stim-static-page__header {
  padding: 30px;
}

.stim-static-page__header h1,
.stim-summary-hero h1 {
  color: var(--stim-navy-deep);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.16;
  margin: 0 0 12px;
}

.stim-static-page__header p,
.stim-info-card p,
.stim-static-note,
.stim-summary-card,
.stim-result-card__excerpt,
.stim-view-intro {
  color: var(--stim-muted);
  line-height: 1.65;
}

.stim-info-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.stim-info-card {
  background: #ffffff;
  border: 1px solid var(--stim-border);
  border-radius: 8px;
  padding: 22px;
}

.stim-info-card h2,
.stim-summary-card h2 {
  color: var(--stim-navy);
  font-size: 1.08rem;
  line-height: 1.3;
  margin: 0 0 10px;
}

.stim-static-note {
  background: var(--stim-soft-gray);
  border: 1px solid var(--stim-border);
  border-radius: 8px;
  margin-top: 18px;
  padding: 16px 18px;
}

.stim-browse-intro {
  margin: 0 0 24px;
  padding: 24px;
}

.stim-browse-intro > p {
  color: var(--stim-muted);
  margin: 0 0 16px;
}

.stim-browse-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stim-browse-card,
.stim-browse-card:visited {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--stim-border);
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  text-decoration: none;
}

.stim-browse-card:hover,
.stim-browse-card:focus {
  border-color: rgba(11, 77, 186, 0.35);
  box-shadow: 0 12px 28px rgba(11, 77, 186, 0.12);
  transform: translateY(-1px);
}

.stim-browse-card strong {
  color: var(--stim-navy);
  font-size: 1rem;
}

.stim-browse-card span {
  color: var(--stim-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ep_view_timestamp,
.ep_view_group_by,
.ep_view_jump_to,
.ep_view_export,
.ep_view_feed,
.ep_search_export,
.ep_search_feed,
.ep_search_reorder,
.ep_search_save,
.ep_search_controls,
.ep_search_result_docs {
  display: none !important;
}

.ep_view_page,
.ep_view_list,
.ep_search_results {
  margin-left: auto;
  margin-right: auto;
  max-width: 1120px;
}

.ep_view_page h1,
.ep_tm_page_content h1,
.ep_search_page h1 {
  color: var(--stim-navy-deep);
}

.ep_view_menu ul,
.ep_view_list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ep_view_menu li,
.ep_view_list li {
  background: #ffffff;
  border: 1px solid var(--stim-border);
  border-radius: 8px;
  margin: 10px 0;
  padding: 14px 16px;
}

.ep_view_menu li a,
.ep_view_list li a,
.ep_view_menu li a:visited,
.ep_view_list li a:visited {
  color: var(--stim-primary);
  font-weight: 700;
  text-decoration: none;
}

.ep_view_menu li a:hover,
.ep_view_list li a:hover {
  color: var(--stim-navy);
  text-decoration: underline;
}

.stim-search-intro {
  margin: 0 0 18px;
  padding: 16px 18px;
}

form[action*="/cgi/search/advanced"],
form[action*="/cgi/search"]:not(.stim-hero-search) {
  background: #ffffff;
  border: 1px solid var(--stim-border);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(18, 51, 95, 0.08);
  box-sizing: border-box;
  margin: 0 auto 26px;
  max-width: 980px;
  padding: 24px;
}

form[action*="/cgi/search/advanced"] .ep_form_text,
form[action*="/cgi/search/advanced"] input[type="text"],
form[action*="/cgi/search/advanced"] textarea,
form[action*="/cgi/search"]:not(.stim-hero-search) .ep_form_text,
form[action*="/cgi/search"]:not(.stim-hero-search) input[type="text"],
form[action*="/cgi/search"]:not(.stim-hero-search) textarea {
  border: 1px solid var(--stim-border);
  border-radius: 6px;
  box-sizing: border-box;
  font-family: inherit;
  max-width: 100%;
  min-height: 40px;
  padding: 9px 11px;
}

form[action*="/cgi/search/advanced"] .ep_form_action_button,
form[action*="/cgi/search/advanced"] input[type="submit"],
form[action*="/cgi/search/advanced"] input[type="reset"],
form[action*="/cgi/search"]:not(.stim-hero-search) .ep_form_action_button,
form[action*="/cgi/search"]:not(.stim-hero-search) input[type="submit"],
form[action*="/cgi/search"]:not(.stim-hero-search) input[type="reset"] {
  border-radius: 6px;
  min-height: 40px;
  padding: 9px 16px;
}

form[action*="/cgi/search/advanced"] .ep_table_row:has([name*="documents"]),
form[action*="/cgi/search/advanced"] .ep_table_row:has([name*="subjects"]),
form[action*="/cgi/search/advanced"] .ep_table_row:has([name*="type"]),
form[action*="/cgi/search/advanced"] .ep_table_row:has([name*="divisions"]),
form[action*="/cgi/search/advanced"] .ep_table_row:has([name*="editors"]),
form[action*="/cgi/search/advanced"] .ep_table_row:has([name*="refereed"]),
form[action*="/cgi/search/advanced"] .ep_table_row:has([name*="publication"]),
form[action*="/cgi/search/advanced"] .ep_table_row:has([name*="format"]) {
  display: none !important;
}

.stim-result-card {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--stim-border);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(18, 51, 95, 0.06);
  display: grid !important;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 14px 0;
  padding: 18px;
}

.stim-result-card__index {
  align-items: center;
  background: var(--stim-soft-gray);
  border-radius: 999px;
  color: var(--stim-navy);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.stim-result-card__title {
  font-size: 1.08rem;
  line-height: 1.35;
  margin: 0 0 8px;
}

.stim-result-card__title a,
.stim-result-card__title a:visited {
  color: var(--stim-navy-deep);
  text-decoration: none;
}

.stim-result-card__title a:hover {
  color: var(--stim-primary);
  text-decoration: underline;
}

.stim-result-card__meta {
  color: var(--stim-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.stim-result-card__meta span {
  background: var(--stim-soft-gray);
  border: 1px solid var(--stim-border);
  border-radius: 999px;
  padding: 4px 9px;
}

.stim-result-card__link {
  color: var(--stim-primary);
  display: inline-block;
  font-weight: 800;
  margin-top: 4px;
}

.stim-citation {
  display: grid;
  gap: 8px;
}

.stim-citation__title,
.stim-citation__title:visited {
  color: var(--stim-navy-deep);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.stim-citation__title:hover {
  color: var(--stim-primary);
  text-decoration: underline;
}

.stim-citation__authors {
  color: var(--stim-muted);
  font-size: 0.9rem;
}

.stim-citation__year,
.stim-citation__type {
  align-self: start;
  background: var(--stim-soft-gray);
  border: 1px solid var(--stim-border);
  border-radius: 999px;
  color: var(--stim-muted);
  display: inline-block;
  font-size: 0.84rem;
  margin-right: 6px;
  padding: 4px 9px;
}

.stim-summary-hero {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 18px;
  padding: 30px;
}

.stim-summary-hero__meta {
  color: var(--stim-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.stim-summary-badge {
  background: var(--stim-soft-gray);
  border: 1px solid rgba(11, 77, 186, 0.18);
  border-radius: 999px;
  color: var(--stim-primary);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 7px 12px;
  white-space: nowrap;
}

.stim-summary-card {
  margin-bottom: 18px;
  padding: 24px;
}

.stim-summary-file-list {
  display: grid;
  gap: 12px;
}

.stim-summary-file {
  align-items: center;
  background: var(--stim-soft-gray);
  border: 1px solid var(--stim-border);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px;
}

.stim-summary-file__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.stim-summary-file__body strong,
.stim-document-citation__name {
  color: var(--stim-navy-deep);
  overflow-wrap: anywhere;
}

.stim-summary-file__body span,
.stim-document-citation__format {
  color: var(--stim-muted);
  font-size: 0.88rem;
}

.stim-summary-file__button,
.stim-summary-file__button:visited {
  background: var(--stim-primary);
  border-radius: 6px;
  color: #ffffff;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.stim-summary-file__button:hover,
.stim-summary-file__button:focus {
  background: var(--stim-navy);
}

.stim-summary-metadata dl {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  margin: 0;
}

.stim-summary-metadata dt,
.stim-summary-metadata dd {
  border-top: 1px solid var(--stim-border);
  margin: 0;
  padding: 12px 0;
}

.stim-summary-metadata dt {
  color: var(--stim-navy);
  font-weight: 800;
  padding-right: 18px;
}

.stim-summary-metadata dd {
  color: var(--stim-text);
  overflow-wrap: anywhere;
}

.ep_summary_page_actions,
.summary_page_actions,
.stim-public-summary-page .ep_summary_page_actions {
  display: none !important;
}

@media (max-width: 900px) {
  .stim-info-grid,
  .stim-browse-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stim-summary-hero,
  .stim-summary-file {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .stim-static-page,
  .stim-summary-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .stim-static-page__header,
  .stim-summary-hero,
  .stim-summary-card,
  form[action*="/cgi/search/advanced"],
  form[action*="/cgi/search"]:not(.stim-hero-search) {
    padding: 18px;
  }

  .stim-info-grid,
  .stim-browse-card-grid,
  .stim-summary-metadata dl {
    grid-template-columns: 1fr;
  }

  .stim-summary-metadata dd {
    border-top: 0;
    padding-top: 0;
  }
}
