/* Candidate Experience — Compare Ottawa Suite 2.1 */

.co-candidate-hub {
    color: #213541;
    background: #fff;
}

.co-candidate-hub__shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.co-candidate-hub__hero {
    margin: 0;
    padding: clamp(72px, 9vw, 124px) 0;
    border-radius: 16px 16px 0 0;
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(54,209,220,.24), transparent 28%),
        linear-gradient(135deg, #082d50 0%, #075b92 58%, #087db0 100%);
}

.co-candidate-hub__eyebrow,
.co-candidate-hub__label {
    margin: 0 0 10px;
    color: #0a789f;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.co-candidate-hub__hero .co-candidate-hub__eyebrow {
    color: #b8f1f6;
}

.co-candidate-hub__hero h1 {
    max-width: 900px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(2.7rem, 6vw, 5.25rem);
    line-height: 1.02;
    letter-spacing: 0;
    text-transform: none;
}

.co-candidate-hub__lede {
    max-width: 780px;
    margin: 0;
    color: #fff;
    font-size: clamp(1.08rem, 2vw, 1.36rem);
    line-height: 1.6;
}

.co-candidate-hub__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.co-candidate-hub-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.co-candidate-hub-button:hover,
.co-candidate-hub-button:focus {
    transform: translateY(-1px);
}

.co-candidate-hub-button--primary {
    color: #fff !important;
    background: #087ca9;
}

.co-candidate-hub-button--primary:hover,
.co-candidate-hub-button--primary:focus {
    color: #fff !important;
    background: #075d82;
}

.co-candidate-hub-button--secondary {
    color: #0a5c7d !important;
    border-color: #b9d6e1;
    background: #fff;
}

.co-candidate-hub-button--light {
    color: #09385b !important;
    background: #fff;
}

.co-candidate-hub-button--outline {
    color: #fff !important;
    border-color: rgba(255,255,255,.55);
    background: transparent;
}

.co-candidate-hub__section {
    padding-block: clamp(62px, 8vw, 104px);
}

.co-candidate-hub__section-heading {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(300px, .7fr);
    gap: 60px;
    align-items: end;
    margin-bottom: 38px;
}

.co-candidate-hub__section-heading h2,
.co-candidate-hub__compare h2 {
    margin: 0;
    color: #09385b;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -.025em;
    text-transform: none;
}

.co-candidate-hub__section-heading > p {
    margin: 0;
    line-height: 1.72;
}

.co-candidate-hub__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.co-candidate-hub-card {
    overflow: hidden;
    border: 1px solid #d7e3e9;
    border-top: 5px solid var(--co-candidate-accent);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(9,49,73,.07);
    transition: transform .18s ease, box-shadow .18s ease;
}

.co-candidate-hub-card:hover,
.co-candidate-hub-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(9,49,73,.11);
}

.co-candidate-hub-card__media {
    position: relative;
    display: grid;
    place-items: center;
    height: 400px;
    overflow: hidden;
    padding: 12px 18px 0;
    background:
        radial-gradient(circle at 50% 28%, rgba(255,255,255,.92), rgba(255,255,255,.38) 46%, transparent 70%),
        linear-gradient(145deg, #e7f1f5, #c8dfe7);
}

.co-candidate-hub-card__media img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 10px 10px 0 0;
    transition: transform .3s ease;
}

.co-candidate-hub-card:hover .co-candidate-hub-card__media img {
    transform: scale(1.015);
}

.co-candidate-hub-card__media > span:not(.co-candidate-hub-card__hover) {
    display: grid;
    place-items: center;
    height: 100%;
    color: #fff;
    background: linear-gradient(145deg, #0b4168, #0783ad);
    font-size: 4rem;
    font-weight: 800;
}

.co-candidate-hub-card__hover {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 9px 13px;
    border-radius: 999px;
    color: #09385b;
    background: rgba(255,255,255,.94);
    font-size: .8rem;
    font-weight: 800;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .18s ease, transform .18s ease;
}

.co-candidate-hub-card:hover .co-candidate-hub-card__hover,
.co-candidate-hub-card:focus-within .co-candidate-hub-card__hover {
    opacity: 1;
    transform: translateY(0);
}

.co-candidate-hub-card__content {
    padding: 23px 24px 24px;
}

.co-candidate-hub-card__kicker {
    margin: 0 0 5px;
    color: #08769d;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.co-candidate-hub-card__content h2 {
    margin: 0 0 6px;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    line-height: 1.08;
    text-transform: none;
}

.co-candidate-hub-card__content h2 a {
    color: #09385b;
    text-decoration: none;
}

.co-candidate-hub-card__role {
    margin: 0 0 17px;
    color: #607681;
    font-weight: 650;
}

.co-candidate-hub-card__bio {
    margin: 0 0 17px;
    line-height: 1.65;
}

.co-candidate-hub-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 0 16px;
    padding: 13px 0;
    border-block: 1px solid #e1eaee;
}

.co-candidate-hub-card__stats div {
    padding-inline: 12px;
    border-right: 1px solid #e1eaee;
}

.co-candidate-hub-card__stats div:first-child {
    padding-left: 0;
}

.co-candidate-hub-card__stats div:last-child {
    padding-right: 0;
    border-right: 0;
}

.co-candidate-hub-card__stats dt {
    color: #71838c;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.co-candidate-hub-card__stats dd {
    margin: 4px 0 0;
    color: #09385b;
    font-size: 1rem;
    font-weight: 800;
}

.co-candidate-hub-card__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 17px;
}

.co-candidate-hub-card__topics span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #275267;
    background: #edf5f7;
    font-size: .76rem;
    font-weight: 700;
}

.co-candidate-hub-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.co-candidate-hub-card__website {
    color: #075d82;
    font-size: .88rem;
    font-weight: 750;
}

.co-candidate-hub__issues {
    padding-block: clamp(64px, 8vw, 100px);
    background: #f2f7f9;
}

.co-candidate-hub__issue-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.co-candidate-hub__issue-grid a {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 20px 22px;
    border: 1px solid #d5e4ea;
    border-radius: 11px;
    color: #09385b;
    background: #fff;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease;
}

.co-candidate-hub__issue-grid a:hover,
.co-candidate-hub__issue-grid a:focus {
    transform: translateY(-2px);
    border-color: #8dbfce;
}

.co-candidate-hub__issue-grid a span {
    color: #0a789f;
    font-size: .75rem;
    font-weight: 800;
}

.co-candidate-hub__issue-grid a strong {
    font-size: 1.02rem;
}

.co-candidate-hub__issue-grid a b {
    font-size: 1.2rem;
}

.co-candidate-hub__all-issues {
    margin: 24px 0 0;
    text-align: right;
}

.co-candidate-hub__all-issues a {
    color: #075d82;
    font-weight: 800;
}

.co-candidate-hub__compare {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
    margin-block: clamp(64px, 8vw, 100px);
    padding: clamp(32px, 5vw, 52px);
    border-radius: 17px;
    color: #fff;
    background: #09385b;
}

.co-candidate-hub__compare h2,
.co-candidate-hub__compare .co-candidate-hub__label {
    color: #fff;
}

.co-candidate-hub__compare p {
    max-width: 700px;
    margin-bottom: 0;
    color: #fff;
}

.co-candidate-hub__resources {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding-bottom: 90px;
}

.co-candidate-hub__resources a {
    display: flex;
    flex-direction: column;
    min-height: 140px;
    padding: 23px;
    border: 1px solid #d9e5ea;
    border-radius: 12px;
    color: #244451;
    background: #fff;
    text-decoration: none;
}

.co-candidate-hub__resources strong {
    margin-bottom: 9px;
    color: #09385b;
    font-size: 1.05rem;
}

.co-candidate-hub__resources span {
    line-height: 1.55;
}

/* Single candidate enhancement */

.co-candidate-profile-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin: 28px 0;
    padding: 28px;
    border: 1px solid #d5e4ea;
    border-radius: 14px;
    background: #f5fafb;
}

.co-candidate-profile-tools h2 {
    margin: 0 0 13px;
    color: #09385b;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    text-transform: none;
}

.co-candidate-profile-tools__issues {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.co-candidate-profile-tools__issues a {
    padding: 7px 11px;
    border-radius: 999px;
    color: #205268;
    background: #fff;
    font-size: .78rem;
    font-weight: 750;
    text-decoration: none;
}

.co-candidate-profile-tools__actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 9px;
}

@media (max-width: 900px) {
    .co-candidate-hub__section-heading {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .co-candidate-hub__grid {
        grid-template-columns: 1fr;
    }

    .co-candidate-hub__resources {
        grid-template-columns: repeat(2, 1fr);
    }

    .co-candidate-profile-tools {
        align-items: flex-start;
        flex-direction: column;
    }

    .co-candidate-profile-tools__actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 620px) {
    .co-candidate-hub__shell {
        width: min(100% - 28px, 1180px);
    }

    .co-candidate-hub__hero {
        padding-block: 64px;
    }

    .co-candidate-hub__issue-grid,
    .co-candidate-hub__resources {
        grid-template-columns: 1fr;
    }

    .co-candidate-hub-card__media {
        height: 340px;
        padding-inline: 12px;
    }

    .co-candidate-hub-card__stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .co-candidate-hub-card__stats div {
        padding: 0;
        border-right: 0;
    }

    .co-candidate-hub__compare {
        align-items: flex-start;
        flex-direction: column;
    }

    .co-candidate-profile-tools__actions {
        width: 100%;
        flex-direction: column;
    }

    .co-candidate-profile-tools__actions .co-candidate-hub-button {
        width: 100%;
    }
}
