.irx-pubs, 
.irx-pubs * {
  font-family: inherit !important;
}

.irx-pubs {
  --irx-border: 1px solid rgba(0,0,0,0.08);
  --irx-muted: rgba(0,0,0,0.65);
  --irx-faint: rgba(0,0,0,0.45);
  --irx-accent: currentColor; /* inherits theme color */
  --irx-radius: 12px;
}

/* Year block */
.irx-pubs__year {
  position: relative;       /* needed for ::before/::after */
  margin-bottom: 16px;
  overflow: visible;        /* allow halo to extend */
  border-radius: 10px;      /* rounds the halo */
}

.irx-pubs__year-header { margin: 0; }

.irx-pubs__toggle {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  padding: 10px 0;
  font-weight: 600;
  line-height: 1.2;
}

.irx-pubs__year-label {
  font-size: 32px;
  color: #00274D;
}

/* List styles */
.irx-pubs__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.irx-pubs__item {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 30px 0;
  border-top: var(--irx-border);
}

/* Title row */
.irx-pubs__title-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 10px;
}
.irx-pubs__title {
  font-weight: 700;
  color: #00274D;
  font-size: 18px;
  flex: 1 1 auto;
  min-width: 0;
}

.irx-pubs__authors {
  font-size: 14px;
  font-weight: 400;
  color: #00274D;
}

.irx-pubs .irx-pubs__meta {
  line-height: 1.25 !important;
}

.irx-pubs .irx-pubs__authors {
  line-height: inherit;
  display: inline;
}

/* Badges */
.irx-pubs__badge {
  display: inline-block;
  align-self: flex-start; 
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: auto;
}

/* Publication — brand blue */
.irx-pubs__badge--publication {
  color: #3870FA;
  background: #C9D8FB;
}

/* Poster — teal */
.irx-pubs__badge--poster {
  color: #35BCB1;
  background: #C3E6E3;
}

/* Presentation — navy */
.irx-pubs__badge--presentation {
  color: #00274D;
  background: #C2CCD7;
}

/* Other — don't display a badge */
.irx-pubs__badge--other {
  display: none !important;
}

/* Journal, Summary */
.irx-pubs__journal {
  margin-top: 5px;
  font-size: 12px;
  color: #00274D;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  opacity: 75%;
}

.irx-pubs__summary {
  font-size: 18px;
  font-weight: 400;
  color: #00274D;
  margin-top: 10px;
  line-height: 1.5;
}

/* Primary link */
.irx-pubs__actions { margin-top: 4px; }
.irx-pubs__primary-link { 
  font-weight: 700; 
  font-size:14px; 
  text-decoration: none; 
  color: #3870FA;
}

/* Panel open/close animation */
.irx-pubs__panel {
  overflow: hidden;
  transition: max-height 200ms ease;
}
.irx-pubs__panel[hidden] { display: none !important; }

/* Chevron (svg) */
.irx-pubs__chevron {
  display: inline-flex;
  transition: transform 200ms ease;
  flex-shrink: 0;
}
.irx-pubs__chevron,
.irx-pubs__chevron svg,
.irx-pubs__chevron svg * {
  color: #35BCB1;
  fill: #35BCB1;
  stroke: #35BCB1;
}
.irx-pubs__toggle[aria-expanded="true"] .irx-pubs__chevron {
  transform: rotate(180deg);
}

/* =========================
   Filters layout (fills the row exactly)
   ========================= */
.irx-pubs__filters{
  --gap: 12px;
  display: flex;
  gap: var(--gap);
  align-items: flex-end;
  margin: 0 0 20px;
  flex-wrap: wrap;
}

/* four equal columns per row; adjust calc if you add/remove filters */
.irx-pubs__filters .irx-filter__field{
  display: grid;
  gap: 6px;
  flex: 0 0 calc((100% - 3 * var(--gap)) / 4);
}

.irx-filter__label { font-size: 12px; color: #00274D; margin-bottom: 4px }

/* Dropdowns */
.irx-filter__type,
.irx-filter__authorship,
.irx-filter__journal {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 14px;
  padding: 10px 12px 10px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 5px;
  min-height: 36px;
  line-height: 1.2;
  color: #00274D;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' width='16' height='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='6' y1='9' x2='12' y2='15' stroke='%2335BCB1' stroke-width='2' stroke-linecap='butt'/%3E%3Cline x1='18' y1='9' x2='12' y2='15' stroke='%2335BCB1' stroke-width='2' stroke-linecap='butt'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.irx-filter__field select,
.irx-filter__field input.irx-filter__query {
  width: 100%;
  box-sizing: border-box;
}

/* Search input */
.irx-filter__field input.irx-filter__query {
  min-height: 36px;
  padding: 10px 12px 10px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 5px;
  font: inherit;
  color: #00274D;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}
.irx-filter__query::placeholder {
  color: rgba(0, 39, 77, 0.4);
  font-weight: 400;
}

/* Right-side group sits at the far right of the row */
.irx-pubs__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto; /* pushes group to the right */
}

/* Compact authorship text */
.irx-pubs__authorship-inline {
  font-size: 10px;
  line-height: 1.2;
  color: #00274D;
  text-align: right;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px;
}

/* Inside the right group, don't let the badge push authorship away */
.irx-pubs__right .irx-pubs__badge {
  margin-left: 0; /* override global margin-left:auto */
}

/* =========================
   Halo + Separator (merged/fixed)
   ========================= */

/* Blue halo on hover or when open (uses ::before) */
.irx-pubs__year::before {
  content: "";
  position: absolute;
  inset: -5px -20px;    /* halo size */
  border-radius: 5px;
  background: transparent;
  transition: background-color 150ms ease;
  pointer-events: none;
  z-index: 0;           /* under content */
}
.irx-pubs__year:hover::before,
.irx-pubs__year.is-open::before,
.irx-pubs__year:has(.irx-pubs__toggle[aria-expanded="true"])::before {
  background: #EBF2F8;
}
/* keep real content above halo */
.irx-pubs__year > * { position: relative; z-index: 1; }

/* Separator line between year groups (uses ::after so it doesn't collide with halo) */
.irx-pubs__year + .irx-pubs__year::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;                    /* sits between the two groups */
  height: 1px;
  background: rgba(0,0,0,0.08);
  opacity: 1;
  transition: opacity 150ms ease;
  z-index: 0;                   /* under content */
}
/* hide the separator if the group below is open */
.irx-pubs__year.is-open + .irx-pubs__year::after { opacity: 0; }
/* hide the separator if this group itself is open */
.irx-pubs__year.is-open::after { opacity: 0; }

/* hide the separator for the topmost visible year */
.irx-pubs__year.is-first-visible::after { opacity: 0; }


/* ------- (optional) responsive step-downs for filters ------- */
@media (max-width: 900px){
  .irx-pubs__filters .irx-filter__field{
    flex-basis: calc((100% - var(--gap)) / 2); /* 2 per row */
  }
}
@media (max-width: 520px){
  .irx-pubs__filters .irx-filter__field{
    flex-basis: 100%; /* stack */
  }
}



/* --- Fix summary getting cut off + mobile size --- */

/* Let the first grid column actually shrink so text can wrap */
.irx-pubs__item {
  grid-template-columns: minmax(0, 1fr) auto; /* was 1fr auto */
}

/* Also allow the content block to shrink inside the grid */
.irx-pubs__item-main {
  min-width: 0;
}

/* Make sure summary can wrap normally */
.irx-pubs__summary {
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;   /* breaks long segments if needed */
  box-sizing: border-box;
  padding-right: 12px;       /* tiny breathing room from the edge */
}

/* Mobile: smaller summary text */
@media (max-width: 767px) {
  .irx-pubs__summary { font-size: 14px; }
}


@media (max-width: 767px) {
  /* Stack title, authorship, and badge only on mobile */
  .irx-pubs__title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .irx-pubs__right {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-left: 0;
  }
  
  .irx-pubs__authorship-inline{
    padding: 4px 0;
}

  
  
  
@media (max-width: 767px) {
  .irx-filter__type,
  .irx-filter__authorship,
  .irx-filter__journal {
    color: #00274D !important;
    background-color: #fff !important;
    opacity: 1 !important;  /* overrides the “disabled” look */
  }
}


