/* =========================================================
   Article Detail Page
   ========================================================= */

.article-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

/* ---------------------------------------------------------
   Article Header
   --------------------------------------------------------- */

.article-header {
    margin-bottom: 2rem;
}

.article-title {
    margin: 0 0 1rem;
    font-size: 24pt;
    line-height: 1.25;
    font-weight: 700;
}

.article-journal {
    margin: 0;
    font-size: 1rem;
}

.article-journal a {
    font-weight: 600;
}

/* ---------------------------------------------------------
   Authors
   --------------------------------------------------------- */

.article-authors {
    margin-bottom: 2rem;
}

.article-author {
    margin-bottom: 1.4rem;
}

.article-author:last-child {
    margin-bottom: 0;
}

.article-author-name {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.4;
}

.article-author-name button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.article-author-name button:hover {
    text-decoration: underline;
}

.article-author-name button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}

.article-author-icons {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.article-author-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    text-decoration: none;
}

.article-author-icon svg {
    width: 1rem;
    height: 1rem;
}

.article-author-icon:hover {
    text-decoration: none;
}

.article-author-icon:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 2px;
}

.article-author-orcid {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.article-author-affiliations {
    margin-top: 0.3rem;
}

.article-author-affiliations p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
}

.article-author-affiliations p + p {
    margin-top: 0.2rem;
}

.article-author-legend {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

/* ---------------------------------------------------------
   Shared Article Sections
   --------------------------------------------------------- */

.article-section {
    margin-bottom: 2rem;
}

.article-section > h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1.4;
}

.article-section > h4 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.article-section p {
    margin: 0 0 0.75rem;
    line-height: 1.7;
}

.article-section p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   Publication Information
   --------------------------------------------------------- */

.article-publication dl {
    margin: 0;
}

.article-publication dl > div {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    column-gap: 1rem;
    align-items: start;
    margin-bottom: 0.6rem;
}

.article-publication dl > div:last-child {
    margin-bottom: 0;
}

.article-publication dt {
    margin: 0;
    font-weight: 700;
}

.article-publication dd {
    margin: 0;
    min-width: 0;
    line-height: 1.6;
}

/* ---------------------------------------------------------
   Abstract
   --------------------------------------------------------- */

.article-abstract {
    line-height: 1.75;
}

/* ---------------------------------------------------------
   DOI / License / Rights
   --------------------------------------------------------- */

.article-doi a,
.article-license a,
.article-rights a {
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   External Links
   --------------------------------------------------------- */

.article-external-links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-external-link {
    margin-bottom: 0.6rem;
}

.article-external-link:last-child {
    margin-bottom: 0;
}

.article-external-link a {
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   References
   --------------------------------------------------------- */

.article-references {
    margin: 0;
}

.article-reference {
    margin: 0 0 0.75rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.article-reference:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   Full-text PDF
   --------------------------------------------------------- */

.article-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
}

.article-pdf:hover {
    text-decoration: underline;
}

.article-pdf:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

 /* ---------------------------------------------------------
    Author Modal
    --------------------------------------------------------- */

.article-author-dialog {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: block;
    padding: 1rem;
}

.article-author-dialog[hidden] {
    display: none;
}

.article-author-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.article-author-dialog-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 600px);
    max-height: min(90vh, 700px);
    margin: 5vh auto 0;
    overflow-y: auto;
    padding: 1.5rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: #fff;
    color: #111;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.article-author-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.article-author-dialog-header h3 {
    margin: 0;
    padding-right: 0.5rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.article-author-dialog-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.article-author-dialog-close:hover {
    background: transparent;
    text-decoration: underline;
}

.article-author-dialog-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.article-author-dialog-content {
    line-height: 1.6;
}

.article-author-dialog-content p {
    margin: 0 0 0.85rem;
}

.article-author-dialog-content p:last-child {
    margin-bottom: 0;
}

.article-author-dialog-content strong {
    font-weight: 700;
}

.article-author-dialog-content a {
    overflow-wrap: anywhere;
}

.article-author-dialog-content > div {
    margin-top: 1rem;
}

.article-author-dialog-content ul {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
}

.article-author-dialog-content li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.article-author-dialog-content li:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
   Author Modal — Responsive
   --------------------------------------------------------- */

@media (max-width: 700px) {
    .article-author-dialog {
        padding: 0.75rem;
    }

    .article-author-dialog-panel {
        width: 100%;
        max-height: 90vh;
        margin: 5vh auto 0;
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .article-author-dialog {
        padding: 0.5rem;
    }

    .article-author-dialog-panel {
        max-height: 92vh;
        margin: 4vh auto 0;
        padding: 1rem;
    }

    .article-author-dialog-header h3 {
        font-size: 1.3rem;
    }
}

/* ---------------------------------------------------------
   Author svg icons
   --------------------------------------------------------- */

.article-author-corresponding svg,
.article-author-email svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.article-author-corresponding,
.article-author-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.article-author-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.article-author-legend svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------------------------------------------------------
   Author Icon Tooltips
   --------------------------------------------------------- */

.article-author-corresponding,
.article-author-email,
.article-author-orcid {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.article-author-icon-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.5rem);
    z-index: 20;
    width: max-content;
    max-width: 220px;
    padding: 0.35rem 0.55rem;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    transform: translateX(-50%);
    opacity: 0;
    visibility: hidden;
    transition: none;
    pointer-events: none;
}

.article-author-corresponding:hover > .article-author-icon-tooltip,
.article-author-email:hover > .article-author-icon-tooltip,
.article-author-orcid:hover > .article-author-icon-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ---------------------------------------------------------
   HTML Full Text Parent Heading
   --------------------------------------------------------- */

.article-html-full-text-heading {
    display: none;
}

/* ---------------------------------------------------------
   Article Page Layout
   --------------------------------------------------------- */

.article-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16rem;
    gap: 2.5rem;
    align-items: start;
}

.article-page-main {
    min-width: 0;
}

.article-page-sidebar {
    min-width: 0;
    align-self: stretch;
}

@media (max-width: 900px) {
    .article-page-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-page-sidebar {
        order: -1;
    }
}

/* ---------------------------------------------------------
   Responsive Layout
   --------------------------------------------------------- */

@media (max-width: 700px) {
    .article-page {
        padding: 1.5rem 1rem 3rem;
    }

    .article-title {
        font-size: 24pt;
        line-height: 1.2;
    }

    .article-author-name {
        font-size: 1.15rem;
    }

    .article-publication-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
        margin-bottom: 0.9rem;
    }

    .article-author-dialog {
        width: 100%;
        max-height: 90vh;
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .article-page {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .article-title {
        font-size: 24pt;
    }

    .article-author-dialog {
        max-height: 92vh;
        padding: 1rem;
    }
}
@media (max-width: 700px) {
    .article-publication dl > div {
        grid-template-columns: 1fr;
        row-gap: 0.15rem;
        margin-bottom: 0.9rem;
    }
}

/* ---------------------------------------------------------
   Article Keywords
   --------------------------------------------------------- */

.article-keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.article-keyword {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;

    border: 1px solid currentColor;
    border-radius: 999px;

    text-decoration: none;
    line-height: 1.3;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.article-keyword:hover {
    text-decoration: none;
}

.article-keyword:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
/* ---------------------------------------------------------
   Graphical Abstract
   --------------------------------------------------------- */

.article-graphical-abstract-image {
    margin-top: 1rem;
}

.article-graphical-abstract-image img {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
}

/* ---------------------------------------------------------
   Supplementary Information
   --------------------------------------------------------- */


.article-supplementary-item {
    margin-bottom: 0.5rem;
}

.article-supplementary-item:last-child {
    margin-bottom: 0;
}

.article-supplementary-item a:hover {
    text-decoration-thickness: 2px;
}

.article-supplementary-item a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}