
:root {
  --nav-burger : url(../svg/nav-burger.svg;);
  --nav-close  : url(../svg/nav-burger-close.svg;);
}


/* Navigation Mobile and General Styles
----------------------------------------------------------------------------------- */
a.burger-button {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  background-image: var(--nav-burger);
}
  a.burger-button.active {
    background-image: var(--nav-close);
  }



nav.global {
  display: flex;
	max-height: 0;
	overflow: hidden;
  transition: all .5s;
  
}
	nav.global.active {
		max-height: 30rem;
	}
  nav.global > ul {
    flex-direction: column;
    flex-basis: 100%;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
  }
    nav.global ul ul {
      display: none;
    }
  nav.global a {
    display: block;
    padding: .5rem 0;
    border-bottom: 1px dotted #999;
  }
    /* menu extra entry */
    nav.global a span {
      margin-right: .35rem;
    }
    nav.global a:hover {
      text-decoration: none;
    }
    nav.global a.current,
    nav.global ul li.current-menu-ancestor > a,
    nav.global ul li.current-menu-item > a {
      color: var(--eu-yellow);
      font-weight: 700;
    }


/* Navigation Desktop
----------------------------------------------------------------------------------------------- */
@media (min-width: 720px) {
  a.burger-button {display: none;}
  
	nav.global,
	nav.global.active {
    max-height: none;
		overflow: visible;
		display: flex;
		justify-content: flex-end;
	}
    nav.global ul {
      display: flex;
      flex-direction: row;
      margin: 1rem 0 0 0;
      width: auto;
      font-size: 1.15rem;
      font-weight: 700;
      text-transform: uppercase;
      line-height: 1.1;
    }
      nav.global ul li {
        position: relative;
      }
        nav.global ul a {
          display: block;
          padding: 0 0 0 .5rem;
          border-bottom: none;
          color: var(--eu-blue);
          /*text-shadow: 2px 2px .1rem rgba(0,0,0,.5);*/
        }
        nav.global ul a:hover {
          color: var(--eu-yellow);
        }  
          /* menu extra entry */
          nav.global a span {
            margin: 0 0 1px 1px;
            display: block;
            font-size: .7rem;
          }
  
}

@media (min-width: 1024px) {
  nav.global ul {
    font-size: 1.25rem;
  }
    nav.global ul a {
      padding: 0 0 0 .75rem;
    } 
}

@media (min-width: 1180px) {
  nav.global ul {
    font-size: 1.4rem;
  }
    nav.global ul a {
      padding: 0 0 0 1rem;
    } 
}


/* icon Menu
-------------------------------------------------------------------------------------------------- */
nav.iconmenu ul {
	display: flex;
  justify-content: space-between;
	margin: 1rem 0 0 0;
  padding: 0;
	list-style: none;
  
}
  nav.iconmenu a {
    display: inline-block;
    color: #949C9E;
    font-size: .95rem;
  }
    nav.iconmenu a i {
      font-size: 1.35rem;
    }
    nav.iconmenu a:hover {
      text-decoration: none;
      color: var(--eu-blue);
    }

    nav.iconmenu li.current-menu-item a,
    nav.iconmenu li.search-active a,
    body.single-post nav.iconmenu li.current_page_parent a,
    body.single-membersonly nav.iconmenu li#menu-item-40 a,
    body.single-dpi_events nav.iconmenu li#menu-item-825 a {
      color: var(--eu-blue);
    }


@media(min-width: 720px) {
  nav.iconmenu ul {
    margin: 0;
  }
  nav.iconmenu a {
    margin: 0 0 0 1rem;
  }
  nav.iconmenu li.nav-icon-social a {
    margin: 0 0 0 .5rem;
  }
}


/* Images
---------------------------------------------------------------------------------------- */
img.alignleft,
img.alignright,
img.aligncenter,
img.alignnone {
  display: block;
  margin: 1rem 0;
  width: 100%;
}
/*  img.alignleft:first-child,
  img.alignright:first-child,
  img.aligncenter:first-child,
  img.alignnone:first-child {
    margin: 0 0 1rem 0;
  }*/

@media(min-width: 480px) {
  img.alignleft {
    float: left;
    width: 33.33333%;
    margin: 0 1.5rem 1.5rem 0;
  }
  img.alignright {
    float: right;
    width: 33.33333%;
    margin: 0 0 1.5rem 1.5rem;
  }
  img.aligncenter {
    display: block;
    margin: 1rem auto;
  }
  img.alignnone {
    display: block;
    margin: 1rem 0;
  }
}


/* Gallery Shortcode
------------------------------------------------------------------------------ */
.wp-gallery {
	clear: both;
  margin: 1rem 0;
	display: flex;
	flex-wrap: wrap;
}
	.wp-gallery img {
		display: block;
		width: 100%;
	}
	.wp-gallery figure {
		flex: 0 1 100%;
    margin: 0 0 1.5rem 0;
	}
  .wp-gallery figcaption {
    padding: 1rem 0 0 0;
    font-size: .9rem;
  }
		
	@media(min-width: 480px) {
    
    .wp-gallery figure {
			flex: 0 1 33.33333%;
      padding: 0 1rem 0 0;
      overflow: hidden;
		}
      .wp-gallery.gallery-columns-2 figure {
        flex: 0 1 50%;
      }
      .wp-gallery.gallery-columns-3 figure {
        flex: 0 1 33.33333%;
      }
      .wp-gallery.gallery-columns-4 figure {
        flex: 0 1 25%;
      }
    .wp-gallery figure img {
			border-radius: .25rem;
		}  

  }



/* Forms
---------------------------------------------------------------------------------------- */
.global-search {
  display: flex;
}
  .global-search input[type=text] {
    margin-right: .5rem;
  }

input[type=submit] {
  padding: .5rem 1rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .1rem;
  font-size: .9rem;
  border: none;
  background: #CBCFD0;
  cursor: pointer;
}
  input[type=submit]:hover {
    background-color: #CBCFD0;
  }



fieldset {
	margin: 1rem 0;
	padding: 1rem;
	border: 1px solid #ededed;
}

dl.cform {
	margin: 0;
	padding: 0;
}
	dl.cform dt {
		margin: 1rem 0 0 0;
		padding: 0;
	}
	dl.cform dd {
		margin: .5rem 0 0 0;
		padding: 0;
	}
label {
	display: block;
	font-size: .9rem;
}

input[type=text],
input[type=email],
input[type=password],
textarea {
	width: 100%;
	padding: .5rem;
	color: #333;
	background: #f5f5f5;
	border: 3px solid #D9DCDD;
}

textarea {
	min-height: 14em;
}

.screen-reader-response {
	display: none;
}
.wpcf7-response-output {
  font-weight: bold;
  color: var(--eu-blue);
}

	.wpcf7-not-valid-tip {
		margin-top: .3rem;
    display: block;
		color: var(--eu-blue);
	}
	input[type=text].wpcf7-not-valid,
	input[type=email].wpcf7-not-valid,
	input[type=password].wpcf7-not-valid,
	textarea.wpcf7-not-valid {
		border: 3px solid #003C72;
	}

.wpcf7-mail-sent-ok {
	background: #ECB304;
	padding: .5em;
	border-radius: 3px; /* default */
}


/* cf7 loading dots
------------------------------------------------------- */
.wpcf7 .wpcf7-spinner {
	display: none;
}
  .wpcf7 form.submitting .wpcf7-spinner {
    display: block;
    margin: 1rem 0 0 0;
    width: 100%;
    height: .75rem;
    background-image: url(../svg/loading-dots.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
  }


/* Mailchimp Newsletter
---------------------------------------------------------------------------------------- */
.newsletter-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 .5rem rgba(0,0,0,.2);
}
  .newsletter-container header {
    background-color: var(--eu-yellow);
    padding: .5rem 1.5rem;
  }
    .newsletter-container header h2 {
      color: #fff;
    }
  .newsletter-container .inner {
    padding: .5rem 1.5rem;
    background-color: #ffF;
  }



/* Pagination (Flexbox)
-------------------------------------------------------------------------------------------------- */
.wp-paginate {
	display: flex;
  flex-wrap: wrap;
	margin: 1em 0;
	padding: 0;
	list-style: none;
  font-size: 1rem;
}
  .wp-paginate li a,
  .wp-paginate li span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    margin: 0 .5rem .5rem 0;
    text-decoration: none;
    background: #ededed;
    border-radius: 50%;
    font-weight: 600;
  }
    .wp-paginate a:hover,
    .wp-paginate a:active {
      background: var(--eu-yellow);
      color: #fff;
    }
    .wp-paginate .current {
      color: #fff;
      background: var(--eu-yellow);
    }
    .wp-paginate .gap {
      margin-right: 4px;
    }


/*!
 * tabbyjs v12.0.3
 * Lightweight, accessible vanilla JS toggle tabs.
 * (c) 2019 Chris Ferdinandi
 * MIT License
 * http://github.com/cferdinandi/tabby
 */

[role="tablist"] {
  border-bottom: 1px solid lightgray;
  list-style: none;
  margin: 0;
  padding: 0;
}

[role="tablist"] * {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

@media (min-width: 30em) {
  [role="tablist"] li {
    display: inline-block;
  }
}

[role="tab"] {
  border: 1px solid transparent;
  border-top-color: lightgray;
  display: block;
  padding: 0.5em 1em;
  text-decoration: none;
}

@media (min-width: 30em) {
  [role="tab"] {
    border-top-color: transparent;
    border-top-left-radius: 0.5em;
    border-top-right-radius: 0.5em;
    display: inline-block;
    margin-bottom: -1px;
  }
}

[role="tab"][aria-selected="true"] {
  background-color: lightgray;
}

@media (min-width: 30em) {
  [role="tab"][aria-selected="true"] {
    background-color: #fff;
    border: 1px solid lightgray;
    border-bottom-color: #ffffff;
  }
}

[role="tab"]:hover:not([aria-selected="true"]) {
  background-color: #f7f7f7;
}

@media (min-width: 30em) {
  [role="tab"]:hover:not([aria-selected="true"]) {
    border: 1px solid lightgray;
  }
}

[hidden] {
  display: none;
}


