﻿/* ===== Базовые стили верстки для Timeliness и подобных контент-страниц ===== */

/* Фон, общая раскладка */
body.content-layout-body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif; /* или sans-serif */
    background-color: #FFFAF0; /* Кремовый фон */
}

/* --- ШАПКА (header) --- */
header {
    background-color: rgb(0, 87, 184) !important; /* Королевский синий */
    height: 62px !important; /* Жесткая высота 15px */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

/* Контейнер навигации внутри шапки */
/* Контейнер навигации */
.content-nav {
    display: flex;
    justify-content: space-between; /* кнопка слева, заголовок, кнопка справа */
    align-items: center;
    width: 1200px; /* фиксированная ширина вместо max-width */
    margin: 0 auto; /* центрируем по горизонтали */
    padding: 0; /* убираем отступы */
    height: 62px; /* фиксированная высота */
}


    /* Кнопки Home и Go Up */
    .content-nav form button {
        background-color: rgb(255, 193, 7); /* Жёлтый фон */
        color: rgb(0, 87, 184); /* Синий текст */
        border: 2px solid rgb(255, 193, 7); /* Обводка */
        border-radius: 4px; /* Скруглённые углы */
        font-weight: bold;
        font-size: 14px;
        line-height: 18px; /* Высота строки */
        padding: 5px 15px; /* Внутренние отступы */
        cursor: pointer;
        transition: background-color 0.3s, color 0.3s;
    }

        /* Кнопки при наведении */
        .content-nav form button:hover {
            background-color: rgb(255, 215, 25); /* Яркий жёлтый */
            color: white; /* Белый текст */
        }

.header-title {
    color: rgb(255, 215, 0); /* Ярко-жёлтый цвет текста */
    font-weight: bold; /* Жирный шрифт */
    font-family: 'Roboto', sans-serif; /* Используем Roboto или fallback шрифт */
    font-size: 32px; /* Размер шрифта */
    text-align: center; /* Выравнивание по центру */
    flex-grow: 1; /* Чтобы занимал оставшееся место */
}




/* Каждый пункт меню */
.nav-menu li {
    /*display: inline;*/
    margin: 5px 10px;
}

/*------------------------------------------------------------------------------------------------------------*/
/* Меню в шапке */
.nav-menu {
    display: flex;
    flex-grow: 1; /* Меню растягивается, занимая всё доступное пространство */
    justify-content: center; /* Центруем элементы меню */
    list-style: none;
    gap: 15px; /* Отступы между пунктами */
    padding: 0;
    margin: 0;
}

    .nav-menu a {
        text-decoration: none;
        background-color: rgb(0, 87, 184); /* Королевский синий */
        color: rgb(255, 215, 25); /* Ярко-жёлтый текст */
        font-family: Arial, sans-serif;
        border: 2px solid rgb(0, 87, 184);
        border-radius: 4px;
        font-weight: bold;
        font-size: 14px;
        padding: 17px 15px;
        line-height: 18px; /* Высота строки */
        transition: background-color 0.3s, color 0.3s;
        white-space: nowrap; /* Запрещаем перенос текста */
    }

        .nav-menu a:hover {
            background-color: rgb(0, 60, 128); /* Тёмно-синий фон */
            color: white; /* Белый текст */
            text-decoration: underline;
        }

/*==============================================================================================================*/

.content-nav button {
    background-color: rgb(255, 193, 7); /* Жёлтый фон */
    color: rgb(0, 87, 184); /* Синий текст */
    border: 2px solid rgb(255, 193, 7); /* Обводка */
    border-radius: 4px; /* Скруглённые углы */
    font-weight: bold;
    font-size: 14px;
    line-height: 18px; /* Высота строки */
    padding: 5px 15px; /* Внутренние отступы */
    white-space: nowrap; /* Запрещаем перенос текста */
    text-align: center; /* Центрирование текста */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

/* --- ОСНОВНАЯ ЧАСТЬ (main) --- */
.content-layout-main {
    flex: 1;
    padding: 20px;
}

/* Игровое/контентное поле */
.game-field {
    width: 1200px;
    margin: 0 auto 5px auto;
    background-color: #f9f9f9;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Заголовок внутри main */
.content-layout-title {
    font-size: 1.6rem;
    margin: 0 0 10px 0;
}

/* Пример текстового блока */
.content-text {
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Кнопка "Вверх" */
.go-up-container {
    margin-top: 20px;
}

.content-nav button:hover {
    background-color: rgb(255, 215, 25); /* Ярко-жёлтый при наведении */
    color: white; /* Белый текст */
}

.go-up-btn {
    text-decoration: none;
    background-color: rgb(255, 193, 7); /* Жёлтый */
    color: rgb(0, 87, 184); /* Королевский синий */
    border: 2px solid rgb(255, 193, 7);
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px; /* Размер шрифта */
    padding: 5px 15px; /* Отступы */
    line-height: 18px; /* Высота строки */
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    display: inline-block;
    text-align: center;
}

    .go-up-btn:hover {
        background-color: rgb(255, 215, 25); /* Яркий жёлтый */
        color: white; /* Белый текст */
        text-decoration: none; /* Убираем подчёркивание */
    }


/* --- ПОДВАЛ (footer) --- */
footer {
    background-color: rgb(0, 87, 184) !important; /* Королевский синий */
    height: 38px !important; /* Жесткая высота 9px */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

    /* Текст в футере */
    footer p {
        color: rgb(255, 215, 25); /* Жёлтый */
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
        /*font-size: 12px;*/
    }

/*-----------------------------------------------------------------------------------------------------------------*/

/* Стили для ссылок в контенте */
.content-link {
    color: rgb(0, 87, 184) !important; /* Королевский синий текст */
    text-decoration: none; /* Убираем подчёркивание */
    font-weight: bold; /* Жирный текст */
    transition: color 0.3s ease-in-out; /* Плавное изменение цвета */
}

    /* Эффект при наведении */
    .content-link:hover {
        color: rgb(0, 60, 128) !important; /* Темно-синий */
        text-decoration: underline; /* Добавляем подчёркивание при наведении */
    }

/*====================================================================================================================*/

/* 1. Класс для центрирования изображения по горизонтали. */
.img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* 2. Класс для размещения изображения сбоку (слева) */
.img-float-left {
    float: left;
    margin: 0 15px 15px 0;
}

/* 3. Классы для ограничения максимальной ширины */
.img-constrained {
    max-width: 70%;
    max-height: 70%;
    width: auto;
    height: auto;
}

.img-constrained-40 {
    max-width: 40%;
    max-height: 40%;
    width: auto;
    height: auto;
}

.img-constrained-45 {
    max-width: 45%;
    max-height: 45%;
    width: auto;
    height: auto;
}

.img-tab-constrained {
    max-width: 50%;
    max-height: 50%;
    width: auto;
    height: auto;
}

.img-constrained-60 {
    max-width: 60%;
    max-height: 60%;
    width: auto;
    height: auto;
}

.img-constrained-70 {
    max-width: 70%;
    max-height: 70%;
    width: auto;
    height: auto;
}

.img-constrained-80 {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
}

.img-constrained-90 {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
}

.img-constrained-95 {
    max-width: 95%;
    max-height: 95%;
    width: auto;
    height: auto;
}

.img-constrained-20 {
    max-width: 20%;
    max-height: 20%;
    width: auto;
    height: auto;
}

.img-constrained-30 {
    max-width: 30%;
    max-height: 30%;
    width: auto;
    height: auto;
}

.img-constrained-100 {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.img-constrained-110 {
    max-width: 110%;
    max-height: 110%;
    width: auto;
    height: auto;
}

.img-constrained-130 {
    width: 250px;
    height: auto;
}

.img-constrained-120 {
    max-width: 120%;
    max-height: 120%;
    width: auto;
    height: auto;
}

.text-center {
    text-align: center;
}

/* === Добавлено, чтобы формулы в .text-left реально выравнивались по левому краю === */
.text-left .MathJax_Display {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}


.video-container {
    text-align: center;
    margin: 20px 0;
}

/* Убираем центрирование только в этом разделе */
.dgps-terms h2,
.dgps-terms h3,
.dgps-terms p {
    text-align: left !important;
}

.simulation-container-noDgps {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: url('/images/CTNS/field.png') no-repeat center center/cover;
    width: 100%;
    height: 95vh;
    position: relative;
}

    .simulation-container-noDgps .drone-noDgps,
    .simulation-container-noDgps .pizza-noDgps,
    .simulation-container-noDgps .dog-noDgps {
        position: absolute;
        transition: all 1s ease-in-out;
    }

    .simulation-container-noDgps .drone-noDgps {
        width: 100px;
        top: 5%;
        left: 75%;
    }

    .simulation-container-noDgps .pizza-noDgps {
        width: 60px;
        top: 75%;
        left: 75%;
        display: none;
    }

    .simulation-container-noDgps .dog-noDgps {
        width: 120px;
        bottom: 5%;
        left: 85%;
    }

    .simulation-container-noDgps .controls-noDgps {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }

        .simulation-container-noDgps .controls-noDgps button {
            padding: 10px 20px;
            font-size: 16px;
            margin: 5px;
            cursor: pointer;
        }

    .simulation-container-noDgps .mode-label-noDgps {
        position: absolute;
        top: 10px;
        left: 10px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 5px 10px;
        font-size: 14px;
        font-weight: bold;
        border-radius: 5px;
    }

.simulation-container-noDgps-background {
    background: url('/images/CTNS/field.png') no-repeat center top;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/*-------------------------------------------------------------------*/

/* ===== Контейнер режима DGPS ===== */
.simulation-container-dgps {
    position: relative;
    width: 100%;
    height: 90vh;
    background: url('/images/CTNS/field.png') no-repeat center center/cover;
    overflow: hidden;
}

/* ===== Дрон с пиццей (DGPS) ===== */
.drone-dgps {
    position: absolute;
    width: 100px;
    top: 5%;
    left: 50%;
    transition: all 1s ease-in-out;
}

    /* ===== Дрон без пиццы (DGPS) ===== */
    .drone-dgps.empty {
        display: none;
    }

/* ===== Пицца (кладётся на стол в режиме DGPS) ===== */
.pizza-dgps {
    position: absolute;
    width: 80px;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    transition: all 1s ease-in-out;
}

/* ===== Кнопки управления (DGPS) ===== */
.controls-dgps {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

    .controls-dgps button {
        padding: 10px 20px;
        font-size: 16px;
        margin: 5px;
        cursor: pointer;
    }

/*    **********************************  12 may 2025 — Scale 1.15  ********************************** */
/* Базовый размер основного текста */
body.content-layout-body {
    font-size: 18px;
}

/* Заголовки */
h1 {
    font-size: 31.4px;
}

h2 {
    font-size: 27.3px;
}

h3 {
    font-size: 23.8px;
}

h4 {
    font-size: 20.7px;
}

/ <!-- ========== СТИЛИ ========== -->
/* — Общий блок псевдокода — */
.pseudocode-block {
    width: 80%;
    margin: 24px 0 12px 16px;
    border: 2px solid #000;
    padding: 12px 24px;
    box-sizing: border-box;
    background: inherit;
}

/* — Внутри блока используем <pre>  — */
.pseudocode-block pre {
    font-family: "Courier New", monospace;
    font-size: 18px;
    line-height: 1.6;
    white-space: pre;
    margin: 0;
}

/* — Подпись под рисунком/блоком — */
.pseudocode-caption {
    margin: 4px 0 0 16px;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
}

/* — Каскадные уровни отступов — */
.indent-1 {
    padding-left: 2em;
}

.indent-2 {
    padding-left: 4em;
}

.indent-3 {
    padding-left: 6em;
}

.indent-4 {
    padding-left: 8em;
}

.indent-5 {
    padding-left: 10em;
}

.indent-6 {
    padding-left: 12em;
}

.indent-7 {
    padding-left: 14em;
}

.indent-8 {
    padding-left: 16em;
}

/* ▒ Телевизор ▒ */
.tv {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 40px auto;
    border: 6px solid #0057B8;
    background: #0057B8;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.tv-pic-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.tv-pic {
    display: none;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    object-fit: contain;
}

    .tv-pic.active {
        display: block;
    }

.tv-btn-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.tv-btn {
    flex: 0 0 48px;
    height: 32px;
    margin: 0;
    background: #FFD700;
    color: #0057B8;
    border: none;
    border-radius: 4px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

    .tv-btn:hover {
        background: #e6b800;
    }

/*=============================================================================================*/
/*=============================================================================================*/
/* === Cases Section === */
/*=============================================================================================*/

/* Эпиграф */
.cases-epigraph {
    border-left: 5px solid rgb(255, 215, 0);
    background-color: rgb(0, 87, 184);
    color: rgb(255, 215, 0);
    padding: 1.2rem 1.8rem;
    margin: 0 0 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    font-style: italic;
    font-weight: bold;
}

/* Заголовок раздела */
.cases-main-title {
    font-size: 1.8rem;
    color: rgb(0, 87, 184);
    font-weight: bold;
    border-bottom: 3px solid rgb(255, 215, 0);
    padding-bottom: 0.4rem;
    margin-bottom: 1.2rem;
}

/* Введение */
.cases-intro {
    margin-bottom: 2.5rem;
}

    .cases-intro p {
        line-height: 1.75;
        margin-bottom: 1rem;
    }

/* Сетка карточек */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
    margin-bottom: 3rem;
}

/* Карточка кейса */
.case-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
    text-decoration: none;
    color: #1c1c1c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    border-top: 4px solid rgb(0, 87, 184);
}

    .case-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0,48,135,0.15);
        text-decoration: none;
        color: #1c1c1c;
    }

.case-card--open {
    border-top-color: #1a7a1a;
}

.case-card--closed {
    border-top-color: #c0392b;
}

.case-card--prototype {
    border-top-color: #d4880e;
}

.case-card--shared {
    border-top-color: #1565c0;
}

.case-card--matrix {
    border-top-color: #6a1b9a;
}

.case-card__number {
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 0.25rem;
}

.case-card__verdict {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 3px;
    margin-bottom: 0.6rem;
    color: #fff;
}

.case-card__verdict--open {
    background: #1a7a1a;
}

.case-card__verdict--closed {
    background: #c0392b;
}

.case-card__verdict--prototype {
    background: #d4880e;
}

.case-card__verdict--shared {
    background: #1565c0;
}

.case-card__verdict--matrix {
    background: #6a1b9a;
}

.case-card__title {
    font-size: 1.15rem;
    font-weight: bold;
    color: rgb(0, 87, 184);
    margin: 0 0 0.25rem;
}

.case-card__project {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-bottom: 0.7rem;
}

.case-card__summary {
    font-size: 0.9rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0.9rem;
}

.case-card__meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: auto;
}

    .case-card__meta span {
        font-size: 0.72rem;
        font-weight: bold;
        background: #f5f0e8;
        color: rgb(0, 87, 184);
        padding: 0.18rem 0.5rem;
        border-radius: 3px;
        white-space: nowrap;
    }

/* Сводная таблица */
.cases-summary {
    margin-bottom: 2.5rem;
}

.cases-summary__title {
    font-size: 1.4rem;
    font-weight: bold;
    color: rgb(0, 87, 184);
    border-bottom: 3px solid rgb(255, 215, 0);
    padding-bottom: 0.3rem;
    margin-bottom: 1rem;
}

.cases-table-wrapper {
    overflow-x: auto;
}

.cases-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

    .cases-table th {
        background-color: rgb(0, 87, 184);
        color: rgb(255, 215, 0);
        padding: 0.6rem 0.8rem;
        text-align: left;
        font-weight: bold;
        white-space: nowrap;
    }

    .cases-table td {
        padding: 0.5rem 0.8rem;
        border-bottom: 1px solid #e0e0e0;
        vertical-align: middle;
    }

    .cases-table tr:nth-child(even) td {
        background-color: #f5f0e8;
    }

    .cases-table tr:hover td {
        background-color: #eef4ff;
    }

/* Вердикт в таблице */
.verdict {
    font-weight: bold;
    font-size: 0.78rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    color: #fff;
    white-space: nowrap;
}

.verdict--open {
    background: #1a7a1a;
}

.verdict--closed {
    background: #c0392b;
}

.verdict--prototype {
    background: #d4880e;
}

.verdict--shared {
    background: #1565c0;
}

.verdict--matrix {
    background: #6a1b9a;
}

/* Patent note */
.cases-patent-note {
    text-align: center;
    font-size: 0.78rem;
    color: #888;
    margin-top: 2rem;
    font-style: italic;
    letter-spacing: 0.05em;
}

/* === Cases Glossary === */
.cases-glossary {
    margin-bottom: 2.5rem;
}

.cases-glossary__lead {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
    font-style: italic;
}

.cases-glossary__note {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #555;
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    background: #f5f0e8;
    border-left: 4px solid rgb(255, 215, 0);
}

/* === Individual Case Page === */

.case-nav-back {
    margin-bottom: 1.2rem;
}

    .case-nav-back a {
        color: rgb(0, 87, 184);
        font-weight: bold;
        text-decoration: none;
        font-size: 0.9rem;
    }

        .case-nav-back a:hover {
            text-decoration: underline;
        }

/* Case header */
.case-header {
    border-left: 6px solid rgb(0, 87, 184);
    padding: 1rem 1.4rem;
    margin-bottom: 2rem;
    background: #f9f9f9;
}

.case-header--open {
    border-left-color: #1a7a1a;
}

.case-header--closed {
    border-left-color: #c0392b;
}

.case-header--prototype {
    border-left-color: #d4880e;
}

.case-header--shared {
    border-left-color: #1565c0;
}

.case-header--matrix {
    border-left-color: #6a1b9a;
}

.case-header__meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.4rem;
}

.case-header__number {
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #777;
}

.case-header__title {
    font-size: 1.9rem;
    font-weight: bold;
    color: rgb(0, 87, 184);
    margin: 0 0 0.2rem;
}

.case-header__project {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Case sections */
.case-section {
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8e8e8;
}

    .case-section:last-child {
        border-bottom: none;
    }

.case-section__title {
    font-size: 1.15rem;
    font-weight: bold;
    color: rgb(0, 87, 184);
    margin-bottom: 0.8rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid rgb(255, 215, 0);
    display: inline-block;
}

/* Choice box */
.case-choice-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgb(0, 87, 184);
    color: rgb(255, 215, 0);
    padding: 0.7rem 1.2rem;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

    .case-choice-box code {
        font-size: 1.05rem;
        font-weight: bold;
        color: rgb(255, 215, 0);
        background: transparent;
        letter-spacing: 0.05em;
    }

.case-choice-label {
    font-size: 0.82rem;
    opacity: 0.85;
}

/* Target box */
.case-target-box {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: #f5f0e8;
    border: 2px solid rgb(255, 215, 0);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.case-target-label {
    font-weight: bold;
    color: rgb(0, 87, 184);
    font-size: 1rem;
}

.case-target-horizon {
    font-size: 0.8rem;
    color: #777;
}

/* Params grid */
.case-params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.case-param {
    background: #f5f0e8;
    border-radius: 4px;
    padding: 0.5rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.case-param__label {
    font-size: 0.72rem;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: bold;
}

.case-param__value {
    font-size: 0.88rem;
    color: rgb(0, 87, 184);
    font-weight: bold;
}

/* Report */
.case-report__note {
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 0.8rem;
}

.case-report-table tfoot tr td {
    background: rgb(0, 87, 184);
    color: rgb(255, 215, 0);
    font-weight: bold;
}

/* Key insight */
.case-key-insight {
    margin-top: 1rem;
    padding: 0.9rem 1.2rem;
    background: #fff8e1;
    border-left: 4px solid rgb(255, 215, 0);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* VC section */
.case-section--vc {
    background: #f0f4ff;
    padding: 1.2rem 1.4rem;
    border-radius: 6px;
    border-bottom: none;
}

.case-vc-box {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.case-vc-verdict {
    margin-bottom: 0.4rem;
}

.case-vc-delivery {
    font-size: 0.85rem;
    color: #555;
    margin-top: 0.4rem;
}

/* Key insight — closed variant */
.case-key-insight--closed {
    background: #fff0f0;
    border-left-color: #c0392b;
}

/* Case3 — row states and status badges */
.case-row--frozen td {
    opacity: 0.55;
    font-style: italic;
}

.case-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.case-status--funded {
    background: #1a7a1a;
    color: #fff;
}

.case-status--frozen {
    background: #bbb;
    color: #fff;
}

/* Customer scope badge */
.case-status--customer {
    background: #e67e22;
    color: #fff;
}

/* Skipped stage badge */
.case-status--skipped {
    background: #999;
    color: #fff;
}

/* Case6 — matrix choices grid */
.case-matrix-choices {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.case-matrix-choice {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #555;
}

    .case-matrix-choice .case-choice-box {
        margin-bottom: 0;
        padding: 0.5rem 0.8rem;
    }

.case-matrix-col--c1,
.case-matrix-col--c2,
.case-matrix-col--c3,
.case-matrix-col--c4 {
    font-size: 0.82rem;
    text-align: center;
}

.cases-table small {
    font-weight: normal;
    opacity: 0.85;
}

/* Fix verdict badges in even rows of summary table */
.cases-table td.verdict--open {
    background: #1a7a1a !important;
    color: #fff !important;
}

.cases-table td.verdict--closed {
    background: #c0392b !important;
    color: #fff !important;
}

.cases-table td.verdict--prototype {
    background: #d4880e !important;
    color: #fff !important;
}

.cases-table td.verdict--shared {
    background: #1565c0 !important;
    color: #fff !important;
}

.cases-table td.verdict--matrix {
    background: #6a1b9a !important;
    color: #fff !important;
}

/* Case header note */
.case-header__note {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    font-style: italic;
    margin: 0.2rem 0 0;
}
