/* Paper list (index.php, current_issue.php, issue.php, search.php): article cards, buttons, audio/abstract modals.
   Moved out of issue.php so the pages share one design. */
.btn-close {
background: none !important;
font-size: 1.5rem;
opacity: 1;
filter: invert(1);		
}

.btn-close::before {
  content: "\f00d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.minimizeauidio i {
    position: absolute;
    right: 60px;
    font-size: 19px;
    top: 22px;
}

.panel-default.panel_issue .panel-heading .panel-title{ line-height: 22px; margin-bottom: 6px;}
.panel-default.panel_issue ul{ margin-top: 0px;}
.sub-buttons ul { gap: 9px; }
.inner-current-img img{ height: 140px; }

.player-new{
width:100% !important;
background:#ffffff;
border-radius:0px !important;
padding:10px;
box-shadow:none;
}
.player-new h2{
    font-size: 17px !important;
    line-height: 20px !important;
    text-align: left !important;
    color: #184089;
}
.cover-new{
width:100%;
height:130px;
border-radius:18px;
/*background:linear-gradient(135deg,#4f46e5,#06b6d4);*/
display:flex;
align-items:center;
justify-content:center;
color:white;
font-size:64px; background-size:100%;
}
.player-new h2, .player-new p{margin:10px 0;}
audio{width:100%;margin-top:0px;} 
.btn-list li a{ padding: 8px 6px;}

/* ---------- List heading ---------- */
.paper-list-heading {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 12px 112px 12px 18px;
    background: linear-gradient(90deg, #e8f5f2 0%, #f5fbfa 100%);
    border: 1px solid #d8ebe6;
    border-radius: 12px;
}

/* the two diagonal stripes at the right end */
.paper-list-heading::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 96px;
    background: linear-gradient(118deg, transparent 0 40%, #bfe8da 40% 58%, transparent 58% 66%, #5fc6a4 66% 100%);
    pointer-events: none;
}

.paper-list-heading h3,
.paper-list-heading h5 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    font-size: 20px;
    line-height: 1.35;
    color: #0b4a42;
    text-transform: uppercase;
}

.paper-list-heading img {
    width: 40px !important;
    height: auto;
    margin: 0 !important;
    flex-shrink: 0;
}

/* ---------- Article card ---------- */
/* Image on the left at the card's full height; on the right the type, title,
   authors, the Pages | DOI | Downloads | Views strip and the buttons, each on
   one line. The right column is a size container: the strip and the buttons
   show as much text as its width allows (that width differs per page and
   screen, because of the sidebar). */
.paper-card {
    display: grid;
    grid-template-columns: clamp(130px, 21%, 210px) minmax(0, 1fr);
    column-gap: 20px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e1ebe9;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(7, 91, 81, .05);
    text-align: left;
    transition: box-shadow .25s ease, border-color .25s ease;
}

.paper-card:hover {
    border-color: #cfe3de;
    box-shadow: 0 8px 24px rgba(7, 91, 81, .10);
}

/* the image fills the left column, as tall as the details beside it */
.paper-card-thumb {
    position: relative;
    display: block;
    min-height: 150px;
    overflow: hidden;
    border-radius: 10px;
    background: #eef2f1;
}

.paper-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.paper-card:hover .paper-card-thumb img {
    transform: scale(1.03);
}

.paper-card-body {
    container: paper-body / inline-size;
    min-width: 0;
}

.paper-type {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
}

.paper-type--editorial { background: #e1f3ec; color: #0b6b4f; }
.paper-type--original  { background: #e5effa; color: #1d5fa8; }
.paper-type--other     { background: #f0e8fa; color: #6b3fa0; }

.paper-card-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.38;
}

.paper-card-title a {
    color: #075b51;
    text-decoration: none;
}

.paper-card-title a:hover {
    color: #0d7a6c;
}

/* .paper-card in front: beats the site-wide ".content p" (font size, alignment) */
.paper-card .paper-card-authors {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 !important;
    font-size: 14.5px;
    line-height: 1.5;
    color: #1d6fb8;
    text-align: left !important;
}

.paper-card .paper-card-authors i {
    flex-shrink: 0;
    font-size: 13px;
}

/* Pages | DOI | Downloads | Views on one line. Default = the narrowest column
   (phones): icons and values only, the DOI as a "DOI" link. Wider columns add
   "pp." and the DOI itself, then the "Pages:"/"DOI:" labels, then the
   "Downloads:"/"Views:" labels, then the full https://doi.org/ link. */
.paper-meta {
    --pm-label-main: none;  /* "Pages:", "DOI:" */
    --pm-label-count: none; /* "Downloads:", "Views:" */
    --pm-pp: none;          /* "pp." before the page range */
    --pm-doi-word: inline;  /* the DOI link shown as the word "DOI" */
    --pm-doi-id: none;      /* the DOI itself: 10.63328/… */
    --pm-prefix: none;      /* "https://doi.org/" in front of it */
    --pm-pad: 2px 3px;
    --pm-gap: 4px;
    --pm-fs: 12.5px;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 12px 0 !important;
    padding: 8px 4px !important;
    list-style: none;
    background: #f4f8f7;
    border: 1px solid #e3eeeb;
    border-radius: 10px;
    font-size: var(--pm-fs);
    color: #2f3d3b;
}

.paper-meta li {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    gap: var(--pm-gap);
    margin: 0 !important;
    padding: var(--pm-pad) !important;
    line-height: 1.5 !important;
    white-space: nowrap;
}

.paper-meta li + li {
    border-left: 1px solid #d5e2df;
}

.paper-meta i {
    color: #075b51;
}

.paper-meta .pm-label,
.paper-meta .pm-pp {
    color: #5b6b68;
}

.paper-meta .pm-label-main  { display: var(--pm-label-main); }
.paper-meta .pm-label-count { display: var(--pm-label-count); }
.paper-meta .pm-pp          { display: var(--pm-pp); }
.paper-meta .doi-prefix     { display: var(--pm-prefix); }
.paper-meta .doi-id         { display: var(--pm-doi-id); }
.paper-meta .doi-word       { display: var(--pm-doi-word); }

.paper-meta-doi {
    flex: 1 1 auto !important;
    min-width: 0;
}

.paper-meta-doi a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1d6fb8;
    text-decoration: none;
}

.paper-meta-doi a:hover {
    text-decoration: underline;
}

/* A wider right column shows more, always on one line. Each min-width is what
   that form needs on the longest card (all 8 buttons, longest DOI and page
   range) plus a margin, measured in Chrome on all published papers. */
@container paper-body (min-width: 430px) {
    .paper-meta {
        --pm-pp: inline;
        --pm-doi-word: none;
        --pm-doi-id: inline;
        --pm-pad: 2px 7px;
        --pm-gap: 5px;
        --pm-fs: 13px;
    }
}

@container paper-body (min-width: 485px) {
    .paper-meta {
        --pm-label-main: inline;
        --pm-pp: none;
    }
}

@container paper-body (min-width: 600px) {
    .paper-meta {
        --pm-label-count: inline;
    }
}

@container paper-body (min-width: 686px) {
    .paper-meta {
        --pm-prefix: inline;
    }
}

/* Buttons: icons only (default) -> labels only -> icon and label */
@container paper-body (min-width: 440px) {
    .paper-card .paper-actions {
        --pa-label: inline;
        --pa-icon: none;
        --pa-item: 1 1 auto;
        --pa-min: auto;
        --pa-h: 31px;
        --pa-pad: 4px 5px;
        --pa-fs: 12px;
        --pa-gap: 4px;
    }
}

@container paper-body (min-width: 686px) {
    .paper-card .paper-actions {
        --pa-icon: inline-block;
        --pa-pad: 4px 8px;
        --pa-fs: 12.5px;
        --pa-gap: 6px;
    }
}

.issue-page-section .pagination,
.current-issue-list .pagination {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

@media (max-width: 1199.98px) {
    .paper-card {
        column-gap: 16px;
    }

    .paper-card-title {
        font-size: 16px;
    }
}

/* Tablets and phones: image on top, the details below it. */
@media (max-width: 767.98px) {
    .paper-card {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 12px;
        padding: 14px;
    }

    .paper-card-thumb {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .paper-card-title {
        font-size: 16px;
    }

    .paper-list-heading h3,
    .paper-list-heading h5 {
        font-size: 17px;
    }
}

@media (max-width: 575.98px) {
    .paper-list-heading {
        padding: 10px 58px 10px 12px;
    }

    .paper-list-heading::after {
        width: 50px;
    }

    .paper-list-heading img {
        width: 32px !important;
    }
}

/* ---------- Search page (search.php) ---------- */
.search-page .search-page-form {
    position: relative;
    display: flex;
    align-items: center;
    margin: 6px 0 14px;
    padding: 5px;
    background: #fff;
    border: 1px solid #e3ebe9;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(7, 91, 81, .07);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.search-page .search-page-form:focus-within {
    border-color: #3fb0a3;
    box-shadow: 0 0 0 4px rgba(63, 176, 163, .16);
}

.search-page .search-page-form > i {
    position: absolute;
    left: 20px;
    color: #6b7c79;
    pointer-events: none;
}

.search-page .search-page-form input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px 0 42px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
}

.search-page .search-page-form button {
    flex-shrink: 0;
    height: 44px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: #075b51;
    color: #fff;
    font-weight: 600;
    transition: background .25s ease;
}

.search-page .search-page-form button:hover {
    background: #0d7a6c;
}

.search-page .search-summary {
    margin: 0 0 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3ebe9;
    color: #1f2d2b;
    font-size: 14.5px;
}

.search-page .search-term {
    font-weight: 600;
    color: #075b51;
    overflow-wrap: anywhere;
}

.search-page .search-empty {
    margin: 24px 0;
    padding: 40px 20px;
    text-align: center;
    border: 1px dashed #cfdedb;
    border-radius: 14px;
    background: #f7fbfa;
}

.search-page .search-empty > i {
    font-size: 42px;
    color: #3fb0a3;
    margin-bottom: 12px;
}

.search-page .search-empty h4 {
    font-size: 18px;
    font-weight: 700;
    color: #075b51;
}

.search-page .search-empty p {
    margin: 6px auto 0;
    max-width: 440px;
    color: #6b7c79;
}

.search-page .search-empty a {
    color: #075b51;
    font-weight: 600;
}

/* the search page has its own big search box */
.search-page .site-sidebar .sb-search {
    display: none;
}
