/* Article detail page — nastiro navigation theme */
.article-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.article-detail-card {
    overflow: hidden;
}

.article-hero {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding-bottom: 24px;
    margin-bottom: 8px;
    border-bottom: 1px dashed #e5e7eb;
}

.article-hero-main {
    flex: 1;
    min-width: 0;
}

.article-cat {
    display: inline-block;
    margin-bottom: 12px;
}

.article-cat a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(75, 156, 3, 0.12);
    color: var(--primary-color-80);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.article-cat a:hover {
    background: var(--primary-color);
    color: #fff;
}

.article-title {
    font-size: 2rem;
    line-height: 1.35;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 14px;
    word-break: break-word;
    text-transform: capitalize;
}

.article-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0 0 16px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #9ca3af;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-hero-cover {
    flex-shrink: 0;
    width: 120px;
}

.article-hero-cover .cover-box {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    border: 1px solid #eee;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
}

.article-hero-cover .cover-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.article-hero-cover.is-placeholder {
    display: none;
}

.article-content.log-body {
    padding: 24px 0 8px;
    line-height: 1.85;
    font-size: 16px;
    color: #374151;
}

.article-content.log-body p,
.article-content.log-body li {
    font-size: 16px;
}

.article-content.log-body > p:first-child {
    font-size: 17px;
    color: #4b5563;
}

.article-content.log-body h2 {
    width: auto;
    margin: 2em 0 1em;
    padding: 10px 16px;
    font-size: 1.25rem;
    line-height: 1.5;
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(90deg, rgba(75, 156, 3, 0.08), transparent);
    border-radius: 0 8px 8px 0;
    word-break: break-word;
}

.article-content.log-body h3 {
    margin: 1.5em 0 0.75em;
    padding-left: 12px;
    border-left: 3px solid var(--primary-color-80);
    font-size: 1.05rem;
    line-height: 1.5;
    color: #1f2937;
    word-break: break-word;
}

.article-content.log-body ul {
    margin: 0 0 1.25em;
    padding-left: 1.4em;
}

.article-content.log-body ul li {
    margin-bottom: 0.5em;
    line-height: 1.75;
    list-style: disc;
}

.article-content.log-body strong {
    color: #111827;
}

.article-disclaimer {
    margin-top: 28px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    font-size: 13px;
    line-height: 1.7;
    color: #6b7280;
}

.article-disclaimer-label {
    font-weight: 700;
    color: #374151;
    margin-right: 6px;
}

.relation-log .h2 {
    margin-bottom: 16px;
}

.breadcrumb {
    background: transparent;
    padding: 8px 0 0;
    margin-bottom: 12px;
}

.breadcrumb a {
    color: var(--primary-color-80);
}

.breadcrumb a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media screen and (max-width: 960px) {
    .article-hero {
        flex-direction: column;
    }

    .article-title {
        font-size: 1.6rem;
    }

    .article-hero-cover.is-placeholder {
        display: none;
    }
}

@media (max-width: 1400px) {
    .article-layout {
        display: flex;
    }

    .side-bar {
        display: block;
        width: 280px;
        flex-shrink: 0;
    }

    .article {
        min-width: 0;
    }
}

@media (max-width: 1100px) {
    .article-layout {
        display: block;
    }

    .side-bar {
        display: none;
    }
}

/* Sidebar tag chips */
.widget-tags .tag-chip-list,
.widget-tags-popular .tag-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.widget-tags .tag-chip-list li,
.widget-tags-popular .tag-chip-list li {
    width: auto;
    padding: 0;
    list-style: none;
}

.tag-chip-list a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(75, 156, 3, 0.1);
    border: 1px solid rgba(75, 156, 3, 0.2);
    color: var(--primary-color-80);
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-chip-list a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.tag-chip-label {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-chip-count {
    font-size: 11px;
    opacity: 0.75;
    flex-shrink: 0;
}

.tag-chip-list-muted a {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #4b5563;
}

.tag-chip-list-muted a:hover {
    background: var(--primary-color-80);
    border-color: var(--primary-color-80);
    color: #fff;
}

.widget-tags-popular {
    margin-top: 12px;
}

.side-bar .widget-common li {
    padding: 0;
}

.side-bar .widget-common ul {
    display: block;
}

.side-bar .widget-common:not(.widget-tags):not(.widget-tags-popular) ul {
    display: flex;
    flex-wrap: wrap;
}

.echo-log > .ey_con {
    display: block;
    max-width: 1400px;
    padding: 0 16px 24px;
}

.article-layout.ey_con {
    display: flex;
    max-width: 100%;
    padding: 0;
    margin: 0;
}
