/* Roadmap page: readable timeline and summary, aligned with the public theme. */

html body .copp-roadmap {
    --copp-roadmap-ink: var(--copp-ink, #123e56);
    --copp-roadmap-muted: #607786;
    --copp-roadmap-line: rgba(var(--copp-ink-rgb, 18, 62, 86), 0.16);
    --copp-roadmap-panel: var(--copp-surface, #f3f7f8);
    --copp-roadmap-accent: var(--copp-red, #bf1420);
    max-width: 1180px;
    margin: 0 auto;
    color: var(--copp-roadmap-ink);
}

html body .copp-roadmap-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: stretch;
    margin: 28px 0 36px;
    padding: clamp(28px, 4vw, 52px);
    border-radius: 28px;
    background: linear-gradient(135deg, var(--copp-roadmap-panel), #fff);
    box-shadow: 0 18px 44px rgba(var(--copp-ink-rgb, 18, 62, 86), 0.1);
}

html body .copp-roadmap-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

html body .copp-roadmap-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--copp-roadmap-accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

html body .copp-roadmap-hero__copy h1 {
    margin: 0 0 14px;
    color: var(--copp-roadmap-ink);
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.02;
}

html body .copp-roadmap-hero__copy p {
    max-width: 680px;
    margin: 0;
    color: var(--copp-roadmap-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

html body .copp-roadmap-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

html body .copp-roadmap-hero__actions .copp-news-btn {
    min-height: 46px;
    padding: 12px 18px;
}

html body .copp-roadmap-hero__panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: center;
}

html body .copp-roadmap-hero__tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 132px;
    padding: 18px;
    border: 1px solid rgba(var(--copp-ink-rgb, 18, 62, 86), 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

html body .copp-roadmap-hero__tile--main {
    color: #fff;
    background: var(--copp-roadmap-accent);
}

html body .copp-roadmap-hero__tile span {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
}

html body .copp-roadmap-hero__tile strong {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

html body .copp-roadmap-timeline {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 0 0 20px 44px;
}

html body .copp-roadmap-timeline::before {
    position: absolute;
    top: 8px;
    bottom: 24px;
    left: 15px;
    width: 2px;
    background: var(--copp-roadmap-line);
    content: "";
}

html body .copp-roadmap-card {
    position: relative;
    min-width: 0;
}

html body .copp-roadmap-card__link {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    min-width: 0;
    padding: 24px 26px;
    border: 1px solid rgba(var(--copp-ink-rgb, 18, 62, 86), 0.12);
    border-radius: 20px;
    color: inherit;
    background: #fff;
    box-shadow: 0 10px 28px rgba(var(--copp-ink-rgb, 18, 62, 86), 0.06);
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

html body .copp-roadmap-card__link:hover,
html body .copp-roadmap-card__link:focus-visible {
    border-color: var(--copp-roadmap-accent);
    box-shadow: 0 16px 34px rgba(var(--copp-ink-rgb, 18, 62, 86), 0.12);
    transform: translateY(-2px);
}

html body .copp-roadmap-card__point {
    position: absolute;
    top: 24px;
    left: -53px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--copp-roadmap-accent);
    box-shadow: 0 0 0 1px var(--copp-roadmap-line);
    font-size: 0.68rem;
    font-weight: 800;
}

html body .copp-roadmap-card__body {
    min-width: 0;
}

html body .copp-roadmap-card__head,
html body .copp-roadmap-card__compact,
html body .copp-roadmap-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

html body .copp-roadmap-card__head {
    justify-content: space-between;
    gap: 10px;
}

html body :is(.copp-roadmap-status, .copp-roadmap-priority) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

html body .copp-roadmap-status {
    color: var(--copp-roadmap-accent);
    background: color-mix(in srgb, var(--copp-roadmap-accent) 10%, white);
}

html body .copp-roadmap-priority {
    color: var(--copp-roadmap-muted);
    background: rgba(var(--copp-ink-rgb, 18, 62, 86), 0.07);
}

html body .copp-roadmap-card h2 {
    margin: 18px 0 12px;
    color: var(--copp-roadmap-ink);
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.14;
}

html body .copp-roadmap-card__compact {
    color: var(--copp-roadmap-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

html body .copp-roadmap-card__details {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(var(--copp-ink-rgb, 18, 62, 86), 0.1);
}

html body .copp-roadmap-card__meta {
    color: var(--copp-roadmap-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

html body .copp-roadmap-card__details > p {
    margin: 12px 0 0;
    color: var(--copp-roadmap-ink);
    line-height: 1.55;
}

html body .copp-roadmap-card__note {
    margin-top: 12px;
    padding: 12px 14px;
    border-left: 3px solid var(--copp-roadmap-accent);
    color: var(--copp-roadmap-muted);
    background: rgba(var(--copp-ink-rgb, 18, 62, 86), 0.04);
    font-size: 0.88rem;
    line-height: 1.45;
}

html body .copp-roadmap-progress {
    margin-top: 18px;
}

html body .copp-roadmap-progress__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--copp-roadmap-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

html body .copp-roadmap-progress__top strong {
    color: var(--copp-roadmap-ink);
}

html body .copp-roadmap-progress__bar {
    display: block;
    height: 8px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(var(--copp-ink-rgb, 18, 62, 86), 0.1);
}

html body .copp-roadmap-progress__bar > span {
    display: block;
    width: var(--roadmap-progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: var(--copp-roadmap-accent);
}

html body .copp-roadmap-card__arrow {
    align-self: center;
    color: var(--copp-roadmap-accent);
}

@media (max-width: 767.98px) {
    html body .copp-roadmap-hero {
        grid-template-columns: 1fr;
        margin: 20px 0 28px;
        padding: 24px 20px;
        border-radius: 20px;
    }

    html body .copp-roadmap-hero__panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    html body .copp-roadmap-hero__tile {
        min-height: 108px;
        padding: 14px;
    }

    html body .copp-roadmap-timeline {
        padding-left: 28px;
    }

    html body .copp-roadmap-timeline::before {
        left: 7px;
    }

    html body .copp-roadmap-card__link {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 18px;
        border-radius: 16px;
    }

    html body .copp-roadmap-card__point {
        top: 20px;
        left: -36px;
        width: 26px;
        height: 26px;
        border-width: 3px;
        font-size: 0.6rem;
    }

    html body .copp-roadmap-card__arrow {
        display: none;
    }
}
