/**
 * Article-page accents only.
 * Keeps post content simple while restoring the resource card and dark footer.
 */

/* Resource cover, metadata and download area. */
body.single-post .article-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

body.single-post .article-header .entry-title,
body.single-post .article-header .post-title {
    position: relative;
    margin-bottom: 1.15rem;
    padding-left: 1rem;
    color: #24324a;
    letter-spacing: -0.01em;
}

body.single-post .article-header .entry-title::before,
body.single-post .article-header .post-title::before {
    content: "";
    position: absolute;
    top: 0.12em;
    bottom: 0.12em;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #3b82f6, #0cbc87);
}

body.single-post .archive-shop {
    margin-top: 0.75rem !important;
    margin-bottom: 1.25rem !important;
    padding: 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f7faff 100%);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

body.single-post .archive-shop .row {
    align-items: stretch;
    row-gap: 0.85rem;
}

body.single-post .archive-shop .row > .col-lg-4 {
    display: flex;
}

body.single-post .archive-shop .img-box {
    position: relative;
    display: block;
    width: 100%;
    height: auto !important;
    padding: 0 !important;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.11);
}

body.single-post .archive-shop .img-box img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
}

body.single-post .archive-shop .info-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.55rem;
}

body.single-post .archive-shop .article-meta {
    display: grid;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    gap: 0.5rem;
    margin-bottom: 0;
    padding: 0.7rem !important;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    background: #eef3f9;
}

body.single-post .archive-shop .resource-meta-item {
    display: flex;
    align-items: flex-start;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0.48rem 0.6rem;
    border: 1px solid rgba(203, 213, 225, 0.65);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    line-height: 1.45;
}

body.single-post .archive-shop .resource-meta-label {
    flex: 0 0 auto;
    color: #52647c;
    font-weight: 600;
    white-space: nowrap;
}

body.single-post .archive-shop .resource-meta-label::after {
    content: "：";
}

body.single-post .archive-shop .resource-meta-value {
    min-width: 0;
    color: #26364d;
    word-break: break-all;
}

/* Keep MD5 and SHA1 side by side; SHA1 receives the wider column. */
body.single-post .archive-shop .resource-meta-item:nth-child(5),
body.single-post .archive-shop .resource-meta-item:nth-child(6) {
    align-items: center;
    white-space: nowrap;
}

body.single-post .archive-shop .resource-meta-item:nth-child(5) .resource-meta-value,
body.single-post .archive-shop .resource-meta-item:nth-child(6) .resource-meta-value {
    overflow: hidden;
    font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
    white-space: nowrap;
    text-overflow: clip;
    word-break: normal;
}

body.single-post .archive-shop .ri-down-warp {
    margin-top: 0 !important;
}

body.single-post .archive-shop .btn-group {
    display: inline-flex;
    width: 100%;
    margin-bottom: 0.1rem;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 7px 18px rgba(12, 188, 135, 0.2);
}

body.single-post .archive-shop .btn {
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.25rem;
    flex: 1 1 auto;
    border: 0;
    font-weight: 600;
    background: linear-gradient(135deg, #10b981, #0aa678);
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.single-post .archive-shop .btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #0eaa76, #078f68);
    box-shadow: none;
}

body.single-post .download-notice {
    margin: 0.15rem 0 0;
    padding: 0.65rem 0.8rem;
    border-left: 3px solid #ef4444;
    border-radius: 7px;
    background: #fff4f4;
    color: #c93645;
    font-size: 0.8125rem;
    line-height: 1.55;
}

/* Restore the original restrained dark footer on article pages. */
body.single-post .site-footer {
    margin-top: 2.75rem !important;
    padding: 2.25rem 0 1.35rem !important;
    background: #172033 !important;
    color: #cbd5e1;
}

body.single-post .site-footer p,
body.single-post .site-footer .small {
    color: #cbd5e1;
}

body.single-post .site-footer .widget-title {
    color: #ffffff;
}

body.single-post .site-footer a {
    color: #dbeafe;
}

body.single-post .site-footer a:hover {
    color: #ffffff;
}

body.single-post .site-footer .footer-widget-row {
    align-items: flex-start;
}

body.single-post .site-footer .footer-about-col {
    flex: 1 1 auto;
}

body.single-post .site-footer .footer-about-col > p.small {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.8;
}

body.single-post .site-footer .footer-contact-col {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
    text-align: center;
}

body.single-post .site-footer .footer-contact-col .widget-title {
    margin-bottom: 0.75rem;
    text-align: center;
}

body.single-post .site-footer .footer-contact-content,
body.single-post .site-footer .footer-contact-content p {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem;
    margin: 0;
}

body.single-post .site-footer .footer-contact-content img {
    display: block;
    width: 90px;
    height: 90px;
    object-fit: contain;
}

@media (max-width: 1279.98px) {
    /* Keep complete fingerprints visible when the desktop content column narrows. */
    body.single-post .archive-shop .resource-meta-item:nth-child(5),
    body.single-post .archive-shop .resource-meta-item:nth-child(6) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    body.single-post .archive-shop .row {
        flex-direction: column;
    }

    body.single-post .archive-shop .row > .col-lg-4,
    body.single-post .archive-shop .info-box {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

}

@media (max-width: 767.98px) {
    body.single-post .archive-shop .article-meta {
        grid-template-columns: 1fr;
    }

    body.single-post .article-header {
        padding: 1.1rem 1rem 0.35rem;
    }

    body.single-post .archive-shop {
        padding: 0.8rem;
        border-radius: 12px;
    }
}
