/*
 * Journal System - Frontend Styles
 * Minimal baseline. Refined styling will be added in later stages.
 */

.ashbar-article-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.ashbar-article-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.ashbar-article-title {
    font-size: 2em;
    line-height: 1.3;
    margin-bottom: 20px;
}

/* Authors */
.ashbar-authors {
    margin-top: 15px;
}

.ashbar-authors-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.ashbar-authors-list li.ashbar-author {
    display: inline;
    margin-right: 6px;
}

.ashbar-authors-list li.ashbar-author:not(:last-child)::after {
    content: ", ";
}

.ashbar-author-name {
    font-weight: 500;
}

.ashbar-author-affnum {
    font-size: 0.75em;
    margin-left: 2px;
}

.ashbar-author-corresponding {
    margin-left: 1px;
}

.ashbar-affiliations-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    font-size: 0.9em;
    color: #555;
}

.ashbar-affiliations-list li {
    margin-bottom: 3px;
}

.ashbar-corresponding-note {
    font-size: 0.9em;
    color: #555;
    margin: 5px 0;
}

/* Abstract */
.ashbar-abstract {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-left: 3px solid #2271b1;
}

.ashbar-abstract-heading {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ashbar-abstract-body {
    line-height: 1.6;
}

/* Keywords */
.ashbar-keywords {
    margin: 20px 0;
    font-size: 0.95em;
}

.ashbar-keywords-label {
    font-weight: 600;
}

.ashbar-keyword {
    text-decoration: none;
}

.ashbar-keyword:hover {
    text-decoration: underline;
}

/* Article Content */
.ashbar-article-content {
    margin-top: 30px;
    line-height: 1.7;
}

/* Top grid - Meta/PDF on one side, Citation on the other */
.ashbar-article-topgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 25px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fafafa;
}

@media (max-width: 768px) {
    .ashbar-article-topgrid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.ashbar-article-topgrid-col {
    min-width: 0; /* Prevent grid overflow with long content */
}

/* Meta definition list */
.ashbar-article-meta {
    margin: 0 0 15px 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    font-size: 0.9em;
}

.ashbar-article-meta dt.ashbar-meta-label {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.ashbar-article-meta dd.ashbar-meta-value {
    margin: 0;
    color: #222;
    word-break: break-word;
}

.ashbar-article-meta dd a {
    text-decoration: none;
}

.ashbar-article-meta dd a:hover {
    text-decoration: underline;
}

/* PDF Button */
.ashbar-pdf-wrapper {
    margin-top: 10px;
}

.ashbar-pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #c53030;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.ashbar-pdf-button:hover {
    background: #9b2020;
    color: #fff !important;
}

.ashbar-pdf-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ashbar-pdf-label {
    font-size: 0.95em;
}

/* Citation */
.ashbar-citation-heading {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #555;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.ashbar-citation-text {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95em;
    color: #222;
}

.ashbar-citation-text a {
    word-break: break-all;
}