/*!
 * Senate Democratic Caucus
 * Global Mobile Dropdown Stylesheet
 */


/* News Carousel 
*****************************/
.hidden {
  visibility:hidden;
  padding-right:10px;
}

.mobile-dropdown {
  label {
    display: none;
  }
  .select-container {
    display: flex;
    align-items: center;
    position:relative;
    color: var(--dark-color);
    width: 100%;
    margin: 20px auto 40px;
    border: var(--border);
    cursor:pointer;
  }
  .select {
    position: relative;
    width: 100%;
    padding: 20px;
    &:active, 
    &.active {
      background-color:#eee;
    }
  }
  #downarrow:after {
    content: '\2193';
    position: absolute;
    width: 0;
    height: 0;
    top: 0;
    right: 40px;
    color: var(--accent-color);
    font-size: 4rem;
    min-height: 60px !important;
  }
  .options {
    display:none;
    position:absolute;
    top:100%;
    left: 0;
    right: 0;
    background-color: var(--light-color);
    padding-left: 0px;
    list-style:none;
    border: var(--border);
    box-shadow:0 1px 2px rgba(0, 0, 0, 0);
    z-index:999;
    & li {
      padding: 12px 20px;
      &:first-child {
        display: none;
      }
      &:hover {
        background: var(--accent-color);
        color: var(--light-color);
      }
    }
  }
}

#mobile-news, #mobile-leg,
#mobile-resources {
    padding: 30px;
    width: 100%;
    min-height: 60px !important;
    border: 2px solid var(--primary-color);
}


.mobile-news-dropdown select#mobile-news, .mobile-leg-dropdown select#mobile-leg, 
.mobile-resources-dropdown select#mobile-resources {
    font-family: var(--subhead-font);
    font-size: 18px;
    color: var(--primary-color);
    font-weight: bold;
}

.mobile-news-dropdown, .mobile-leg-dropdown, .mobile-resources-dropdown {
   margin-bottom: 40px;
}

/* end arrow code */

@media (min-width:768px) {

  .mobile-news-dropdown, .mobile-leg-dropdown,
  .mobile-resources-dropdown {
      display: none;
  }

}


/* Mobile Drop Down Code V2 */
/* ---------- Base ---------- */
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px; width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* Hidden by default (desktop/tablet) */
.mobile-only { display: none; }

/* ---------- Mobile styles ---------- */
@media (max-width: 768px) {
  .mobile-only { 
    display: block;
    margin-bottom: 20px;
   }

  .news-filter {
    position: relative;
    width: 100%;
  }

  .news-filter__select {
    /* layout */
    width: 100%;
    box-sizing: border-box;
    padding: 14px 48px 14px 20px; /* room for the arrow on the right */
    /* look to match screenshot */
    border: 1px solid #d9e0e6;
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    color: #0d2235;               /* dark navy-like text */
    /* remove native arrow (we’ll add our own) */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
  }

  /* custom lime arrow on the right */
  #news-filter-wrap::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    /* inline SVG: down arrow, fill #89cd00 */
    background-image: url('data:image/svg+xml;utf8,\<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">\<path d="M12 5L12 19M12 19L18 13M12 19L6 13" stroke="%2389cd00" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>\</svg>');
    background-repeat: no-repeat;
    background-size: 18px 18px;
  }

  /* focus & active feedback */
  .news-filter__select:focus {
    border-color: #9ad800;
    box-shadow: 0 0 0 2px rgba(154, 216, 0, 0.2);
  }
}