/* /assets/css/legislative.css */

.page--legislative .site-main {
    padding: 20px;
    box-sizing: border-box;
}

.legislative-page {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding-bottom: 34px;
}

.legislative-hero,
.legislative-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 166, 58, 0.22);
    border-radius: 26px;
    background-color: rgba(10, 13, 8, 0.96);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 232, 0.07),
        0 18px 34px rgba(0, 0, 0, 0.22);
}

.legislative-hero {
    background-image:
        linear-gradient(135deg, rgba(9, 14, 9, 0.86), rgba(17, 22, 13, 0.76)),
        url("/assets/images/container3.png");
}

.legislative-panel {
    background-image:
        linear-gradient(135deg, rgba(9, 14, 9, 0.88), rgba(17, 22, 13, 0.8)),
        url("/assets/images/container5.png");
}

.legislative-hero::before,
.legislative-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(140deg, rgba(255, 247, 232, 0.07), rgba(255, 247, 232, 0.015) 34%, transparent 62%),
        radial-gradient(circle at top right, rgba(212, 166, 58, 0.12), transparent 28%);
    pointer-events: none;
}

.legislative-hero {
    margin-bottom: 20px;
    padding: clamp(24px, 3vw, 34px);
}

.legislative-panel {
    padding: clamp(22px, 3vw, 34px);
}

.legislative-hero__eyebrow,
.legislative-hero__title,
.legislative-hero__summary,
.legislative-copy,
.legislative-actions {
    position: relative;
    z-index: 1;
}

.legislative-hero__eyebrow {
    margin: 0 0 9px;
    color: rgba(212, 166, 58, 0.88);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.legislative-hero__title {
    max-width: 820px;
    margin: 0;
    color: #fff7e8;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.25rem, 4vw, 3.7rem);
    line-height: 0.96;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
}

.legislative-hero__summary,
.legislative-copy p {
    color: rgba(244, 240, 228, 0.9);
    font-family: "Inter", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.66;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.36);
}

.legislative-hero__summary {
    max-width: 760px;
    margin: 14px 0 0;
}

.legislative-copy {
    display: grid;
    gap: 14px;
    max-width: 880px;
}

.legislative-copy p {
    margin: 0;
}

.legislative-copy__vote {
    color: #fff7e8 !important;
    font-weight: 850;
}

.legislative-actions {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.legislative-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 70px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(21, 27, 34, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 22px rgba(0, 0, 0, 0.3);
    color: #f4ead8;
    text-decoration: none;
    box-sizing: border-box;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.legislative-action:hover,
.legislative-action:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(31, 40, 49, 0.96);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 13px 26px rgba(0, 0, 0, 0.34);
    outline: none;
}

.legislative-action span {
    color: rgba(212, 166, 58, 0.92);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
}

.legislative-action strong {
    color: #f4ead8;
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(0.98rem, 1.35vw, 1.12rem);
    font-weight: 900;
    line-height: 1.2;
}

@media (max-width: 760px) {
    .page--legislative .site-main {
        padding: 14px;
    }

    .legislative-page {
        width: min(100%, calc(100% - 6px));
        padding-bottom: 24px;
    }

    .legislative-hero,
    .legislative-panel {
        border-radius: 22px;
    }

    .legislative-actions {
        grid-template-columns: 1fr;
    }

    .legislative-action {
        min-height: 0;
    }
}

/* Keep the legislative footer in normal document flow instead of fixed viewport flow. */
body.page--legislative {
    overflow-x: hidden;
    overflow-y: auto;
}

body.page--legislative .site-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    align-items: start;
}

body.page--legislative .site-main {
    min-height: 0;
    overflow: visible;
}

body.page--legislative .site-footer {
    min-height: auto;
    height: auto;
}

/* Page flow/footer correction */

body.page--legislative {
    overflow-x: hidden;
    overflow-y: auto;
}

body.page--legislative .site-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    align-items: start;
}

body.page--legislative .site-main {
    min-height: 0;
    overflow: visible;
}

body.page--legislative .site-footer {
    min-height: auto;
    height: auto;
}
