html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: Montserrat, sans-serif;
    color: #0d283d;
    --first-column-width: 150px;
    --second-column-width: 120px;
    --container-width: 1280px;
}

.page-wrap{
    width: 100%;
    contain: paint;
}

#header {
    padding: 11px 0;
}
.logo img {
    width: 119px;
    height: auto;
}
.inner {
    max-width: var(--container-width);
    margin: 0 auto;
}
.header-banner {
    background: url(../img/mca/header-bg.jpg) no-repeat 50% 50%;
    background-size: cover;
    color: #fff;
    padding: 50px 0 80px;
    margin: 0 0 50px;
    min-height: 300px;
    box-sizing: border-box;
}


#app-content {
    margin-top: 8px;
    background: #fff url(../img/mca/bg.jpg) no-repeat 50% 100px;
    background-size: 100% auto;
    min-height: 600px;
    padding-bottom: 150px;
}

.text-block {
    line-height: 1.5;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 15px center;
    border-radius: 50px;
    border: 1px solid #0d283d;
    padding: 8px 55px 8px 25px;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #1d3557;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

select:hover {
    border-color: #ff6b35;
}

select:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.header-filters {
    display: flex;
    gap: 10px;
}
.header-filters-form {
    display: flex;
    gap: 10px;
}

.tab-content {
    display: none;
}
.tab-content.current {
    display: block;
}

h1 {
    font-weight: bold;
    font-size: 50px;
}
h2,
.fr-title-date {
    font-size: 35px;
}
.fr-title-date {
    font-weight: 500;
}
h2 {
    font-weight: bold;
}
.fr-title {
    margin: .85em 0  0.3em;
}
h4 {
    font-size: 20px;
    font-weight: 600;
}
h4 a {
    color: inherit;
    text-decoration: none;
}
.fr-no-report {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin: 3em 0;
}
p {
    margin: 1em 0;
    line-height: 1.25;
}

.with-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-menu {
    display: flex;
    text-transform: uppercase;
    font-weight: bold;
    gap: 30px;
}
.header-menu a {
    display: block;
    text-decoration: none;
    color: #0d283d;
}

.toggle-search svg {
    vertical-align: middle;
    stroke: #0d283d;
    transition: stroke 0.3s ease;
    margin: -5px 0 0;
}

.header-menu a:hover {
    color: #f3734e;
}

.header-menu a.toggle-search:hover svg {
    stroke: #f3734e;
}

#FloorReportDate {
    width: 110px;
}

#header .inner {
    position: relative;
}

/* Search Form */
#search-form-container {
    position: absolute;
    top: 100%;
    margin-top: -40px;
    right: 0;
    z-index: 1000;
    padding: 20px;
    background-color: #f0f3f5;
    border-top: none;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    display: none;
}

.search-form-fields {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

#search-form-container input[type="text"],
#search-form-container select {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

#search-form-container input[type="text"] {
    font-weight: 600;
    color: #0d283d;
}

#search-form-container select {
    width: 300px;
}

button {
    padding: 8px 20px;
    background-color: #0d283d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

button:hover {
    background-color: #f3734e;
}
#FloorReportMonth {
    width: 200px;
}
#FloorReportLegislativeSession {
    width: 220px;
}
.header-banner .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-banner .row .col:last-child {
    display: flex;
    align-items: center;
    gap: 30px;
}
.print-btn,
.subscribe-btn {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding-top: 50px;
    min-width: 50px;
}
.print-btn.internal, 
.subscribe-btn.internal {
    margin-top: 28px;;
}
.print-btn:hover,
.subscribe-btn:hover {
    opacity: .8;
}
.print-btn {
    background: url(../img/printing.png) no-repeat 50% 0;
}
.subscribe-btn {
    background: url(../img/email.png) no-repeat 50% 8px;
}

.subscribe-popup,
.subscribe-popup-overlay {
    display: none;
}
#footer {
    padding: 21px 0;
    color: #fff;
    background-color: #0d283d;
    text-align: center;
}

.search-results .field-type-entityreference {
    margin-bottom: 50px;
}

.field-type-entityreference,
.field-name-field-ranking,
.node-bill,
.rank-legend-items,
.field-name-ranking-legend {
    display: flex;
}
.field-type-entityreference {
    margin: 20px 0;
}
.rank-legend-description {
    flex: 0 0 calc(var(--first-column-width) + var(--second-column-width));
    line-height: 22px;
}
.field-name-bill-name {
    flex: 0 0 calc(var(--first-column-width));
    font-weight: bold;
    font-size: 22px;
    color: #fff;
    border-radius: 5px;
    text-align: center;
    background-color: #999999;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    display: flex;
    padding: 16px 5px;
    box-sizing: border-box;
    width: 150px;
}
.node-bill {
    align-items: center;
}
.node-bill.vote-1 .field-name-bill-name,
.node-bill.vote-4 .field-name-bill-name {
    background-color: #38bb4a;
}
.node-bill.vote-3 .field-name-bill-name,
.node-bill.vote-5 .field-name-bill-name {
    background-color: #f3734e;
}
.field-name-bill-name:hover {
    opacity: .8;
}
.field-name-field-vote-recommendation {
    flex: 0 0 calc(var(--second-column-width));
    box-sizing: border-box;
    padding: 4px 15px 2px;
    font-weight: 900;
    font-size: 41px;
    line-height: 1.05;
    text-transform: uppercase;
}
.field-name-field-vote-recommendation small {
    display: block;
    font-size: 19px;
}
.field-name-field-vote-recommendation .neutral {
    font-size: 27px;
    display: block;
}
.field-type-rank,
.rank-legend-items li {
    flex: 0 0 14.2857%;
    max-width: 14.2857%;
    box-sizing: border-box;
    padding: 0 5px;
}
.rank-legend-items,
.field-name-field-ranking {
    flex: 0 0 calc(var(--container-width) - var(--first-column-width) - var(--second-column-width));
}
.rank-legend-items {
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
    font-size: 14px;
    align-items: center;
}
.field-name-field-ranking li {
    overflow: hidden;
    padding: 27px 0;
}

.field-name-field-rank-economic-freedom {
    background: url(../img/mca/icons/icon-free-markets.png) no-repeat center center;
}
.field-name-field-rank-responsibility  {
    background: url(../img/mca/icons/icon-personal-responsibility.png) no-repeat center center;
}
.field-name-field-rank-individual-liberty {
    background: url(../img/mca/icons/icon-personal-liberty.png) no-repeat center center;
}
.field-name-field-rank-limited-government {
    background: url(../img/mca/icons/icon-goverment.png) no-repeat center center;
}
.field-name-field-rank-fiscal {
    background: url(../img/mca/icons/icon-fiscal.png) no-repeat center center;
}
.field-name-field-rank-constitution {
    background: url(../img/mca/icons/icon-constitutional.png) no-repeat center center;
}
.field-name-field-rank-education {
    background: url(../img/mca/icons/icon-educational.png) no-repeat center center;
}

.field-name-field-rank-economic-freedom.field-value-0 {
    background-image: url(../img/mca/icons/icon-free-markets-0.png);
}
.field-name-field-rank-responsibility.field-value-0  {
    background-image: url(../img/mca/icons/icon-personal-responsibility-0.png);
}
.field-name-field-rank-individual-liberty.field-value-0 {
    background-image: url(../img/mca/icons/icon-personal-liberty-0.png);
}
.field-name-field-rank-limited-government.field-value-0 {
    background-image: url(../img/mca/icons/icon-goverment-0.png);
}
.field-name-field-rank-fiscal.field-value-0 {
    background-image: url(../img/mca/icons/icon-fiscal-0.png);
}
.field-name-field-rank-constitution.field-value-0 {
    background-image: url(../img/mca/icons/icon-constitutional-0.png);
}
.field-name-field-rank-education.field-value-0 {
    background-image: url(../img/mca/icons/icon-educational-0.png);
}

.field-name-field-rank-economic-freedom.field-value-2 {
    background-image: url(../img/mca/icons/icon-free-markets-2.png);
}
.field-name-field-rank-responsibility.field-value-2  {
    background-image: url(../img/mca/icons/icon-personal-responsibility-2.png);
}
.field-name-field-rank-individual-liberty.field-value-2 {
    background-image: url(../img/mca/icons/icon-personal-liberty-2.png);
}
.field-name-field-rank-limited-government.field-value-2 {
    background-image: url(../img/mca/icons/icon-goverment-2.png);
}
.field-name-field-rank-fiscal.field-value-2 {
    background-image: url(../img/mca/icons/icon-fiscal-2.png);
}
.field-name-field-rank-constitution.field-value-2 {
    background-image: url(../img/mca/icons/icon-constitutional-2.png);
}
.field-name-field-rank-education.field-value-2 {
    background-image: url(../img/mca/icons/icon-educational-2.png);
}

.view-mode-ranking.vote-1 {
    color: #38bb4a;
}
.view-mode-ranking.vote-2 {
    color: #999999;
}
.view-mode-ranking.vote-3 {
    color: #f3734e;
}
.view-mode-ranking.vote-4 {
    color: #38bb4a;
}
.view-mode-ranking.vote-5 {
    color: #f3734e;
}

.b-title {
    margin: 0.5em 0 .22em;
}
.session-box {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 39px;
}
.bill-link {
    text-transform: uppercase;
    font-size: 14px;
    color: #f3734e;
    text-decoration: none;
    font-weight: bold;
}
.bill-link:hover {
    color: #fff;
    opacity: .8;
    text-decoration: underline;
}
.rank-legend-description h4 {
    font-weight: bold;
    font-size: 22px;
    max-width: 250px;
}
.contact-box {
    float: right;
    margin: 0 20px 40px 40px;
    width: 380px;
    padding: 20px;
    background-color: #f0f0f0;
    color: #0d283d;
    line-height: 1.2;
}
.contact-box h4:first-child {
    margin-top: 1em;
}
.contact-box h4 {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
    margin: 1.5em 0 5px;
}
.contact-box a {
    color: #0d283d;
    text-decoration: underline;
}
.contact-box a:hover {
    text-decoration: none;
}
.contact-box .contact-detail {
    word-break: break-word;
}
.contact-name {
    font-weight: bold;
    font-size: 22px;
    margin: 11px 0 28px;
}
.official-web-page {
    margin-top: 1.5em;
}
.bill-name {
    color: #0d283d;
    line-height: 1.2;
}
.bill-section-title {
    font-weight: bold;
    font-size: 22px;
    margin: 2em 0 20px;
}
.author-block {
    display: inline-block;
    white-space: nowrap;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 15px;
    background-color: #0d283d;
    margin: 0 10px 10px 0;
    color: #fff;
}

.rank-label {
    display: none;
}
.rank-value {
    display: none;
}

/* Styles for search form in .header-banner */
input[type="text"].form-control {
    border-radius: 50px;
    border: 1px solid #0d283d;
    padding: 7px 25px; 
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #1d3557;
    text-transform: uppercase;
    transition: all 0.3s ease;
    height: 35px;
    cursor: text; 
    width: 100%;
    box-sizing: border-box;
    background-color: #fff;
    background-clip: padding-box;
    margin-bottom: 10px; 
}

input[type="text"].form-control::placeholder {
    text-transform: none;
}

input[type="text"].form-control:hover {
    border-color: #ff6b35;
}

input[type="text"].form-control:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.header-banner .bills.form .button {
    background-color: #ff6b35;    
}

.header-banner .bills.form .button:hover {
    background-color: #0d283d; 
}

.header-banner .bills.form fieldset {
    display: flex;
}

.header-banner .bills.form fieldset > div,
.header-banner .bills.form .button {
    display: block; 
    margin-right: 10px; 
}

.header-banner .bills.form fieldset > div.input.text {
    width: 320px;
}
.header-banner .bills.form fieldset > div.input.select {
    width: 250px;
}

.header-banner .bills.form .button {
   margin-right: 0; 
}


@media screen and (max-width: 1299px) {
    html, body {
        --container-width: 960px;
    }
}

@media screen and (max-width: 999px) {
    html, body {
        --container-width: calc(100vw - 20px);
        --first-column-width: 100%;
    }
    .field-name-ranking-legend,
    .node-bill {
        flex-wrap: wrap;
    }
    .node-companion-bill {
        max-width: 150px;
    }
    .rank-legend-description h4 {
        max-width: none;
    }
    .field-name-ranking-legend {
        position: sticky;
        top: -20px;
        background-color: #fff;
        z-index: 5;
    }
    .rank-legend-items, 
    .field-name-field-ranking {
        flex: 0 0 calc(var(--container-width) - var(--second-column-width));
        max-width: calc(var(--container-width) - var(--second-column-width));
    }
    .rank-legend-description {
        text-align: center;
        flex: 0 0 calc(var(--first-column-width));
    }
    .rank-legend-items {
        margin-left: var(--second-column-width);
    }
    .field-type-entityreference {
        margin: 10px 0 30px;
    }
}

@media screen and (max-width: 999px) {
    .rank-legend-items {
        font-size: 11px;
    }
    .contact-box {
        float: none;
        width: auto;
        margin-left: auto;
        margin-right: auto;
        max-width: 500px;
        width: 500px;
        order: 5;
        margin-top: 50px;
    }
    .bill-main {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

@media screen and (max-width: 767px) {
    html, body {
        --second-column-width: 100%;
        --first-column-width: 100%;
    }
    .header-filters,
    .header-filters-form {
        display: block;
    }
    .header-banner .row {
        display: block;
    }
    h1 {
        font-size: 40px;
    }
    h2, 
    .fr-title-date {
        font-size: 30px;
    }
    .header-banner {
        padding: 20px 0;
        text-align: center;
    }
    .header-banner select {
        max-width: 250px;
        width: 250px!important;
        display: block;
        margin: 0 auto 5px;
    }
    .header-banner .row .col:last-child {
        margin-top: 20px;
        justify-content: center;
    }
    .field-name-field-vote-recommendation small {
        display: inline;
    }
    .field-name-field-vote-recommendation {
        text-align: center;
    }
    .field-name-field-vote-recommendation .neutral br,
    .field-name-field-vote-recommendation small br {
        display: none;
    }
    .rank-label {
        display: block;
        width: 50%;
        text-align: right;
        font-weight: 600;
        color: #999999;
    }
    .field-value-0 > .rank-label {
        color: #f3734e;
    }
    .field-value-2 > .rank-label {
        color: #38bb4a;
    }
    .rank-legend-items,
    .rank-legend-description {
        display: none;
    }
    .field-name-field-ranking {
        display: flex;
    }
    .node-bill,
    .field-name-field-ranking {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .field-name-field-ranking {
        flex-wrap: wrap;
    }
    .field-name-field-ranking li {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 10px 0;
    }
    .field-name-field-ranking li {
        background-position: calc(50% + 50px) 50%;
        background-size: auto 40px;
    }
    .field-type-entityreference {
        margin-bottom: 40px;
    }
    .contact-box {
        float: none;
        width: auto;
        margin-left: auto;
        margin-right: auto;
        width: auto;
        order: 5;
        margin-top: 50px;
    }
    .header-banner .bills.form fieldset {
        display: block;
    }
    .header-banner .bills.form fieldset > div.input.text,
    .header-banner .bills.form fieldset > div.input.select  {
        width: 300px;
        margin: 0 auto;
    }
    .header-banner .bills.form fieldset > div.input.select  select {
        width: 100%!important;
        max-width: 100%;
    }
    .header-banner .bills.form .button {
        margin: 4px auto 0;
    }
}

.subscribe-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 40, 61, 0.8);
    z-index: 9998;
    display: none;
}

.subscribe-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 10px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
    box-sizing: border-box;
}

.subscribe-popup h1 {
    color: #0d283d;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.subscribe-popup p {
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

.popup-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #0d283d;
    margin-bottom: 5px;
}

.popup-form input[type="text"],
.popup-form input[type="email"] {
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid #ddd;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
.popup-form input[type="text"]:focus,
.popup-form input[type="email"]:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.popup-form input[type="submit"] {
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    align-self: center;
}

.popup-form input[type="submit"]:hover {
    background-color: #e55a2a;
}

.popup-form .thanks {
    text-align: center;
    font-weight: 600;
    color: #ff6b35;
    font-size: 18px;
    padding: 20px;
}

#cboxClose {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
}

#cboxClose:before, #cboxClose:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #0d283d;
    top: 50%;
    left: 50%;
}

#cboxClose:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#cboxClose:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#cboxClose:hover:before, #cboxClose:hover:after {
    background-color: #ff6b35;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1000;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #0d283d;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        padding: 80px 20px 20px;
        z-index: 999;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        gap: 15px;
        overflow-y: auto;
    }
    
    .header-menu.active {
        right: 0;
    }
    
    .header-menu a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(13, 40, 61, 0.1);
    }
    
    .header-menu a.toggle-search {
        display: none;
    }
    
    .header-menu #search-form-container::before {
        content: 'Search';
        display: block;
        margin: 0 0 10px;
    }

    .header-menu #search-form-container {
        position: static;
        width: 100%;
        background-color: transparent;
        padding: 15px 0;
        box-shadow: none;
        display: block !important;
        margin-top: -10px;
    }
    
    .header-menu #search-form-container .search-form-fields {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .header-menu #search-form-container input,
    .header-menu #search-form-container select {
        width: 100%;
        margin-bottom: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .header-menu #search-form-container button {
        width: 100%;
        margin-bottom: 5px;
        background-color: #ff6b35;
        border-color: #ff6b35;
        text-transform: uppercase;
        font-weight: 600;
        padding: 8px 15px;
    }
    
    .header-menu #search-form-container button:hover {
        background-color: #0d283d;
        border-color: #0d283d;
    }
    
    #header > .inner > #search-form-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 998;
        box-sizing: border-box;
    }

    .bill-name {
        margin: 5px 0 0;
    }
}