/* List, Show, News — simple inner-page layout */

.page-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.page-wrap.wide {
    max-width: 960px;
}

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--gold-light);
    margin-bottom: 12px;
    line-height: 1.2;
}

.page-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.page-intro img,
.page-thumb {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 16px 24px 0;
    max-width: 960px;
    margin: 0 auto;
}

.breadcrumb a {
    color: var(--gold);
}

.breadcrumb span {
    margin: 0 6px;
    opacity: 0.5;
}

/* Simple list */
.simple-list {
    list-style: none;
    border-top: 1px solid var(--border);
}

.simple-list li {
    border-bottom: 1px solid var(--border);
}

.simple-list a {
    display: block;
    padding: 20px 0;
    color: inherit;
}

.simple-list a:hover h2 {
    color: var(--gold);
}

.list-date {
    display: block;
    font-size: 0.78rem;
    color: var(--neon);
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.simple-list h2 {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 6px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0;
    transition: color 0.2s;
}

.simple-list p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Card list with thumb — compact */
.compact-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.compact-item {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.compact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.compact-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    flex-shrink: 0;
}

.compact-item-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.compact-item-body .list-date {
    margin-bottom: 8px;
}

.compact-item-body h2 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.compact-item-body h2 a {
    color: var(--text-light);
}

.compact-item-body h2 a:hover {
    color: var(--gold);
}

.compact-item-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: auto;
}

/* Pagination */
.pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pagination a {
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
}

.pagination a:hover {
    border-color: var(--gold);
}

/* Article / show content */
.article-page img,
.show-page img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    border: 1px solid var(--border);
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.article-meta span + span::before {
    content: ' · ';
}

.article-lead {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 20px;
}

.article-body,
.show-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-main);
}

.article-body p,
.show-body p {
    margin-bottom: 16px;
}

.article-body img,
.show-body img {
    max-width: 100%;
    height: auto;
}

.page-actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ad-block {
    margin: 32px 0;
    text-align: center;
}

.ad-block img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

.related-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 40px 0 16px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

/* Simple footer override for inner pages */
.main-footer.compact {
    padding: 40px 0 0;
    margin-top: 0;
}

.main-footer.compact .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .compact-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-wrap {
        padding: 24px 16px 48px;
    }

    .compact-list {
        grid-template-columns: 1fr;
    }

    .compact-item img {
        height: 200px;
    }

    .main-footer.compact .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
