/* ==========================================================================\n   GTheme Article Detail - Compact metadata strip\n   Downloads / Published / Issue / License below the translated subtitle.\n   Article/issue cover is intentionally not displayed on article view.\n   ========================================================================== */

.obj_article_details .gtheme-article-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 26px 0 8px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .045);
}

.obj_article_details .gtheme-article-meta__item {
    min-width: 0;
    padding: 17px 19px;
    border-right: 1px solid rgba(15, 23, 42, .075);
    border-bottom: 1px solid rgba(15, 23, 42, .075);
}

.obj_article_details .gtheme-article-meta__item:nth-child(2n) {
    border-right: 0;
}

.obj_article_details .gtheme-article-meta__item:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.obj_article_details .gtheme-article-meta__label {
    margin-bottom: 8px;
    color: var(--gtheme-mid);
    font-size: 10px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.obj_article_details .gtheme-article-meta__value {
    color: #1e293b;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.obj_article_details .gtheme-article-meta__link {
    color: var(--gtheme-dark) !important;
    font-weight: 750;
    text-decoration: none !important;
}

.obj_article_details .gtheme-article-meta__link:hover,
.obj_article_details .gtheme-article-meta__link:focus {
    color: var(--gtheme-mid) !important;
}

.obj_article_details .gtheme-article-meta__galleys {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.obj_article_details .gtheme-article-meta__galleys li {
    margin: 0 !important;
    padding: 0 !important;
}

.obj_article_details .gtheme-article-meta__galleys .obj_galley_link,
.obj_article_details .gtheme-article-meta__galleys a {
    min-height: 36px;
    padding: 8px 12px !important;
    border: 1px solid var(--gtheme-accent) !important;
    border-radius: 10px !important;
    color: var(--gtheme-dark) !important;
    background: var(--gtheme-soft) !important;
    box-shadow: none !important;
    font-size: 12px !important;
    line-height: 1.15;
}

.obj_article_details .gtheme-article-meta__galleys .obj_galley_link:hover,
.obj_article_details .gtheme-article-meta__galleys a:hover {
    color: #fff !important;
    border-color: var(--gtheme-mid) !important;
    background: var(--gtheme-mid) !important;
}

.obj_article_details .gtheme-article-meta__license-badge {
    margin-bottom: 6px;
}

.obj_article_details .gtheme-article-meta__license-badge img {
    display: block;
    max-width: 104px;
    height: auto;
}

.obj_article_details .gtheme-article-meta__license-terms {
    color: #64748b;
    font-size: 11.5px;
    line-height: 1.5;
}

.obj_article_details .gtheme-article-meta__license-terms a {
    color: var(--gtheme-mid) !important;
}

/* Keep the title hierarchy visually connected to the metadata panel. */
.obj_article_details > .subtitle {
    margin-bottom: 0;
}

html.dark .obj_article_details .gtheme-article-meta {
    border-color: rgba(255, 255, 255, .09);
    background: #111827;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
}

html.dark .obj_article_details .gtheme-article-meta__item {
    border-color: rgba(255, 255, 255, .075);
}

html.dark .obj_article_details .gtheme-article-meta__value,
html.dark .obj_article_details .gtheme-article-meta__link {
    color: #e2e8f0 !important;
}

html.dark .obj_article_details .gtheme-article-meta__license-terms {
    color: #94a3b8;
}

@media (min-width: 1100px) {
    .obj_article_details .gtheme-article-meta {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .obj_article_details .gtheme-article-meta__item,
    .obj_article_details .gtheme-article-meta__item:nth-child(2n),
    .obj_article_details .gtheme-article-meta__item:nth-last-child(-n + 2) {
        border-right: 1px solid rgba(15, 23, 42, .075);
        border-bottom: 0;
    }

    .obj_article_details .gtheme-article-meta__item:last-child {
        border-right: 0;
    }

    html.dark .obj_article_details .gtheme-article-meta__item,
    html.dark .obj_article_details .gtheme-article-meta__item:nth-child(2n),
    html.dark .obj_article_details .gtheme-article-meta__item:nth-last-child(-n + 2) {
        border-color: rgba(255, 255, 255, .075);
    }
}

@media (max-width: 640px) {
    .obj_article_details .gtheme-article-meta {
        grid-template-columns: 1fr;
        margin-top: 20px;
        border-radius: 15px;
    }

    .obj_article_details .gtheme-article-meta__item,
    .obj_article_details .gtheme-article-meta__item:nth-child(2n),
    .obj_article_details .gtheme-article-meta__item:nth-last-child(-n + 2) {
        padding: 15px 16px;
        border-right: 0;
        border-bottom: 1px solid rgba(15, 23, 42, .075);
    }

    .obj_article_details .gtheme-article-meta__item:last-child {
        border-bottom: 0;
    }
}
