:root {
    --cnx-gradient-primary: linear-gradient(135deg, #0F2B5C 0%, #1B4B8C 50%, #5B3A8C 100%);
    --cnx-gradient-accent: linear-gradient(135deg, #1B4B8C 0%, #6B5B95 100%);
    --cnx-color-primary: #1B4B8C;
    --cnx-color-secondary: #6B5B95;
    --cnx-color-accent: #4A9FFF;
    --cnx-color-dark: #1a1f2e;
    --cnx-color-dark-light: #2d3748;
    --cnx-color-border: #e2e8f0;
    --cnx-shadow-sm: 0 2px 8px rgba(15, 43, 92, 0.08);
    --cnx-shadow-md: 0 4px 16px rgba(15, 43, 92, 0.12);
    --cnx-shadow-lg: 0 8px 32px rgba(15, 43, 92, 0.16);
}

.cnx-sm-single,
.cnx-sm-archive,
.cnx-sm-taxonomy {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}

.cnx-sm-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 48px;
    padding: 40px;
    background: var(--cnx-gradient-primary);
    border-radius: 16px;
    color: white;
}

.cnx-sm-hero__media img,
.cnx-sm-card__thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--cnx-shadow-lg);
}

.cnx-sm-hero__media img {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cnx-sm-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.cnx-sm-terms a,
.cnx-sm-card__meta span,
.cnx-sm-fact {
    padding: 6px 12px;
    border: 1px solid rgba(27, 75, 140, 0.2);
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    background: rgba(27, 75, 140, 0.06);
    transition: all 0.2s ease;
}

.cnx-sm-terms a:hover,
.cnx-sm-card__meta span:hover {
    background: rgba(27, 75, 140, 0.12);
    border-color: rgba(27, 75, 140, 0.3);
}

.cnx-sm-hero .cnx-sm-terms a {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.cnx-sm-hero .cnx-sm-terms a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cnx-sm-title {
    margin: 0 0 16px;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
}

.cnx-sm-hero .cnx-sm-title {
    color: white;
}

.cnx-sm-excerpt {
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 15px;
}

.cnx-sm-hero .cnx-sm-excerpt {
    color: rgba(255, 255, 255, 0.9);
}

.cnx-sm-button {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid currentColor;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.cnx-sm-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--cnx-shadow-md);
}

.cnx-sm-button--primary {
    background: var(--cnx-gradient-accent);
    color: white;
    border-color: var(--cnx-color-primary);
}

.cnx-sm-hero .cnx-sm-button {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.cnx-sm-button--full {
    width: 100%;
    text-align: center;
}

.cnx-sm-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.cnx-sm-fact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cnx-sm-fact::before {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--cnx-color-accent);
    border-radius: 50%;
    align-self: flex-start;
    margin-top: 6px;
}

.cnx-sm-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 360px);
    gap: 32px;
    align-items: start;
}

.cnx-sm-box,
.cnx-sm-card,
.cnx-sm-accordion details {
    border: 1px solid var(--cnx-color-border);
    border-radius: 12px;
    padding: 24px;
    background: #fff;
    box-shadow: var(--cnx-shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cnx-sm-card:hover {
    border-color: var(--cnx-color-accent);
    box-shadow: var(--cnx-shadow-md);
}

.cnx-sm-sidebar {
    position: sticky;
    top: 24px;
}

.cnx-sm-section {
    margin-top: 48px;
}

.cnx-sm-benefits,
.cnx-sm-cards {
    display: grid;
    gap: 20px;
}

.cnx-sm-cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cnx-sm-benefits {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    list-style: none;
    padding: 0;
    margin: 0;
}

.cnx-sm-benefits li {
    border: 1px solid var(--cnx-color-border);
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    box-shadow: var(--cnx-shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cnx-sm-benefits li:hover {
    border-color: var(--cnx-color-accent);
    box-shadow: var(--cnx-shadow-md);
}

.cnx-sm-card a {
    text-decoration: none;
    color: inherit;
}

.cnx-sm-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.cnx-sm-accordion {
    display: grid;
    gap: 12px;
}

.cnx-sm-accordion summary {
    cursor: pointer;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cnx-sm-accordion summary:hover {
    background: rgba(27, 75, 140, 0.04);
}

.cnx-sm-accordion details > div {
    margin-top: 12px;
    padding-left: 12px;
}

.cnx-sm-archive-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--cnx-color-border);
}

@media (max-width: 960px) {
    .cnx-sm-hero,
    .cnx-sm-layout {
        grid-template-columns: 1fr;
    }

    .cnx-sm-sidebar {
        position: static;
    }
}
