/* NepsyNavi Article Styles */

/* Article content typography */
.nepsy-article .entry-content,
.single-post .entry-content {
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 0 24px 60px !important;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--navi-charcoal, #2D3436);
}

.nepsy-article .entry-content h2,
.single-post .entry-content h2 {
    font-family: var(--font-display, 'DM Serif Display', Georgia, serif) !important;
    font-size: 1.7rem !important;
    font-weight: 400 !important;
    color: var(--navi-charcoal, #2D3436) !important;
    margin: 48px 0 16px !important;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(45, 106, 79, 0.08);
}

.nepsy-article .entry-content h3,
.single-post .entry-content h3 {
    font-family: var(--font-display, 'DM Serif Display', Georgia, serif) !important;
    font-size: 1.3rem !important;
    font-weight: 400 !important;
    color: var(--navi-charcoal, #2D3436) !important;
    margin: 36px 0 12px !important;
}

.nepsy-article .entry-content p,
.single-post .entry-content p {
    margin-bottom: 18px;
    color: var(--navi-charcoal, #2D3436);
}

.nepsy-article .entry-content strong,
.single-post .entry-content strong {
    color: var(--navi-charcoal, #2D3436);
    font-weight: 700;
}

/* Lists */
.nepsy-article .entry-content ul.nsi-list,
.single-post .entry-content ul.nsi-list,
.nepsy-article .entry-content ul,
.single-post .entry-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.nepsy-article .entry-content ul li,
.single-post .entry-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    line-height: 1.75;
}

.nepsy-article .entry-content ul li::before,
.single-post .entry-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--navi-forest, #2D6A4F);
}

/* Tables */
.nsi-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.92rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(45, 106, 79, 0.1);
}

.nsi-table thead { background: var(--navi-forest-dark, #1B4332); }
.nsi-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: white;
    font-size: 0.85rem;
}

.nsi-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(45, 106, 79, 0.06);
    vertical-align: top;
}

.nsi-table tbody tr:hover { background: rgba(45, 106, 79, 0.02); }
.nsi-table tbody tr:last-child td { border-bottom: none; }

/* HR */
hr.nsi-hr,
.nepsy-article .entry-content hr,
.single-post .entry-content hr {
    border: none;
    height: 1px;
    background: rgba(45, 106, 79, 0.1);
    margin: 48px 0;
}

/* Article header styling */
.nepsy-article .entry-header,
.single-post .entry-header {
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 40px 24px 0 !important;
}

.nepsy-article .entry-title,
.single-post .entry-title {
    font-family: var(--font-display, 'DM Serif Display', Georgia, serif) !important;
    font-size: clamp(1.8rem, 4vw, 2.6rem) !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: var(--navi-charcoal, #2D3436) !important;
}

/* Category labels */
.nepsy-article .entry-taxonomies a,
.single-post .entry-taxonomies a {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navi-family, #E07A5F) !important;
    background: rgba(224, 122, 95, 0.07);
    padding: 5px 12px;
    border-radius: 100px;
    text-decoration: none !important;
}

/* Author/date meta */
.nepsy-article .entry-meta,
.single-post .entry-meta {
    font-size: 0.85rem;
    color: var(--navi-muted, #6B7280) !important;
}

.nepsy-article .entry-meta a,
.single-post .entry-meta a {
    color: var(--navi-forest, #2D6A4F) !important;
    text-decoration: none !important;
    font-weight: 600;
}

/* Related posts styling */
.nepsy-article .entry-related,
.single-post .entry-related {
    background: white !important;
    padding: 60px 24px !important;
    margin-top: 40px;
}

/* Post navigation */
.nepsy-article .post-navigation,
.single-post .post-navigation {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px;
    border-top: 1px solid rgba(45, 106, 79, 0.08);
}

.nepsy-article .post-navigation a,
.single-post .post-navigation a {
    color: var(--navi-forest, #2D6A4F) !important;
    text-decoration: none !important;
    font-weight: 600;
}

/* Checkbox lists for tarkistuslistat */
.nepsy-article .entry-content li:has(input[type="checkbox"]),
.single-post .entry-content li:has(input[type="checkbox"]) {
    padding-left: 0;
}

.nepsy-article .entry-content li:has(input[type="checkbox"])::before,
.single-post .entry-content li:has(input[type="checkbox"])::before {
    display: none;
}
