:root {
    --archive-dark: #111111;
    --archive-soft: #f5f5f5;
    --archive-line: #e5e5e5;
}

body {
    background: #ececec;
    font-family: Arial, Helvetica, sans-serif;
    color: #171717;
}

.legacy-site-header {
    background: #fff;
    border-bottom: 1px solid #d7d7d7;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.legacy-topline {
    width: min(1140px, calc(100% - 18px));
    height: 36px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    gap: 0;
    color: #555;
    font-size: 12px;
}

.legacy-topline a {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 10px;
    color: #fff;
    background: #e01818;
    text-decoration: none;
    font-weight: 700;
}

.legacy-date {
    padding-right: 16px;
}

.legacy-work-link {
    margin-right: 14px;
}

.legacy-submit-note {
    color: #222;
}

.legacy-nav {
    width: min(1140px, calc(100% - 18px));
    min-height: 90px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
    align-items: center;
    gap: 26px;
}

.legacy-brand img {
    display: block;
    width: 92px;
}

.legacy-brand-text {
    color: #111;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 1000;
    line-height: 1;
    letter-spacing: -1.6px;
}

.legacy-brand-text:hover {
    color: #e01818;
}

.legacy-nav nav {
    display: flex;
    align-items: stretch;
    gap: 0;
    align-self: stretch;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-end;
}

.legacy-nav nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #171717;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 0 18px;
    gap: 8px;
}

.legacy-nav nav a svg { width:22px; height:22px; flex:0 0 22px; fill:currentColor; }

.legacy-nav nav a:hover {
    color: #e01818;
}

.legacy-nav nav a.active {
    background: #050505;
    color: #fff;
}

.legacy-menu-toggle { display:none; width:46px; height:42px; border:1px solid #111; background:#fff; padding:9px; cursor:pointer; }
.legacy-menu-toggle span { display:block; width:100%; height:3px; margin:4px 0; background:#111; transition:transform .2s ease, opacity .2s ease; }
.legacy-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.legacy-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
.legacy-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

.cookie-consent { position:fixed; z-index:1000; left:18px; right:18px; bottom:18px; display:none; align-items:center; justify-content:space-between; gap:20px; max-width:900px; margin:auto; padding:16px 18px; border:2px solid #111; background:#fff; color:#111; box-shadow:8px 8px 0 rgba(0,0,0,.35); }
.cookie-consent.is-visible { display:flex; }
.cookie-consent p { margin:4px 0 0; max-width:580px; font-size:.82rem; line-height:1.4; }
.cookie-consent-actions { display:flex; gap:8px; flex:0 0 auto; }
.cookie-consent button { min-height:40px; border:1px solid #111; padding:0 14px; background:#fff; color:#111; font-weight:900; cursor:pointer; }
.cookie-consent button.primary { background:#111; color:#fff; }
.cookie-consent a { color:inherit; font-weight:900; }
.legacy-privacy-link { color:inherit; font-size:.72rem; font-weight:800; }
@media (max-width:680px) { .cookie-consent { align-items:stretch; flex-direction:column; left:9px; right:9px; bottom:9px; } .cookie-consent-actions { display:grid; grid-template-columns:1fr 1fr; } }

.archive-hero {
    background: #ffffff;
    padding: 22px 0 18px;
    box-shadow: none;
    border-bottom: 1px solid #d7d7d7;
    margin-bottom: 28px;
}

.archive-logo {
    max-height: 78px;
    max-width: 100%;
}

.archive-subtitle {
    margin-top: 12px;
    color: #666;
}

.archive-card {
    border: 1px solid var(--archive-line);
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}

.archive-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.archive-list-card {
    display: flex;
    min-height: 210px;
}

.archive-thumb {
    width: 300px;
    min-height: 210px;
    background: #e9ecef;
    flex-shrink: 0;
    overflow: hidden;
}

.archive-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.archive-thumb-placeholder {
    width: 100%;
    height: 100%;
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 42px;
}

.archive-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.archive-title {
    color: #111;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.archive-title:hover {
    color: #e01818;
}

.archive-excerpt {
    color: #444;
    margin-top: 10px;
}

.archive-meta {
    color: #777;
    font-size: .9rem;
    margin-top: auto;
    padding-top: 12px;
}


.archive-search-card {
    background: #fff;
    border: 1px solid var(--archive-line);
    border-radius: 0;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.archive-search-card .form-control:focus {
    box-shadow: none;
    border-color: #111;
}

.sidebar-card {
    background: #fff;
    border: 1px solid var(--archive-line);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.article-card {
    background: #fff;
    border-radius: 0;
    border: 1px solid var(--archive-line);
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    overflow: hidden;
}

.article-cover {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
}

.article-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 34px;
    line-height: 1.8;
    font-size: 1.06rem;
}

.article-content p {
    text-align: justify;
    margin-bottom: 1.35rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

.article-content img.alignleft,
img.alignleft {
    float: left;
    margin: 0 18px 14px 0;
    max-width: 42%;
}

.article-content img.alignright,
img.alignright {
    float: right;
    margin: 0 0 14px 18px;
    max-width: 42%;
}

.article-content img.aligncenter,
img.aligncenter {
    display: block;
    margin: 22px auto;
    max-width: 100%;
}

.article-content::after {
    content: "";
    display: block;
    clear: both;
}

.archive-audio {
    width: 100%;
    margin: 20px 0;
}

.site-footer { margin-top:42px; border-top:5px solid #ffba08; background:#0b0b0b; color:#fff; }
.site-footer-inner { width:min(1180px,calc(100% - 32px)); margin:0 auto; padding:28px 0; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:22px; }
.site-footer-brand { color:#ffba08; font-size:1.35rem; font-weight:1000; text-decoration:none; }
.site-footer nav { display:flex; justify-content:center; flex-wrap:wrap; gap:8px 18px; }
.site-footer nav a { color:#fff; font-size:.8rem; font-weight:900; text-decoration:none; }
.site-footer nav a:hover { color:#ffba08; }
.site-footer p { margin:0; color:#999; font-size:.72rem; text-align:right; }
@media(max-width:760px){.site-footer-inner{grid-template-columns:1fr;text-align:center}.site-footer p{text-align:center}}

@media (max-width: 768px) {
    .legacy-topline {
        height: auto;
        padding: 8px 0;
        gap: 8px;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
    }

    .legacy-topline a {
        height: auto;
        padding: 6px 8px;
    }

    .legacy-nav {
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 10px 0;
    }

    .legacy-brand img {
        width: 86px;
    }

    .legacy-brand-text {
        font-size: 1.65rem;
    }

    .legacy-menu-toggle { display:block; align-self:center; }

    .legacy-nav nav {
        display:none;
        grid-column:1 / -1;
        flex-direction:column;
        align-items:stretch;
        gap:0;
        padding:8px 0 4px;
        border-top:1px solid #ddd;
    }

    .legacy-nav nav.is-open { display:flex; }

    .legacy-nav nav a {
        min-height: 42px;
        padding: 0 12px;
        font-size: 13px;
        justify-content:flex-start;
        border-bottom:1px solid #eee;
    }

    .archive-list-card {
        flex-direction: column;
    }

    .archive-thumb {
        width: 100%;
        min-height: 220px;
    }

    .article-content {
        padding: 22px;
    }

    .article-content img.alignleft,
    .article-content img.alignright,
    img.alignleft,
    img.alignright {
        float: none;
        display: block;
        margin: 18px auto;
        max-width: 100%;
    }
}

/* Modernizuotas vienos naujienos puslapis */
.post-page {
    padding-bottom: 48px;
}

.modern-article {
    position: relative;
}

.article-cover-wrap {
    background: #111;
}

.article-heading {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 900;
    margin-bottom: 18px;
}

.article-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-kicker span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f1f1;
    border: 1px solid #e4e4e4;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: .86rem;
    color: #555;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #666;
    font-size: .95rem;
}

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

.article-share-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.comments-card {
    background: #fff;
    border: 1px solid var(--archive-line);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.045);
    padding: 24px;
}

.comment-text {
    color: #333;
    line-height: 1.65;
}

.post-sidebar {
    top: 92px;
}

.voting-box {
    background: linear-gradient(135deg, #fff, #fff5f5);
}

.voting-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dc3545;
    color: #fff;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.post-facts {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 8px 12px;
    font-size: .95rem;
}

.post-facts dt {
    color: #777;
    font-weight: 600;
}

.post-facts dd {
    margin: 0;
    color: #111;
}

.related-section {
    background: #fff;
    border: 1px solid var(--archive-line);
    border-radius: 20px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(0,0,0,.045);
}

.related-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--archive-line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
}

.related-thumb {
    height: 170px;
    background: #e9ecef;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    overflow: hidden;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.related-title {
    color: #111;
    font-weight: 850;
    line-height: 1.28;
    text-decoration: none;
    margin-bottom: 10px;
}

.related-title:hover {
    color: #0d6efd;
}

.related-meta {
    color: #777;
    font-size: .84rem;
    margin-bottom: 10px;
}

.related-excerpt {
    color: #555;
    font-size: .92rem;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .post-sidebar {
        position: static !important;
    }
}

@media (max-width: 768px) {
    .article-heading {
        letter-spacing: -0.025em;
    }

    .comments-card,
    .related-section {
        padding: 18px;
    }

    .post-facts {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* Random archyvo pagrindinis puslapis */
.archive-kicker-line span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--archive-line);
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 11px;
    color: #555;
    font-size: .86rem;
}

.random-intro-card {
    background: #111;
    color: #fff;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.random-intro-card .text-muted {
    color: rgba(255,255,255,.62) !important;
}

.random-intro-card .btn {
    background: #fff;
    color: #111;
    border-color: #fff;
    white-space: nowrap;
}

.random-intro-card .btn:hover {
    background: #e9ecef;
    border-color: #e9ecef;
    color: #111;
}

@media (max-width: 768px) {
    .random-intro-card {
        align-items: stretch;
        flex-direction: column;
    }

    .random-intro-card .btn {
        width: 100%;
    }
}
