/* Main Content Area */
#main {
    max-width: 1600px; /* Wider main section */
    margin: 0 auto;
    padding: 0 20px;
}

/* Map Container */
.map-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    height: auto;
    gap: 2rem;
    background: transparent; /* Remove white background */
    width: 100vw; /* Full viewport width */
    margin-left: calc(-50vw + 50%); /* Extend beyond container borders */
    position: relative;
}

#us-map {
    flex: 1;
    max-width: 100%;
    height: 600px;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.sidebar-legend-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 400px;
    max-width: 400px;
    color: #f7f7f7;
}

.sidebar {
    
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    color: #f7f7f7;
}

.sidebar h3 {
    margin-bottom: 1rem;
    color: #f7f7f7;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
    text-transform: uppercase;
}

#state-info p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    overflow-wrap: break-word;
    max-width: 440px;                  /* !!!!WIDTH OF SIDEBAR FOR STATE INFO!!!! */          /* !!!!WIDTH OF SIDEBAR FOR STATE INFO!!!! */         /* !!!!WIDTH OF SIDEBAR FOR STATE INFO!!!! */
    color: #f7f7f7;
}

#state-info p strong {
    color: #e7e7e7;               /* bold labels (Status, Sponsors, Details) */
}

.legend {
    
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    color: #f7f7f7;
}

.legend h3 {
    margin-bottom: 1rem;
    color: #f7f7f7;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #f7f7f7;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-block;
}

.state-enacted {
    fill: #18bfef;
    background-color: #18bfef;
}

.state-progress {
    fill: #18c0ef3f;
    background-color: #18c0ef3f;
}

.state-blocked {
    fill: #000000;
    background-color: #000000;
}

.state-noaction {
    fill: #c8dde2bb;
    background-color: #c8dde2bb;
}

/* State Styling */
#us-map path {
    stroke: #000;
    stroke-width: 0.97063118000000004;
    transition: fill 0.3s ease, stroke-width 0.3s ease;
    opacity: 0.8;
}

#us-map path:hover {
    opacity: 1;
    stroke-width: 1.5;
}

/* Involvement Cards */
.involvement-card {
    background: transparent; /* Remove white background */
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.involvement-card h3 {
    margin-bottom: 1rem;
    color: #ffffff; /* White text for dark background */
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 900;
    font-size: 1.25rem;
}

.involvement-card p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #ffffff; /* White text */
}

#legislator-link, #advocate-header, #state-bill-header {
    margin-bottom: 1rem;
}

#advocate-list, #state-bill-list {
    min-height: 100px;
}

#state-bill-header {
    text-align: left;
    color: #f7f7f7;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 900;
    font-size: 1rem;
}

/* Person and Bill Cards */
.person-card, .bill-card {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.person-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.person-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #f7f7f7;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 900;
    text-align: left;
    
    
}

.person-card p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.person-card p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.person-card h5 {
    font-size: 0.9rem;
    margin-top: 0rem;
    color:#18bfef; /* Highlight contact info */
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 700;
    text-align: left;
}

.bill-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: #f7f7f7;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 900;
}

.bill-card {
    flex-direction: column;
    align-items: flex-start;
    background: transparent
}

.bill-card .button {
    margin-top: 0.5rem;
    box-shadow: inset 0 0 0 2px #f7f7f7;
    color: #f7f7f7 !important;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    height: 3rem;
    line-height: 3rem;
    padding: 0 2rem;
}

.bill-card .button:hover {
    box-shadow: inset 0 0 0 2px #18bfef;
    background-color: transparent;
    color: #18bfef !important;
}

/* Stats Block */
.stats {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.stat h3 {
    color: #18bfef; /* Template primary color */
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-weight: 900;
}

.stat p {
    color: #f7f7f7;
    font-weight: bold;
}

/* Responsive Design */
@media screen and (max-width: 980px) {
    .map-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-left: 0;
    }

    #us-map {
        width: 100%;
        max-width: 600px;
        height: 360px;
    }

    .sidebar-legend-container {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .sidebar {
        width: 100%;
        max-width: 500px;
        height: auto;
        margin: 0 auto;
    }

    .legend {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .stats {
        flex-direction: column;
        gap: 1rem;
    }

    /* ——————— INLINE HUMAN VERIFICATION (INSIDE ADVOCATE BOX) ——————— */

}



/* Mobile fine-tuning – still looks identical */
@media (max-width: 480px) {
    .human-gate {
        padding: 1.8rem 1.5rem !important;
        margin: 1.5rem auto !important;
    }
    .human-gate h4 { font-size: 1.35rem !important; }
    .human-gate p { font-size: 1.15rem !important; }
}

/* ——————— SHOW ADVOCATE CONTACTS BUTTON ——————— */

/* ——————— ANIMATION ——————— */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------
   SUBSTACK HERO BANNER
   ------------------------------------------------- */
.substack-hero {
    position: relative;
    width: 100%;
    min-height: 560px;
    margin: 4rem 0;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

/* Capitol background */
.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1611095564985-09bc70f4c27a?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    filter: brightness(0.45);  /* Dark overlay */
    z-index: 1;
}

/* Content overlay */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 1rem 4rem;
}

/* Title */
.substack-hero h1 {
    margin: 0 0 1rem;
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #fff;
}

/* Tagline */
.substack-hero .tagline {
    margin-bottom: 2.5rem;
    font-size: 1.35rem;
    color: #e7e7e7;
    font-weight: 500;
}

/* Custom form */
.custom-substack-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.custom-substack-form input[type="email"] {
    flex: 1;
    min-width: 250px;
    padding: 0.9rem 1.2rem;
    background: #222;
    border: 2px solid #18bfef;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

.custom-substack-form input[type="email"]:focus {
    outline: none;
    border-color: #16a8d1;
}

.custom-substack-form button {
    padding: 0.9rem 1.8rem;
    background: #18bfef;
    border: none;
    border-radius: 8px;
    color: #111;
    font-weight: 900;
    font-size: 0.95rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.custom-substack-form button:hover {
    background: #16a8d1;
}

/* Legal text (small, grey) */
.custom-substack-form + p {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #aaa;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.custom-substack-form + p a {
    color: #18bfef;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .substack-hero h1 { font-size: 3rem; }
    .substack-hero .tagline { font-size: 1.1rem; }
    .custom-substack-form {
        flex-direction: column;
        gap: 1rem;
    }
    .custom-substack-form input[type="email"] {
        width: 100%;
        max-width: none;
    }
}
