/* Election Hero widget: hero shell, notice cards and the quick-links band. Served by ElectionHero/Index.cshtml with a version query string. */
/* ---------- Type (matches VoterInsight) ---------- */
    .dc-hero,
    .dc-quicklinks {
        font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
        background-color: #0b1220;
        background-image: url("/voterinsight/backgrounds/voterinsight-bck5.jpg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    /* ---------- Hero shell: flag photo under a slate overlay (VoterInsight treatment) ---------- */
    .dc-hero {
        position: relative;
        overflow: hidden;
        color: #fff;
        margin: 0;
        padding: 5rem 0 5.5rem;
    }

    /* Dark translucent overlay so the flag reads through and text stays legible */
    .dc-hero__glow {
        position: absolute;
        top: 0; right: 0; bottom: 0; left: 0;
        background: linear-gradient(180deg, rgba(11, 18, 32, .28) 0%, rgba(11, 18, 32, .06) 45%, rgba(11, 18, 32, .30) 100%);
        pointer-events: none;
    }

    /* Subtle grid pattern, same as the VoterInsight hero */
    .dc-hero__stars {
        position: absolute;
        top: 0; right: 0; bottom: 0; left: 0;
        opacity: .05;
        pointer-events: none;
        background-image: linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px),
                          linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
        background-size: 50px 50px;
    }

    .dc-hero__ribbon { display: none; }

    /* ---------- Headline ---------- */
    .dc-hero__eyebrow {
        letter-spacing: .28em;
        font-size: .78rem;
        font-weight: 600;
        color: #bfdbfe;
        animation: dcRise .7s ease-out both;
    }

    .dc-hero__title {
        font-weight: 900;
        font-size: calc(2rem + 2.4vw);
        line-height: 1.08;
        letter-spacing: -.02em;
        text-transform: none;
        text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
        color: #fff;
        animation: dcRise .7s ease-out .1s both;
    }

    .dc-hero__title span {
        display: inline-block;
        background: linear-gradient(90deg, #93c5fd 0%, #ffffff 50%, #fca5a5 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }

    .dc-hero__separator {
        width: 5.5rem;
        height: .28rem;
        border-radius: 1rem;
        background: linear-gradient(90deg, #3b82f6 0%, #3b82f6 33%, #f5f6f8 33%, #f5f6f8 66%, #ef4444 66%);
        animation: dcRise .7s ease-out .2s both;
    }

    .dc-hero__lead {
        font-size: 1.15rem;
        color: rgba(219, 234, 254, .9);
        max-width: 42rem;
        margin-left: auto;
        margin-right: auto;
        text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
        animation: dcRise .7s ease-out .3s both;
    }

    /* ---------- Notice cards: VoterInsight glass ---------- */
    .dc-notice {
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, .2);
        background: rgba(255, 255, 255, .10);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
        color: #fff;
        transition: transform .25s ease, background .25s ease, border-color .25s ease;
        animation: dcRise .7s ease-out .45s both;
    }

    .dc-notice:hover {
        transform: translateY(-.25rem);
        background: rgba(255, 255, 255, .15);
        border-color: rgba(255, 255, 255, .32);
    }

    .dc-notice--second { animation-delay: .6s; }
    .dc-notice--third { animation-delay: .75s; }

    .dc-notice--compact .card-body {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .dc-notice__badge {
        display: inline-flex;
        align-items: center;
        background: rgba(159, 18, 57, .55);
        color: #fecdd3;
        border: 1px solid rgba(251, 113, 133, .35);
        font-size: .7rem;
        font-weight: 700;
        letter-spacing: .14em;
        text-transform: uppercase;
        padding: .4em .9em;
        border-radius: 9999px;
    }

    .dc-notice__badge--blue {
        background: rgba(30, 58, 138, .55);
        color: #bfdbfe;
        border-color: rgba(96, 165, 250, .35);
    }

    .dc-notice__badge--gold {
        background: rgba(146, 64, 14, .55);
        color: #fde68a;
        border-color: rgba(251, 191, 36, .35);
    }

    .dc-notice__icon {
        flex: 0 0 auto;
        width: 3.25rem;
        height: 3.25rem;
        border-radius: .75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        color: #fff;
        background: rgba(255, 255, 255, .2);
        border: 1px solid rgba(255, 255, 255, .25);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .dc-notice__icon--sm {
        width: 3rem;
        height: 3rem;
        font-size: 1.1rem;
    }

    .dc-notice__title {
        font-weight: 700;
        text-transform: none;
        color: #fff;
        margin-bottom: .35rem;
        letter-spacing: -.01em;
    }

    .dc-notice--compact .dc-notice__title {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .dc-notice__meta {
        font-size: .85rem;
        color: #bfdbfe;
    }

    .dc-notice__text {
        color: rgba(255, 255, 255, .82);
        margin-bottom: 0;
    }

    /* Auto-width blue button (VoterInsight primary), not a full-width red slab */
    .dc-notice__btn {
        display: inline-flex;
        align-items: center;
        align-self: flex-start;
        margin-top: auto;
        background: #2563eb;
        border: none;
        color: #fff !important;
        font-weight: 600;
        font-size: .95rem;
        letter-spacing: 0;
        padding: .65rem 1.25rem;
        border-radius: .5rem;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
        transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
        white-space: nowrap;
    }

    .dc-notice__btn:hover,
    .dc-notice__btn:focus {
        background: #1d4ed8;
        color: #fff !important;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
        text-decoration: none;
    }

    .dc-notice__btn:focus-visible {
        outline: 2px solid #93c5fd;
        outline-offset: 2px;
    }

    .dc-notice__hint {
        font-size: .75rem;
        color: rgba(255, 255, 255, .55);
        text-align: left !important;
    }

    /* ---------- Quick links band ---------- */
    .dc-quicklinks {
        position: relative;
        padding: 3.5rem 0 5rem;
        margin: 0;
    }

    /* Light tint over the shared photo so the tiles stay legible while the image shows through */
    .dc-quicklinks::before {
        content: "";
        position: absolute;
        top: 0; right: 0; bottom: 0; left: 0;
        background: linear-gradient(180deg, rgba(11, 18, 32, .30) 0%, rgba(11, 18, 32, .22) 50%, rgba(11, 18, 32, .45) 100%);
        pointer-events: none;
    }

    .dc-quicklinks > .container {
        position: relative;
        z-index: 1;
    }

    .dc-links {
        animation: dcRise .7s ease-out .6s both;
    }

    .dc-links__heading {
        color: #fff;
        font-weight: 700;
        text-transform: none;
        font-size: 1.6rem;
        letter-spacing: -.01em;
    }

    .dc-links__sub {
        color: rgba(255, 255, 255, .65);
        font-size: .95rem;
    }

    .dc-tile {
        display: block;
        height: 100%;
        padding: 1.5rem 1.4rem 1.35rem;
        border-radius: 1rem;
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .18);
        box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        transition: transform .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
    }

    /* Whole tile is the click target (self-contained, does not rely on Bootstrap .stretched-link) */
    .dc-tile {
        position: relative;
        cursor: pointer;
    }

    .dc-tile__link::after {
        content: "";
        position: absolute;
        top: 0; right: 0; bottom: 0; left: 0;
        z-index: 1;
    }

    .dc-tile:focus-within {
        border-color: rgba(147, 197, 253, .9);
        box-shadow: 0 0 0 3px rgba(147, 197, 253, .35), 0 20px 40px rgba(0, 0, 0, .45);
    }

    .dc-tile:hover {
        transform: translateY(-.25rem);
        background: rgba(255, 255, 255, .14);
        border-color: rgba(147, 197, 253, .6);
        box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
    }

    .dc-tile__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3rem;
        height: 3rem;
        border-radius: .75rem;
        margin-bottom: 1rem;
        font-size: 1.1rem;
        color: #bfdbfe;
        background: rgba(255, 255, 255, .12);
        border: 1px solid rgba(255, 255, 255, .2);
        transition: background .25s ease, color .25s ease, border-color .25s ease;
    }

    .dc-tile:hover .dc-tile__icon {
        background: #2563eb;
        border-color: #2563eb;
        color: #fff;
    }

    .dc-tile__title {
        color: #fff;
        font-weight: 600;
        font-size: 1rem;
        text-transform: none;
        margin-bottom: .35rem;
    }

    .dc-tile__text {
        color: rgba(255, 255, 255, .72);
        font-size: .86rem;
        line-height: 1.5;
        margin-bottom: .85rem;
    }

    .dc-tile__link {
        font-size: .85rem;
        font-weight: 600;
        letter-spacing: .01em;
        color: #93c5fd;
        text-decoration: none;
    }

    .dc-tile__link em {
        display: inline-block;
        transition: transform .25s ease;
        font-size: .75rem;
    }

    .dc-tile:hover .dc-tile__link,
    .dc-tile__link:hover,
    .dc-tile__link:focus {
        color: #fff;
        text-decoration: none;
        cursor: pointer;
    }

    .dc-tile:hover .dc-tile__link em {
        transform: translateX(4px);
    }

    /* ---------- Animations ---------- */
    @keyframes dcRise {
        from { opacity: 0; transform: translateY(1.25rem); }
        to   { opacity: 1; transform: translateY(0); }
    }

    @media (prefers-reduced-motion: reduce) {
        .dc-hero__eyebrow,
        .dc-hero__title,
        .dc-hero__separator,
        .dc-hero__lead,
        .dc-notice,
        .dc-links {
            animation: none;
        }
    }

    @media (max-width: 767.98px) {
        .dc-hero {
            padding: 3rem 0 3.25rem;
        }

        .dc-hero,
        .dc-quicklinks {
            background-attachment: scroll;
        }
    }

    .dc-hero b, .dc-hero strong,
    .dc-quicklinks b, .dc-quicklinks strong {
        color: #fff;
    }
