/* Innovation Districts (TECHSIGHT network + per-district pages). Builds on landing.css. */

/* ---------- Hero ---------- */

.cs-id-hero {
    padding-top: 80px;
}

.cs-id-hero-lead {
    font-family: var(--cs-font-heading);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--cs-color-primary);
    margin: -12px 0 20px;
}

.cs-id-h1-district {
    font-size: 54px !important;
}

.cs-id-back {
    display: flex;
    width: fit-content;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 22px;
}

.cs-id-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
    font-size: 14px;
    color: var(--cs-color-muted);
}

.cs-id-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cs-id-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--cs-color-accent-yellow);
}

.cs-id-dot-live {
    background: var(--cs-color-accent-orange);
    border-color: var(--cs-color-accent-orange);
}

/* ---------- Map ---------- */

.cs-id-map {
    position: relative;
    margin: 0;
    border-radius: 20px;
    border: 1px solid var(--cs-color-border);
    background: #ffffff; /* the map artwork has a baked-in white background */
    padding: 20px;
    box-shadow: 0 30px 60px -20px rgba(var(--cs-color-primary-rgb), 0.25);
}

.cs-id-map img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.9;
}

/* Pins are positioned in percentages of the canvas, which is exactly the image box. */
.cs-id-map-canvas {
    position: relative;
}

.cs-id-pin {
    position: absolute;
    transform: translate(-7px, -50%);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: var(--cs-font-heading);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.cs-id-pin > i {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--cs-color-accent-yellow);
    flex-shrink: 0;
}

.cs-id-pin > span {
    background: rgba(3, 18, 65, 0.82);
    color: #ffffff;
    padding: 5px 8px;
    border-radius: 6px;
}

.cs-id-pin-live {
    flex-direction: column;
    transform: translate(-50%, -10px);
    z-index: 1;
}

.cs-id-pin-live > i {
    width: 20px;
    height: 20px;
    background: var(--cs-color-accent-orange);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 0 rgba(244, 151, 83, 0.7);
    animation: cs-id-pulse 2s infinite;
}

body.cs-landing a.cs-id-pin-live > span,
body.cs-landing a.cs-id-pin-live:hover > span {
    background: var(--cs-color-accent-orange);
    color: #031241;
}

@keyframes cs-id-pulse {
    0% { box-shadow: 0 0 0 0 rgba(244, 151, 83, 0.7); }
    70% { box-shadow: 0 0 0 14px rgba(244, 151, 83, 0); }
    100% { box-shadow: 0 0 0 0 rgba(244, 151, 83, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .cs-id-pin-live > i {
        animation: none;
    }
}

/* ---------- Shared band / split layout ---------- */

.cs-id-band {
    padding: 100px 64px;
    background: var(--cs-color-surface);
}

.cs-id-band-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.cs-id-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.cs-id-split-center {
    align-items: center;
}

.cs-id-prose p,
.cs-id-intro {
    font-size: 17px;
    line-height: 1.65;
    color: var(--cs-color-body);
    margin: 0 0 18px;
}

.cs-id-split .cs-l-h2 + .cs-id-prose {
    margin-top: 22px;
}

.cs-id-intro {
    margin-top: 20px;
}

.cs-id-h2-gap {
    margin-bottom: 48px;
}

/* ---------- Network grid ---------- */

.cs-id-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cs-id-district {
    display: flex;
    flex-direction: column;
    background: var(--cs-color-page);
    border: 1px solid var(--cs-color-border);
    border-radius: 16px;
    padding: 28px;
    color: var(--cs-color-body);
}

body.cs-landing a.cs-id-district {
    color: var(--cs-color-body);
}

.cs-id-district-live {
    border: 2px solid var(--cs-color-primary);
    box-shadow: 0 20px 40px -24px rgba(var(--cs-color-primary-rgb), 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cs-id-district-live:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 48px -22px rgba(var(--cs-color-primary-rgb), 0.55);
}

.cs-id-district-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.cs-id-code {
    font-family: var(--cs-font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--cs-color-primary);
    background: var(--cs-color-surface);
    border-radius: 8px;
    padding: 6px 10px;
}

.cs-id-status {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cs-color-muted);
    border: 1px solid var(--cs-color-border);
    border-radius: 100px;
    padding: 4px 10px;
}

.cs-id-status-live {
    color: #031241;
    background: var(--cs-color-accent-orange);
    border-color: var(--cs-color-accent-orange);
}

.cs-id-district h3 {
    font-family: var(--cs-font-heading);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--cs-color-heading);
    margin: 0 0 4px;
}

.cs-id-country {
    font-size: 15px;
    font-weight: 600;
    color: var(--cs-color-primary);
    margin-bottom: 10px;
}

.cs-id-district p {
    font-size: 15px;
    color: var(--cs-color-muted);
    margin: 0 0 24px;
}

.cs-id-district-cta {
    margin-top: auto;
    font-weight: 700;
    color: var(--cs-color-primary);
}

.cs-id-district-cta-muted {
    color: var(--cs-color-muted);
    font-weight: 600;
}

/* ---------- Launch card ---------- */

.cs-id-launch-card {
    background: var(--cs-color-page);
    border: 1px solid var(--cs-color-border);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 30px 60px -20px rgba(var(--cs-color-primary-rgb), 0.25);
}

.cs-id-launch-logo {
    height: 48px;
    width: auto;
    margin-bottom: 28px;
}

.cs-id-launch-card dl {
    margin: 0;
    display: grid;
    gap: 20px;
}

.cs-id-launch-card dl > div {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cs-color-border);
}

.cs-id-launch-card dt {
    font-family: var(--cs-font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cs-color-muted);
    margin-bottom: 4px;
}

.cs-id-launch-card dd {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: var(--cs-color-heading);
    line-height: 1.35;
}

.cs-id-launch-card dd span {
    font-size: 16px;
    font-weight: 500;
    color: var(--cs-color-body);
}

.cs-id-launch-note {
    margin: 20px 0 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--cs-color-muted);
}

/* ---------- Ecosystem wheel ---------- */

.cs-id-wheel {
    container-type: inline-size;
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.cs-id-wheel-ring {
    position: absolute;
    inset: 13%;
    border-radius: 50%;
    border: 2px dashed rgba(var(--cs-color-primary-rgb), 0.35);
}

.cs-id-wheel-hub,
.cs-id-wheel-node {
    position: absolute;
    left: 50%;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    font-family: var(--cs-font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.cs-id-wheel-hub {
    width: 31cqw;
    height: 31cqw;
    transform: translate(-50%, -50%);
    background: var(--cs-color-footer);
    color: #ffffff;
    font-size: clamp(12px, 3.1cqw, 16px);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 0 0 10px rgba(var(--cs-color-primary-rgb), 0.12);
}

.cs-id-wheel-node {
    width: 23cqw;
    height: 23cqw;
    padding: 2cqw;
    font-size: clamp(11px, 2.5cqw, 13px);
    background: var(--cs-color-page);
    color: var(--cs-color-heading);
    border: 2px solid var(--cs-color-primary);
    /* place the six nodes on a circle, starting at 12 o'clock */
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 60deg)) translateY(-37cqw) rotate(calc(var(--i) * -60deg));
}

/* ---------- Focus areas ---------- */

.cs-id-focus {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.cs-id-focus .cs-l-icon-tile {
    color: var(--cs-color-primary);
    width: 52px;
    height: 52px;
}

.cs-id-focus .cs-l-card h3 {
    margin: 0;
    color: var(--cs-color-heading);
}

/* ---------- Journey ---------- */

.cs-id-journey {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    counter-reset: none;
}

.cs-id-journey li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--cs-color-page);
    border: 1px solid var(--cs-color-border);
    border-radius: 16px;
    padding: 24px 20px;
    font-family: var(--cs-font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--cs-color-heading);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.cs-id-journey li:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cs-color-primary);
    color: #ffffff;
    font-size: 13px;
}

.cs-id-journey li:last-child {
    background: var(--cs-color-primary);
    border-color: var(--cs-color-primary);
    color: #ffffff;
}

.cs-id-journey-num {
    font-size: 13px;
    color: var(--cs-color-primary);
}

.cs-id-journey li:last-child .cs-id-journey-num {
    color: var(--cs-color-accent-yellow);
}

/* ---------- Roadmap ---------- */

.cs-id-roadmap {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.cs-id-roadmap li {
    position: relative;
    padding-top: 30px;
    border-top: 3px solid var(--cs-color-border);
}

.cs-id-roadmap li::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--cs-color-page);
    border: 3px solid var(--cs-color-primary);
}

.cs-id-roadmap-current {
    border-top-color: var(--cs-color-accent-orange) !important;
}

.cs-id-roadmap-current::before {
    background: var(--cs-color-accent-orange) !important;
    border-color: var(--cs-color-accent-orange) !important;
}

.cs-id-roadmap-when {
    font-family: var(--cs-font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cs-color-primary);
    margin-bottom: 8px;
}

.cs-id-roadmap h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--cs-color-heading);
    margin: 0 0 10px;
}

.cs-id-roadmap p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* ---------- Anchor ---------- */

.cs-id-anchor-logo {
    background: #ffffff;
    border: 1px solid var(--cs-color-border);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-id-anchor-logo img {
    width: 100%;
    max-width: 420px;
    height: auto;
}

/* ---------- Final CTA ---------- */

.cs-id-finalcta-text {
    max-width: 760px;
    margin-left: auto !important;
    margin-right: auto !important;
    line-height: 1.6;
}

.cs-id-finalcta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

body.cs-landing a.cs-id-btn-ghost {
    border: 1.5px solid var(--cs-color-on-dark-muted);
    color: #ffffff;
}

body.cs-landing a.cs-id-btn-ghost:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .cs-id-h1-district {
        font-size: 42px !important;
    }

    .cs-id-band {
        padding: 72px 32px;
    }

    .cs-id-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cs-id-grid,
    .cs-id-focus,
    .cs-id-roadmap {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-id-journey {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cs-id-journey li {
        flex-direction: row;
        align-items: center;
    }

    .cs-id-journey li:not(:last-child)::after {
        content: "↓";
        right: auto;
        left: 50%;
        top: auto;
        bottom: -22px;
        transform: translateX(-50%);
    }
}

@media (max-width: 760px) {
    .cs-id-hero-lead {
        font-size: 20px;
    }

    .cs-id-h1-district {
        font-size: 34px !important;
    }

    .cs-id-band {
        padding: 56px 20px;
    }

    .cs-id-grid,
    .cs-id-focus,
    .cs-id-roadmap {
        grid-template-columns: 1fr;
    }

    .cs-id-map {
        padding: 10px;
    }

    .cs-id-pin {
        font-size: 11px;
    }

    .cs-id-pin > span {
        padding: 3px 5px;
    }

    .cs-id-launch-card {
        padding: 24px;
    }

    /* Wheel collapses into a simple two-column tag grid on phones. */
    .cs-id-wheel {
        aspect-ratio: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .cs-id-wheel-ring {
        display: none;
    }

    .cs-id-wheel-hub,
    .cs-id-wheel-node {
        position: static;
        transform: none;
        width: auto;
        height: auto;
        border-radius: 12px;
        padding: 14px;
    }

    .cs-id-wheel-hub {
        grid-column: 1 / -1;
        box-shadow: none;
    }
}
