/* Opas hero */
.opas-hero {
    background: #ede7f6;
    padding: 110px 0 48px;
}

.opas-hero h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.1;
    color: #1a1a2e;
    margin-bottom: 16px;
}

.opas-intro {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
    max-width: 500px;
}

/* Artikkelilista */
.opas-listing {
    padding: 48px 24px 72px;
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.article-card {
    display: block;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    border-color: #1a5276;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.article-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a5276;
    background: #ede7f6;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.article-card h2 {
    font-size: 19px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.3;
}

.article-card p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

/* ============================================
   ARTIKKELI-SIVU
   ============================================ */
.article-hero {
    background: #ede7f6;
    padding: 110px 0 48px;
}

.article-hero .article-tag {
    margin-bottom: 16px;
}

.article-hero h1 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.1;
    color: #1a1a2e;
    margin-bottom: 14px;
    max-width: 640px;
}

.article-meta {
    font-size: 14px;
    color: #888;
}

/* Sisältölayout */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 64px;
    align-items: start;
}

.article-body {
    min-width: 0;
}

.article-body h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    color: #1a1a2e;
    margin-top: 40px;
    margin-bottom: 14px;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 28px;
    margin-bottom: 10px;
}

.article-body p {
    font-size: 16px;
    color: #444;
    line-height: 1.75;
    margin-bottom: 14px;
}

.article-body ul, .article-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-body li {
    font-size: 15px;
    color: #444;
    line-height: 1.7;
    margin-bottom: 6px;
}

.article-body strong { color: #1a1a2e; }
.article-body em { color: #888; font-size: 14px; }

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.article-body th {
    text-align: left;
    padding: 12px 14px;
    background: #1a5276;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.article-body td {
    padding: 11px 14px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.article-body tr:hover td { background: #f8f8fa; }

/* CTA in article */
.article-cta {
    background: #ede7f6;
    padding: 28px;
    border-radius: 12px;
    margin: 36px 0;
}

.article-cta p {
    margin-bottom: 16px;
    color: #1a1a2e;
}

.article-cta .btn-primary {
    max-width: 280px;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 90px;
}

.sidebar-cta {
    background: #ede7f6;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-cta h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.sidebar-cta p {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.5;
}

.sidebar-cta .btn-primary {
    font-size: 14px;
    padding: 12px 20px;
}

.sidebar-more {
    background: #f8f8fa;
    border-radius: 12px;
    padding: 24px;
}

.sidebar-more h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 14px;
}

.sidebar-more a {
    display: block;
    font-size: 14px;
    color: #1a5276;
    margin-bottom: 10px;
    line-height: 1.4;
}

.sidebar-more a:hover { text-decoration: underline; }

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #1a5276;
    font-weight: 500;
    margin-bottom: 20px;
}

.back-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; gap: 32px; }
    .article-sidebar { position: static; }
}

@media (max-width: 600px) {
    .opas-hero { padding: 80px 0 32px; }
    .opas-hero h1 { font-size: 34px; }
    .articles-grid { grid-template-columns: 1fr; }
    .article-hero { padding: 80px 0 32px; }
    .article-hero h1 { font-size: 28px; }
    .article-body h2 { font-size: 22px; }
    .article-layout { padding-top: 32px; padding-bottom: 40px; }
    .article-card { padding: 22px; }

    /* Taulukot skrollattaviksi mobiilissa */
    .article-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 12px;
        width: 100%;
    }
    .article-body td, .article-body th {
        padding: 8px 10px;
        word-break: break-word;
        min-width: 80px;
    }
}
