/* Additions for the self-hosted site. The three theme stylesheets are the
   compiled NationBuilder theme, unchanged apart from image paths. */

/* Issues dropdown: mobile (full-screen menu) */
.nav-menu .dropdown-menu {
  position: static;
  float: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  min-width: 0;
  text-align: center;
}
.nav-menu .dropdown-toggle { color: #fff; }
.nav-menu .dropdown-toggle::after { display: none; } /* hide Bootstrap's built-in caret */
.nav-menu .dropdown-item { color: #fff; padding: 0; white-space: normal; background: transparent; }
.nav-menu .dropdown-item:hover,
.nav-menu .dropdown-item:focus { color: #3FBEAD; background: transparent; }

/* Issues dropdown: desktop. Opens on hover, keyboard focus, or the caret button. */
@media (min-width: 786px) {
  .nav-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0.9rem;
    min-width: 260px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 0.75rem 1rem;
    text-align: left;
    border-radius: 3px;
  }
  .nav-menu .dropdown:hover .dropdown-menu,
  .nav-menu .dropdown:focus-within .dropdown-menu { display: flex; }
  .nav-menu .dropdown-item { color: #1B3768; font-size: 1rem; opacity: 1; font-weight: 600; }
  .nav-menu .dropdown-item:hover,
  .nav-menu .dropdown-item:focus { color: #3FBEAD; }
  .nav-menu .dropdown-toggle { padding: 0.25rem 0.4rem 0.6rem; margin-left: -0.75rem; line-height: 1; }
  .nav-menu .dropdown .nav-link { padding-right: 0.9rem; }
  .nav-menu .dropdown-caret { width: 8px; height: 8px; }
}

/* Contact form honeypot: hidden from people, visible to bots */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Form status messages */
.form-errors:not(:empty) { margin-bottom: 1rem; padding: 0.75rem 1rem; border-radius: 3px; background: #EAF6FC; color: #1B3768; font-weight: 600; }
.form-errors.is-error:not(:empty) { background: #FCE8E6; color: #8A1C12; }

/* Donate hand-off (replaces the NationBuilder payment form) */
.donate-handoff p { color: #EAF6FC !important; }
.donate-handoff .donate-btn { display: block; width: 100%; padding: 15px 0; font-size: 20px; font-weight: 700; margin: 20px 0; }
.donate-handoff .donate-note { font-size: 14px; }

/* Issue pages */
.issue-page .pol-land ul li { margin-bottom: 0.5rem; }
.issue-page .issue-back { margin-top: 2rem; }
.issue-page .issue-back a { color: #1B3768; text-decoration: underline; }
.issue-placeholder { background: #fff; border-left: 6px solid #3FBEAD; padding: 1.5rem; border-radius: 3px; color: #1B3768; }

/* Donate: the NationBuilder payment form used to make this section tall enough
   for the photo in the quote panel below; keep that spacing without the form. */
@media (min-width: 768px) {
  .page-type-donation-v2 .two-col__column--left { padding-bottom: 260px; }
}
@media (min-width: 1200px) {
  .page-type-donation-v2 .two-col__column--left { padding-bottom: 320px; }
}

/* /join: Brevo's hosted signup form (iframe) */
.join-embed { padding: 40px 0; }
.join-embed iframe { width: 540px; height: 900px; border: 0; }
/* Narrow screens stack the fields taller; leave room for reCAPTCHA, the button
   and Brevo's success message. */
@media (max-width: 767px) { .join-embed iframe { height: 1080px; } }

/* Privacy policy links next to forms and in the footer */
.privacy-link, footer .ft-br a { color: inherit; text-decoration: underline; }
/* Privacy page body */
.privacy h2 { margin-top: 2rem; }
.privacy a { color: #1B3768; text-decoration: underline; }
.privacy ul { margin-bottom: 1rem; }
