/* Cheetah Tool — Updates page */
.ct-updates {
    --ct-navy: #05122d;
    --ct-gold: #fed200;
    --ct-text: #1e293b;
    --ct-muted: #64748b;
    --ct-bg: #f8fafc;
    --ct-white: #ffffff;
    --ct-radius: 14px;
    --ct-shadow: 0 10px 40px rgba(5, 18, 45, 0.08);
    font-family: 'Cheetah Graphik', 'Montserrat', system-ui, sans-serif;
    color: var(--ct-text);
    background: var(--ct-bg);
    padding: 52px 0 72px;
    min-height: 60vh;
}

.ct-updates *,
.ct-updates *::before,
.ct-updates *::after {
    box-sizing: border-box;
}

body.page-updates .pusher > br {
    display: none !important;
}

.ct-updates .ct-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.ct-updates .ct-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 32px;
}

.ct-updates .ct-head h1 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--ct-navy);
    line-height: 1.25;
}

.ct-updates .ct-head p {
    margin: 0;
    color: var(--ct-muted);
    line-height: 1.75;
    font-size: 1.05rem;
}

.ct-updates .ct-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(254, 210, 0, 0.15);
    color: #92680a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ct-updates-modules {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.ct-updates-module {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    padding: 16px 20px;
    border-radius: var(--ct-radius);
    background: var(--ct-white);
    border: 2px solid #e2e8f0;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    scroll-margin-top: 80px;
}

.ct-updates-module:hover {
    transform: translateY(-3px);
    box-shadow: var(--ct-shadow);
    border-color: rgba(254, 210, 0, 0.5);
}

.ct-updates-module.is-active {
    background: linear-gradient(160deg, var(--ct-navy), #0a2a52);
    border-color: var(--ct-navy);
    box-shadow: var(--ct-shadow);
}

.ct-updates-module__name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ct-navy);
    line-height: 1.2;
    text-align: center;
}

.ct-updates-module.is-active .ct-updates-module__name {
    color: #fff;
}

.ct-updates-module__label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ct-muted);
    margin-top: 4px;
}

.ct-updates-module.is-active .ct-updates-module__label {
    color: rgba(254, 210, 0, 0.85);
}

.ct-updates-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

.ct-updates-sidebar {
    background: var(--ct-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow);
    overflow: hidden;
    position: sticky;
    top: 72px;
}

.ct-updates-sidebar__head {
    background: linear-gradient(160deg, var(--ct-navy), #0a2a52);
    color: #fff;
    padding: 18px 20px;
    font-weight: 800;
    font-size: 0.92rem;
    line-height: 1.4;
}

.ct-updates-sidebar__head span {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(254, 210, 0, 0.9);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ct-updates-sidebar .megaMenu {
    padding: 12px 0;
    max-height: 70vh;
    overflow-y: auto;
}

.ct-updates-sidebar .megaUber {
    list-style: none;
    margin: 0;
    padding: 0 12px;
    text-align: left;
}

.ct-updates-sidebar .megaUber > .item {
    margin-bottom: 4px;
}

.ct-updates-sidebar .megaUber .nested {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--ct-navy);
    cursor: pointer;
    transition: background 0.15s;
}

.ct-updates-sidebar .megaUber .nested:hover {
    background: var(--ct-bg);
}

.ct-updates-sidebar .megaUber .item.active > .nested {
    background: rgba(254, 210, 0, 0.15);
}

.ct-updates-sidebar .megaUber .menu {
    list-style: none;
    margin: 0;
    padding: 4px 0 8px 20px;
    display: none;
    border-left: 2px solid rgba(254, 210, 0, 0.35);
    margin-left: 18px;
}

.ct-updates-sidebar .megaUber .menu .item {
    margin-bottom: 6px;
}

.ct-updates-sidebar .megaUber .menu .item a {
    display: block;
    text-decoration: none;
}

.ct-updates-timeline-date {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ct-muted);
    background: var(--ct-bg);
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1.35;
}

.ct-updates-timeline-date:hover {
    background: rgba(254, 210, 0, 0.12);
    color: var(--ct-navy);
}

.ct-updates-sidebar .megaUber .menu .item.is-current .ct-updates-timeline-date {
    background: var(--ct-gold);
    color: var(--ct-navy);
    border-color: #e6bc00;
    font-weight: 800;
}

.ct-updates-sidebar .megaUber .icon {
    opacity: 0.6;
    transition: transform 0.2s;
}

.ct-updates-main {
    min-width: 0;
}

.ct-updates-article {
    background: var(--ct-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow);
    overflow: hidden;
}

.ct-updates-article__head {
    padding: 24px 28px;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ct-updates-article__head h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 800;
    color: var(--ct-navy);
    line-height: 1.35;
    flex: 1;
}

.ct-updates-rss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(254, 210, 0, 0.15);
    color: #92680a;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
}

.ct-updates-rss:hover {
    background: var(--ct-gold);
    color: var(--ct-navy);
    transform: scale(1.05);
}

.ct-updates-article__body {
    padding: 24px 28px 32px;
    line-height: 1.75;
    font-size: 0.98rem;
    text-align: left;
}

.ct-updates-article__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

.ct-updates-article__body h1,
.ct-updates-article__body h2,
.ct-updates-article__body h3,
.ct-updates-article__body h4 {
    color: var(--ct-navy);
    margin: 1.4em 0 0.6em;
    line-height: 1.35;
}

.ct-updates-article__body ul,
.ct-updates-article__body ol {
    padding-left: 1.4em;
    margin: 0.75em 0;
}

.ct-updates-article__body a {
    color: #92680a;
    font-weight: 600;
}

.ct-updates-article__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.92rem;
}

.ct-updates-article__body th,
.ct-updates-article__body td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
}

.ct-updates-article__body th {
    background: var(--ct-bg);
    font-weight: 700;
    color: var(--ct-navy);
}

.ct-updates-empty {
    background: var(--ct-white);
    border: 1px dashed #cbd5e1;
    border-radius: var(--ct-radius);
    padding: 48px 24px;
    text-align: center;
    color: var(--ct-muted);
    box-shadow: var(--ct-shadow);
}

.ct-updates-empty p {
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 900px) {
    .ct-updates-layout {
        grid-template-columns: 1fr;
    }

    .ct-updates-sidebar {
        position: static;
    }

    .ct-updates-sidebar .megaMenu {
        max-height: 320px;
    }
}

@media (max-width: 768px) {
    .ct-updates {
        padding: 48px 0 56px;
    }

    .ct-updates-modules {
        gap: 8px;
    }

    .ct-updates-module {
        min-width: calc(50% - 8px);
        padding: 14px 12px;
    }

    .ct-updates-article__head,
    .ct-updates-article__body {
        padding-left: 20px;
        padding-right: 20px;
    }
}
