/* Interaction-only additions; the archived layout CSS stays untouched. */
.swiper-wrapper[hidden] { display: none; }

/* Swiper computed these widths inline at runtime; keep a static equivalent for the baked home. */
@media screen and (min-width: 768px) {
  .classic-publications .swiper-wrapper[data-tab] .swiper-slide.article-list {
    flex: 0 0 calc((100% - 4rem) / 3);
    width: calc((100% - 4rem) / 3);
    margin-right: 2rem;
  }
  .classic-publications .swiper-wrapper[data-tab] .article-item {
    flex: 1;
    width: 100%;
  }
}

.site-modal[hidden] { display: none; }
.site-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.site-modal__dialog {
  position: relative;
  width: min(28rem, calc(100vw - 2rem));
  background: var(--white, #fff);
  border-radius: 0.25rem;
  padding: 1.5rem;
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
}
.site-modal__title {
  margin: 0 0 1rem;
  color: var(--publisher-theme-color, #114083);
  font-size: 1.25rem;
  font-weight: 600;
}
.site-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: var(--text-color-primary, #333);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}
.site-modal__link {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--border-color-primary, #dcdfe6);
  border-radius: 0.25rem;
  padding: 0.5rem 0.75rem;
  color: var(--text-color-primary, #333);
  font-size: 0.875rem;
}
.site-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.site-modal__actions a,
.site-modal__actions button {
  border: 1px solid var(--publisher-theme-color, #114083);
  border-radius: 0.25rem;
  background: var(--white, #fff);
  color: var(--publisher-theme-color, #114083);
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  text-decoration: none;
  font-size: 0.875rem;
}
.site-modal__status {
  margin-top: 0.75rem;
  color: var(--publisher-theme-color, #114083);
  font-size: 0.875rem;
}
