/* Parent-site projects page: chronological programme overview. */
.ncit-page-projects .entry-body {
    --projects-ink: var(--ncit-ink, #002387);
    --projects-text: #2c4050;
    --projects-muted: #5a6d7b;
    --projects-water: var(--ncit-accent, #315d7a);
    --projects-line: rgba(31, 72, 91, .16);
    --projects-soft: #eef5f6;
}

.ncit-page-projects .page-header .container {
    margin-block: 0;
}

.ncit-page-projects .entry-body > .wp-block-vk-blocks-spacer,
.ncit-page-projects .entry-body > p:empty {
    display: none;
}

.ncit-page-projects .entry-body > [class*="ncit-project-"]:not(.ncit-project-label) {
    margin-top: 0;
}

.ncit-page-projects .entry-body [class*="ncit-project-"] > p {
    color: var(--projects-muted);
    line-height: 1.85;
}

.ncit-page-projects .entry-body .ncit-project-foundation > .wp-block-group {
    padding: 0 !important;
}

.ncit-page-projects .entry-body .ncit-project-foundation h2,
.ncit-page-projects .entry-body .ncit-project-implementation > h2,
.ncit-page-projects .entry-body .ncit-project-cycle > h2,
.ncit-page-projects .entry-body .ncit-project-governance > h2,
.ncit-page-projects .entry-body .ncit-project-kpi > h2,
.ncit-page-projects .entry-body .ncit-project-roadmap > h2,
.ncit-page-projects .entry-body .ncit-project-schedule h2 {
    margin: 0 0 16px;
    color: var(--projects-ink) !important;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.42;
}

.ncit-page-projects .entry-body .ncit-project-foundation .wp-block-columns,
.ncit-page-projects .entry-body .ncit-project-implementation > .wp-block-columns {
    display: grid;
    gap: 16px !important;
    margin-top: 28px;
}

.ncit-page-projects .entry-body .ncit-project-foundation .wp-block-columns:not(.vk_block-margin-sm--margin-top) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ncit-page-projects .entry-body .ncit-project-foundation .wp-block-columns.vk_block-margin-sm--margin-top,
.ncit-page-projects .entry-body .ncit-project-implementation > .wp-block-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ncit-page-projects .entry-body .ncit-project-foundation .wp-block-column,
.ncit-page-projects .entry-body .ncit-project-implementation > .wp-block-columns > .wp-block-column {
    width: auto;
    min-width: 0;
    margin: 0;
}

.ncit-page-projects .entry-body .ncit-project-foundation .wp-block-column {
    display: grid;
    grid-template-rows: auto minmax(2.9em, auto) 1fr;
    align-content: start;
    gap: 12px;
    padding: 24px;
}

.ncit-page-projects .entry-body .ncit-foundation-metrics > .wp-block-column {
    border-radius: 8px;
    background: #fff;
}

.ncit-page-projects .entry-body .ncit-foundation-pillars {
    gap: 0 !important;
    padding: 0;
    border-radius: 8px;
    background: #fff;
}

.ncit-page-projects .entry-body .ncit-foundation-pillars > .wp-block-column + .wp-block-column {
    border-left: 1px solid var(--projects-line);
}

.ncit-page-projects .entry-body .ncit-project-foundation h3::before,
.ncit-page-projects .entry-body .ncit-project-foundation h3::after {
    display: none;
}

.ncit-page-projects .entry-body .ncit-project-foundation h3 {
    margin: 0 0 12px;
    color: var(--projects-ink);
    font-size: 1rem;
    line-height: 1.45;
}

.ncit-page-projects .entry-body .ncit-project-foundation .wp-block-column p {
    margin: 0;
    color: var(--projects-muted);
    font-size: .9rem;
    line-height: 1.7;
}

.ncit-page-projects .entry-body .ncit-project-implementation > .wp-block-columns > .wp-block-column > .wp-block-group {
    overflow: hidden;
    height: 100%;
    padding: 0 20px 20px !important;
    border: 1px solid var(--projects-line) !important;
    border-radius: 12px;
    background: #fff !important;
}

body.ncit-page-projects:not(.home):not(.post-name-chiikiokoshi) .entry-body .ncit-project-implementation > .wp-block-columns > .wp-block-column > .wp-block-group > .wp-block-group {
    min-height: 0;
    margin: 0 -20px 16px !important;
    padding: 0 !important;
    background: var(--implementation-header, #f1f7f7) !important;
}

.ncit-page-projects .entry-body .ncit-project-implementation > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-group > .wp-block-group {
    --implementation-header: #eef4fa;
}

.ncit-page-projects .entry-body .ncit-project-implementation > .wp-block-columns > .wp-block-column:nth-child(3) > .wp-block-group > .wp-block-group {
    --implementation-header: #faf5eb;
}

.ncit-page-projects .entry-body .ncit-project-implementation > .wp-block-columns > .wp-block-column > .wp-block-group > .wp-block-group .wp-block-group {
    padding: 16px 20px !important;
}

body.ncit-page-projects .entry-body .ncit-project-implementation :is(h3, h5) {
    padding: 0;
    border: 0;
}

body.ncit-page-projects .entry-body .ncit-project-implementation :is(h3, h5)::before,
body.ncit-page-projects .entry-body .ncit-project-implementation :is(h3, h5)::after {
    display: none;
}

.ncit-page-projects .entry-body .ncit-project-implementation h5 {
    margin: 0 0 8px;
    color: var(--projects-water);
    font-size: .78rem;
    letter-spacing: 0;
}

.ncit-page-projects .entry-body .ncit-project-implementation h3 {
    margin: 0;
    color: var(--projects-ink);
    font-size: 1.25rem;
    line-height: 1.45;
}

.ncit-page-projects .entry-body .ncit-project-implementation p,
.ncit-page-projects .entry-body .ncit-project-implementation li {
    color: var(--projects-muted);
    font-size: .92rem;
    line-height: 1.75;
}

body.ncit-page-projects .entry-body .ncit-project-implementation .wp-block-group > ul {
    margin: 16px 0 0 !important;
    padding-left: 1.2em;
}

.ncit-page-projects .entry-body .ncit-project-cycle > .wp-block-group {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ncit-page-projects .entry-body .ncit-project-cycle > .wp-block-group > .wp-block-group {
    position: relative;
    min-height: 190px;
    padding: 24px !important;
    border: 1px solid var(--projects-line);
    border-radius: 12px;
    background: #fff !important;
}

.ncit-page-projects .entry-body .ncit-project-cycle > .wp-block-group > .wp-block-group:not(:last-child)::after {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: -12px;
    width: 10px;
    height: 10px;
    border-top: 3px solid var(--projects-ink);
    border-right: 3px solid var(--projects-ink);
    background: var(--ncit-surface, #f5f7fb);
    content: "";
    transform: translateY(-50%) rotate(45deg);
}

.ncit-page-projects .entry-body .ncit-project-cycle h3 {
    margin: 0 0 18px;
    color: var(--projects-water);
    font-size: 1rem;
    line-height: 1.45;
}

.ncit-page-projects .entry-body .ncit-project-cycle p {
    margin: 0;
    color: var(--projects-muted);
    font-size: .92rem;
    line-height: 1.75;
}

.ncit-page-projects .entry-body .ncit-project-schedule {
    display: flex;
    flex-direction: column;
    gap: 20px !important;
}

.ncit-page-projects .entry-body .ncit-quarter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 32px;
}

.ncit-page-projects .entry-body .ncit-quarter {
    padding-left: 16px;
    border-left: 3px solid var(--projects-ink);
}

.ncit-page-projects .entry-body .ncit-project-schedule blockquote {
    margin: 0;
    padding: 16px 20px;
    border: 0;
    border-radius: 0;
    background: #eaf0f8;
    color: var(--projects-text);
}

.ncit-page-projects .entry-body .ncit-project-schedule p {
    margin: 0;
    line-height: 1.7;
}

.ncit-page-projects .entry-body .ncit-project-governance > .wp-block-group {
    padding: 0 !important;
}

.ncit-page-projects .entry-body .ncit-project-governance > .wp-block-group > .wp-block-group {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ncit-page-projects .entry-body .ncit-project-governance .is-style-vk-group-shadow {
    height: 100%;
    padding: 22px !important;
    border: 1px solid var(--projects-line) !important;
    border-radius: 12px;
    background: #fff !important;
    box-shadow: none !important;
}

.ncit-page-projects .entry-body .ncit-project-governance .is-style-vk-group-shadow > p:first-child {
    margin: 0 0 18px;
    color: var(--projects-water);
    font-size: .8rem;
    font-weight: 800;
}

.ncit-page-projects .entry-body .ncit-project-governance h3 {
    margin: 0 0 12px;
    color: var(--projects-ink);
    font-size: 1.2rem;
}

.ncit-page-projects .entry-body .ncit-project-governance .is-style-vk-group-shadow > p:last-child {
    margin: 0;
    color: var(--projects-muted);
    font-size: .92rem;
    line-height: 1.7;
}

body.ncit-page-projects:not(.home):not(.post-name-chiikiokoshi) .entry-body .ncit-project-kpi .wp-block-table {
    overflow: visible;
    max-width: 100%;
    margin: 0 0 16px;
    border-radius: 0;
    background: #fff;
}

.ncit-page-projects .entry-body .ncit-project-kpi table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    margin: 0;
    border-collapse: collapse;
}

.ncit-page-projects .entry-body .ncit-project-kpi th {
    padding: 12px 16px;
    border: 0;
    border-bottom: 2px solid var(--projects-ink);
    background: #eaf0f8;
    color: var(--projects-ink);
    font-size: .9rem;
}

.ncit-page-projects .entry-body .ncit-project-kpi :is(th, td) {
    white-space: normal;
    overflow-wrap: anywhere;
}

.ncit-page-projects .entry-body .ncit-project-kpi td {
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--projects-line);
    vertical-align: top;
    color: var(--projects-muted);
    font-size: .9rem;
    line-height: 1.65;
}

.ncit-page-projects .entry-body .ncit-project-kpi tbody tr:nth-child(even) td {
    background: #f8fafb;
}

.ncit-page-projects .entry-body .ncit-project-kpi th:first-child {
    width: 18%;
}

.ncit-page-projects .entry-body .ncit-project-kpi th:nth-child(2) {
    width: 37%;
}

.ncit-page-projects .entry-body .ncit-roadmap-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.ncit-page-projects .entry-body .ncit-roadmap-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border-top: 3px solid var(--projects-ink);
    border-radius: 0 0 8px 8px;
    background: #fff;
}

.ncit-page-projects .entry-body .ncit-roadmap-step > h3 {
    margin: 0 !important;
}

.ncit-page-projects .entry-body .ncit-roadmap-step > p:first-child {
    line-height: 1.5;
}

.ncit-page-projects .entry-body :is(.ncit-roadmap-step, .ncit-quarter) h3::before,
.ncit-page-projects .entry-body :is(.ncit-roadmap-step, .ncit-quarter) h3::after {
    display: none;
}

.ncit-page-projects .entry-body .ncit-roadmap-step > p:last-child {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--projects-muted);
    font-size: .9rem;
    line-height: 1.65;
}

.ncit-page-projects .entry-body .ncit-project-roadmap > .has-text-align-right {
    margin-top: 24px;
    color: var(--projects-muted);
    font-size: .88rem;
    line-height: 1.7;
}

@media (max-width: 1023px) {
    .ncit-page-projects .entry-body .ncit-project-foundation .wp-block-columns:not(.vk_block-margin-sm--margin-top),
    .ncit-page-projects .entry-body .ncit-project-cycle > .wp-block-group,
    .ncit-page-projects .entry-body .ncit-project-governance > .wp-block-group > .wp-block-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ncit-page-projects .entry-body .ncit-project-cycle > .wp-block-group > .wp-block-group:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 767px) {

    body.ncit-page-projects .entry-body .ncit-project-kpi :is(th, td) {
        padding: 10px 6px;
        font-size: 14px;
        line-height: 1.6;
        vertical-align: top;
    }

    .ncit-page-projects .entry-body .ncit-project-kpi th:first-child {
        width: 24%;
    }

    .ncit-page-projects .entry-body .ncit-project-kpi th:nth-child(2) {
        width: 36%;
    }

    .ncit-page-projects .entry-body .ncit-project-foundation h2,
    .ncit-page-projects .entry-body .ncit-project-implementation > h2,
    .ncit-page-projects .entry-body .ncit-project-cycle > h2,
    .ncit-page-projects .entry-body .ncit-project-governance > h2,
    .ncit-page-projects .entry-body .ncit-project-kpi > h2,
    .ncit-page-projects .entry-body .ncit-project-roadmap > h2,
    .ncit-page-projects .entry-body .ncit-project-schedule h2 {
        font-size: 1.65rem;
    }

    .ncit-page-projects .entry-body .ncit-project-foundation .wp-block-column {
        grid-template-rows: auto auto 1fr;
    }

    .ncit-page-projects .entry-body .ncit-foundation-pillars > .wp-block-column + .wp-block-column {
        border-left: 0;
        border-top: 1px solid var(--projects-line);
    }

    .ncit-page-projects .entry-body :is(.ncit-quarter-grid, .ncit-roadmap-grid) {
        grid-template-columns: 1fr;
    }

    .ncit-page-projects .entry-body .ncit-project-foundation .wp-block-columns,
.ncit-page-projects .entry-body .ncit-project-foundation .wp-block-columns:not(.vk_block-margin-sm--margin-top),
.ncit-page-projects .entry-body .ncit-project-foundation .wp-block-columns.vk_block-margin-sm--margin-top,
.ncit-page-projects .entry-body .ncit-project-implementation > .wp-block-columns,
.ncit-page-projects .entry-body .ncit-project-cycle > .wp-block-group,
.ncit-page-projects .entry-body .ncit-project-governance > .wp-block-group > .wp-block-group {
        grid-template-columns: 1fr;
    }

    .ncit-page-projects .entry-body .ncit-project-cycle > .wp-block-group > .wp-block-group {
        min-height: 0;
    }

    .ncit-page-projects .entry-body .ncit-project-cycle > .wp-block-group > .wp-block-group:not(:last-child)::after {
        top: auto;
        right: 50%;
        bottom: -11px;
        transform: translateX(50%) rotate(135deg);
    }

    .ncit-page-projects .entry-body .ncit-project-cycle > .wp-block-group > .wp-block-group:nth-child(2)::after {
        display: block;
    }

    .ncit-page-projects .entry-body .ncit-project-kpi > h2,
    .ncit-page-projects .entry-body .ncit-project-kpi > p {
        padding-right: 24px;
    }

    .ncit-page-projects .entry-body .ncit-project-kpi .wp-block-table {
        border-radius: 0;
    }

    .ncit-page-projects .entry-body .ncit-project-roadmap > .has-text-align-right {
        text-align: left;
    }
}
