:root {
    --color-brand: #d946ef;
    --color-cta: #f59e0b;
    --text-dark: #111;
    --text-body: #222;
    --text-muted: #666;
    --border: #ddd;
    --bg-light: #f4f4f4;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-brand);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--color-cta);
    color: #111;
    padding: 8px 16px;
    font-weight: 700;
    z-index: 10000;
    font-size: 16px;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

.cat-hero {
    background: var(--color-brand);
    padding: 80px 24px;
    text-align: center;
    color: #fff;
}

.cat-hero h1, .cat-hero h2, .cat-hero h3,
.cat-hero h4, .cat-hero h5, .cat-hero h6, .cat-hero p,
.cat-hero li, .cat-hero dt, .cat-hero dd, .cat-hero td,
.cat-hero th, .cat-hero span, .cat-hero label,
.cat-hero strong, .cat-hero em, .cat-hero blockquote {
    color: #fff;
}

.cat-hero a:not(.btn-cta) {
    color: #fff;
    text-decoration: underline;
}

.cat-hero__inner {
    max-width: 720px;
    margin: 0 auto;
}

.cat-hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.cat-hero .hero-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 32px;
}

.btn-cta {
    display: inline-block;
    background: var(--color-cta);
    color: #111;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-cta:hover {
    opacity: 0.88;
    text-decoration: none;
}

.btn-cta:focus {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.articles-section {
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-brand);
    margin-bottom: 8px;
    text-align: center;
}

.section-intro {
    text-align: center;
    font-size: 16px;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 24px;
}

.no-articles {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    padding: 40px 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.article-grid .card:nth-child(3n+1) {
    grid-column: span 2;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 16px;
}

.card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.card h3 a:hover {
    color: var(--color-brand);
    text-decoration: none;
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card time {
    font-size: 13px;
    color: var(--text-muted);
}

.article-grid .card:nth-child(3n+1) {
    border-top: 3px solid var(--color-brand);
}

.article-grid .card:nth-child(3n+1) img {
    height: 280px;
}

.article-grid .card:nth-child(3n+1) .card-body {
    padding: 24px;
}

.article-grid .card:nth-child(3n+1) h3 {
    font-size: 22px;
}

.article-grid .card:nth-child(3n+1) p {
    -webkit-line-clamp: 4;
}

.styles-section {
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.data-table th {
    background: #b020d0;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 16px;
    text-align: left;
}

.data-table th h1, .data-table th h2, .data-table th h3,
.data-table th h4, .data-table th h5, .data-table th h6,
.data-table th p, .data-table th span, .data-table th strong,
.data-table th label {
    color: #fff;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    color: var(--text-body);
}

.data-table tbody tr:nth-child(even) td {
    background: var(--bg-light);
}

.data-table tbody tr:hover td {
    background: #eee;
}

.dashboard-section {
    padding: 48px 24px;
    background: var(--bg-light);
}

.dashboard-section h1, .dashboard-section h2, .dashboard-section h3,
.dashboard-section h4, .dashboard-section h5, .dashboard-section h6,
.dashboard-section p, .dashboard-section li,
.dashboard-section td, .dashboard-section th,
.dashboard-section span, .dashboard-section label,
.dashboard-section strong, .dashboard-section em {
    color: var(--text-dark);
}

.dashboard-section .section-title {
    color: var(--color-brand);
}

.dashboard-section .kpi-number {
    color: var(--color-brand);
}

.dashboard-section .kpi-label {
    color: var(--text-muted);
}

.dashboard-section .section-intro {
    color: var(--text-muted);
}

.dashboard-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.kpi-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
    border-top: 3px solid var(--color-brand);
}

.kpi-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-brand);
    line-height: 1;
}

.kpi-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.guide-section {
    padding: 48px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .cat-hero {
        padding: 48px 16px;
    }

    .cat-hero h1 {
        font-size: 28px;
    }

    .cat-hero .hero-subtitle {
        font-size: 16px;
    }

    .articles-section,
    .styles-section,
    .guide-section {
        padding: 32px 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .article-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .article-grid .card:nth-child(3n+1) {
        grid-column: span 2;
    }

    .article-grid .card:nth-child(3n+1) img {
        height: 220px;
    }

    .article-grid .card:nth-child(3n+1) h3 {
        font-size: 18px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-section {
        padding: 32px 16px;
    }
}

@media (max-width: 480px) {
    .cat-hero {
        padding: 32px 12px;
    }

    .cat-hero h1 {
        font-size: 24px;
    }

    .cat-hero .hero-subtitle {
        font-size: 15px;
    }

    .btn-cta {
        display: block;
        text-align: center;
        padding: 14px 24px;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .article-grid .card:nth-child(3n+1) {
        grid-column: span 1;
    }

    .article-grid .card:nth-child(3n+1) img {
        height: 200px;
    }

    .article-grid .card:nth-child(3n+1) .card-body {
        padding: 16px;
    }

    .article-grid .card:nth-child(3n+1) h3 {
        font-size: 16px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .kpi-number {
        font-size: 28px;
    }
}