.publication-details {
    width: 100%;
}

.publication-item {
    width: 100%;
}

.publication-item a {
    color: white;
}

.publication button {
    border: 1px white solid;
    width: 100%;
    background: #F4F7FA;
    color: black;
}

.layout:has(.publications) {
  background-color: #EEF2F7;
  /* background-image: radial-gradient(rgba(11, 37, 69, 0.06) 1px, transparent 1px); */
      background: var(--color-bg);
  background-size: 22px 22px;
}
.publication-toggle[aria-expanded="true"] {
    background: #0B2545;
    color: white;
}

.publication-toggle[aria-expanded="false"]:hover {
    background: #dadddf;
}

.publication-toggle-icon {
    color: #FF6B5B;
    flex-shrink: 0;   /* icon shouldn't get crushed by long titles */
}

.publication-toggle[aria-expanded="true"] .publication-toggle-icon{
    color: white;
}

.publication button {
    display: flex;
    justify-content: start;
    align-items: flex-start;  /* icon tops-aligns when the title wraps
                                 to multiple lines instead of floating
                                 in the middle */
    padding: 0.5rem;
    gap: 0.5rem;
    text-align: left;         /* buttons default to centered text;
                                 wrapped titles should read left-aligned */
    cursor: pointer;
}

.publication {
    color: white;
}

.publication-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease;
}

.publication-details.is-open {
  grid-template-rows: 1fr;
}

.publication-details-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;   /* required in some browsers for the 0fr collapse to
                      fully close; without it the row can refuse to hit
                      zero height */
}

.publication-details .publication-inner-content {
    padding: 1rem;
}

.bottom-line {
    height: 5px;
    min-height: 5px;
    width: 100%;
    border-right: none;          /* open on the right, toward the text */
    border-radius: 0 0 10px 10px;
    background: #FF6B5B;
    margin-bottom: 1rem;
}

.publication-inner-content {
    background: #F4F7FA;
    color: black;
    overflow-wrap: break-word;   /* long DOIs/URLs in abstracts can
                                    force horizontal overflow on mobile */
}

/* ==========================================================================
   Responsive
   The 100%-width accordion structure is already fluid; these are
   touch/typography refinements for smaller screens.
   ========================================================================== */

@media (max-width: 767px) {
    /* Comfortable tap target (44px min guideline) */
    .publication button {
        padding: 0.75rem 0.85rem;
        min-height: 44px;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .publication-details .publication-inner-content {
        padding: 0.85rem;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .bottom-line {
        height: 4px;
        min-height: 4px;
    }
}

@media (max-width: 420px) {
    .publication button {
        font-size: 0.9rem;
    }

    .publication-details .publication-inner-content {
        padding: 0.75rem;
    }
}

/* Respect reduced motion: the expand/collapse becomes instant */
@media (prefers-reduced-motion: reduce) {
    .publication-details {
        transition: none;
    }
}