/* Shared by the homepage and its editable section groups. */
body.home.page-id-96 .site-body-container,
body.home.page-id-96 .entry-body {
    width: 100%;
    max-width: none;
}

.ncit-home-section {
    --section-ink: var(--wp--preset--color--vk-color-primary, #002387);
    --section-text: #202a35;
    --section-line: #dce3ea;
    border: 0;
    box-shadow: none;
}

.ncit-home-section[id] {
    scroll-margin-top: 128px;
}

.ncit-cycle {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

.ncit-cycle-step {
    position: relative;
    padding: 16px 0;
}

.ncit-cycle-step:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    top: 48px;
    right: -24px;
    color: var(--section-ink);
    font-size: 24px;
}

.ncit-cycle-step > :last-child {
    margin: 16px 0 0;
    color: var(--section-text);
    line-height: 1.75;
}

.ncit-place-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 48px;
}

.ncit-evidence-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.ncit-place-layout > .wp-block-image {
    position: sticky;
    top: 120px;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.ncit-place-copy > :first-child {
    margin-top: 0 !important;
}

.ncit-regional-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.ncit-regional-fact {
    margin: 0;
}

.ncit-regional-fact p {
    margin: 4px 0 0;
    font-size: .875rem;
}

.ncit-regional-fact strong {
    color: var(--section-ink);
    font-size: 1.125rem;
    font-variant-numeric: tabular-nums;
}

body.home.page-id-96 .entry-body .ncit-report-note {
    margin: 12px 0 0;
    font-size: .875rem;
    line-height: 1.65;
}

.ncit-evidence-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

body.home.page-id-96 .entry-body .ncit-evidence-metrics > .ncit-home-result {
    margin: 0;
}

body.home.page-id-96 .entry-body .ncit-evidence-metrics .ncit-home-result > .is-layout-flex {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 12px;
}

body.home.page-id-96 .entry-body .ncit-evidence-metrics .ncit-home-result-value {
    font-size: 1.5rem !important;
    white-space: nowrap;
}

@media (max-width: 1000px) {
    .ncit-evidence-metrics {
        grid-template-columns: minmax(0, 1fr);
    }
}

body.home.page-id-96 .entry-body #why-tottori .ncit-home-media > .wp-block-columns > .wp-block-column,
body.home.page-id-96 .entry-body .ncit-place-resources > .wp-block-group,
body.home.page-id-96 .entry-body .ncit-evidence-metrics > .ncit-home-result {
    min-width: 0;
    padding: 20px !important;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    background: #f5f7fb;
    box-shadow: none;
}

body.home.page-id-96 .entry-body #why-tottori .ncit-home-media > .wp-block-columns > .wp-block-column > :last-child,
body.home.page-id-96 .entry-body .ncit-place-resources > .wp-block-group > :last-child {
    margin-bottom: 0;
}

.ncit-evidence-metrics .ncit-home-result > :last-child {
    margin-top: 8px;
    margin-bottom: 0;
}

body.home.page-id-96 .entry-body .ncit-place-resources {
    display: grid;
    gap: 8px;
}

body.home.page-id-96 .entry-body .ncit-place-resources > .wp-block-group {
    display: grid;
    grid-template-columns: 7em minmax(0, 1fr);
    align-items: baseline;
    gap: 16px;
    margin: 0 !important;
    padding: 14px 16px !important;
}

body.home.page-id-96 .entry-body .ncit-place-resources > .wp-block-group > h3 {
    margin: 0 !important;
    font-size: 1rem !important;
}

body.home.page-id-96 .entry-body .ncit-place-resources > .wp-block-group > p {
    margin: 0;
    font-size: .9375rem;
    line-height: 1.65;
}

@media (max-width: 480px) {
    body.home.page-id-96 .entry-body .ncit-place-resources > .wp-block-group {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }
}

.ncit-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 24px;
    align-items: stretch;
}

.ncit-plan-item {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 16px;
    min-width: 0;
}

.ncit-report .ncit-plan-item {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ncit-report .ncit-plan-item + .ncit-plan-item {
    padding-left: 24px;
    border-left: 1px solid var(--section-line);
}

.ncit-plan-heading {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 0;
}

body.home.page-id-96 .entry-body .ncit-plan-summary {
    margin: 32px 0 0;
    color: var(--section-ink);
    font-size: 1.125rem;
}

body.home.page-id-96 .entry-body .ncit-plan-summary + .ncit-plan-grid {
    margin-top: 12px !important;
}

body.home.page-id-96 .entry-body .ncit-plan-heading > .ncit-plan-number {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 4px;
    color: #fff;
    background: var(--section-ink);
    font-size: 1rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

body.home.page-id-96 .entry-body .ncit-plan-item h3 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 1.125rem;
    line-height: 1.5;
}

body.home.page-id-96 .entry-body .ncit-plan-item > p {
    margin: 0;
    line-height: 1.75;
}

.ncit-plan-item ul {
    margin: 0;
    padding-left: 1.2em;
    line-height: 1.7;
}

.ncit-plan-item li + li {
    margin-top: 6px;
}

body.home.page-id-96 .entry-body .ncit-home-section-heading > *,
.editor-styles-wrapper .ncit-home-section-heading > .wp-block-group__inner-container > * {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    letter-spacing: 0;
}

body.home.page-id-96 .entry-body .ncit-home-section-heading h2,
.editor-styles-wrapper .ncit-home-section-heading h2 {
    color: var(--section-ink);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.5;
}

.ncit-home-section-heading h2::before,
.ncit-home-section-heading h2::after {
    display: none;
}

body.home.page-id-96 .entry-body .ncit-home-section-heading p,
.editor-styles-wrapper .ncit-home-section-heading p {
    color: var(--section-text);
    font-size: 1rem;
    line-height: 1.85;
}

body.home.page-id-96 .entry-body .ncit-home-section-heading .ncit-home-eyebrow,
.editor-styles-wrapper .ncit-home-section-heading .ncit-home-eyebrow {
    color: var(--section-ink);
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.5;
}

.ncit-home-media.wp-block-columns {
    align-items: center;
    gap: 40px;
}

.ncit-home-media > .wp-block-column {
    min-width: 0;
}

.ncit-home-media figure.wp-block-image {
    margin: 0;
}

.ncit-home-media figure.wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.ncit-home-media ul {
    display: grid;
    gap: 20px;
    margin: 0;
    padding-left: 1.25em;
}

.ncit-home-media li {
    margin: 0;
    padding-left: 4px;
    color: var(--section-text);
    font-weight: 600;
}

.ncit-home-media li::marker {
    color: var(--section-ink);
}

body.home.page-id-96 .entry-body .ncit-home-media h5,
.editor-styles-wrapper .ncit-home-media h5 {
    margin-top: 24px;
    padding: 0;
    border: 0;
    color: var(--section-ink);
    font-size: 1.25rem;
    line-height: 1.5;
}

.ncit-home-media h5:first-child {
    margin-top: 0;
}

.ncit-home-media p:last-child {
    margin-bottom: 0;
}


body.home.page-id-96 .entry-body .ncit-home-result-label,
.editor-styles-wrapper .ncit-home-result-label {
    color: var(--section-text);
    font-weight: 700;
}

body.home.page-id-96 .entry-body .ncit-home-result-value,
.editor-styles-wrapper .ncit-home-result-value {
    color: var(--section-ink);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
}

.ncit-home-projects {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ncit-home-projects .wp-block-columns {
    align-items: start;
    gap: 32px;
    margin: 0;
    padding: 28px;
    border: 1px solid var(--section-line);
    border-radius: 8px;
    background: #fff;
}

body.home.page-id-96 .entry-body .ncit-home-projects h3,
.editor-styles-wrapper .ncit-home-projects h3 {
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--section-ink);
    font-size: 1.25rem;
    line-height: 1.6;
}

.ncit-home-section h3::after {
    display: none;
}

.ncit-home-project-body > :first-child {
    margin-top: 0;
}

.ncit-home-project-body > :last-child {
    margin-bottom: 0;
}

/* Gutenberg adds an inner container that is absent on the public page. */
.editor-styles-wrapper :is(.ncit-home-section-heading, .ncit-home-projects) > .wp-block-group__inner-container {
    display: contents;
}

@media (max-width: 781px) {
    .ncit-plan-item {
        grid-row: auto;
        grid-template-rows: auto;
    }

    .ncit-report .ncit-plan-item + .ncit-plan-item {
        padding: 20px 0 0;
        border-left: 0;
        border-top: 1px solid var(--section-line);
    }

    body.home.page-id-96 .entry-body > .ncit-home-section {
        padding-block: 32px !important;
    }

    .ncit-regional-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home.page-id-96 .entry-body #why-tottori .ncit-home-media > .wp-block-columns > .wp-block-column,
    body.home.page-id-96 .entry-body .ncit-place-resources > .wp-block-group,
    body.home.page-id-96 .entry-body .ncit-evidence-metrics > .ncit-home-result {
        padding: 16px !important;
    }

    .ncit-evidence-metrics {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    .ncit-cycle,
    .ncit-place-layout,
    .ncit-plan-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .ncit-cycle-step {
        padding: 0 0 8px;
    }

    .ncit-cycle-step:not(:last-child)::after {
        content: "\2193";
        top: auto;
        bottom: -24px;
        right: 0;
    }

    .ncit-place-layout > .wp-block-image {
        position: static;
    }

    body.home.page-id-96 .entry-body .ncit-home-section-heading h2,
    .editor-styles-wrapper .ncit-home-section-heading h2 {
        font-size: 1.625rem;
    }

    .ncit-home-media.wp-block-columns {
        gap: 24px;
    }

    .ncit-home-media ul {
        gap: 12px;
    }

    body.home.page-id-96 .entry-body .ncit-process-grid > .vk_borderBox:not(:last-child)::before {
        display: none;
    }

    .ncit-home-projects .wp-block-columns {
        gap: 12px;
        padding: 18px;
    }

    .ncit-home-project-body ul {
        padding-left: 1.25em;
    }

    .ncit-home-project-body li + li {
        margin-top: 8px;
    }
}
