/* Fonts and Typography */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  src: url('../fonts/Inter-roman.otf') format('opentype');
  font-weight: 100 900;
  /* https://rsms.me/inter/ */
}


/*---------------------------------------------------------*/

body, input, select, textarea, button {
  font-family: var(--sans);
  font-size: var(--txt-base);
  line-height: 1.5;
  font-weight: 400;
}

b,strong {
  font-weight: 700;
}

h1,h2,h3,h4,h5,h6 { 
  font-weight: 600; 
  line-height: 1.3;
}

h5 {  font-size:var(--txt-base); }
h4 {  font-size:var(--txt-medium); }
h3 {  font-size:var(--txt-large); }
h2 {  font-size:var(--txt-xlarge); }

/* Buttons */

  .btn,
  .wp-block-button__link {
    background: var(--red);
    color:#fff;
    border:solid 2px transparent;
    padding:0 2em;
    border-radius:4px;
    font-weight: 500;
    transition: 0.5s;
    min-height:var(--input-height);
    text-align:center;
    white-space:nowrap;
    overflow:hidden;
    text-overflow: ellipsis;
    text-decoration:none;
    display:inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-arrow:after {
    content:'\e905';
    font-family: 'ncicons';
    font-weight: 400;
    font-size: 0.8em;
    margin-left: 0.5em;
    position: relative;
    transform: translate(0, 0);
    transition: 0.5s
  }

  .btn:hover:after {
    transform: translate(5px, 0);
  }
  
  .btn:hover,
  .btn:focus,
  .wp-block-button__link:hover,
  .wp-block-button__link:focus,
  .is-style-outline .wp-block-button__link:hover,
  .is-style-outline .wp-block-button__link:focus {
    background: #000;
    color:#fff;
    border:solid 2px #000;
  }
  
  .btn-outline,
  .is-style-outline .wp-block-button__link{
    background:transparent;
    border:solid 2px;
    color:#000;
  }
  
  .btn:active,
  .wp-block-button__link:active {
    position:relative;
    top:2px;
  }

  .btn-disabled {
    opacity:0.5;
    pointer-events:none;
  }
  
  .btn + .btn { margin-left:0.75em; }

  @media(max-width:640px){
    .btn { width:100%; }
    .btn + .btn { margin-left:0; margin-top:0.75em; }
  }

  /* Search Form styles */

  
 .ncsearchform {
  --align-self:center;
  --min-height: 2.5em;
  --text-indent: 1em;
  --radius: 5px;
  --min-width:150px;
  --text-size:1em;
  --text-color:#000;
  --bg-color:#fff;
  --border: solid 1px #CACDCE;
  --button-width: 2.5em;
  --button-bg-color:none;
  --button-bg-color-hover:none;
  --button-color:#000;
  --button-color-hover:#000;
  --focus-text-color:#000;
  --focus-border:solid 1px #000;
  --focus-bg-color:#fff;
  --focus-dropshadow: 0 1px 0.3rem rgba(0,0,0,0.3);
}



.ncsearchform {
  flex-grow: 1;
  min-width:var(--min-width);
  align-self:var(--align-self);
}

.ncsearchform_contain {
  display: flex;
  position:relative;
  align-items: center;
  flex-grow: 1;
}

.ncsearchform_input {
  background: var(--bg-color);
  text-indent: var(--text-indent);
  border: var(--border);
  border-radius: var(--radius);
  width: 100%;
  font-size: var(--text-size);
  min-height:var(--min-height);
  padding-right:var(--button-width);
  outline: none;
  transition: 0.3s;
  color:var(--text-color);
}

.ncsearchform_input,
.ncsearchform_input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.ncsearchform_input:focus {
  border:var(--focus-border);
  background: var(--focus-bg-color);
  box-shadow: var(--focus-dropshadow);
  color:var(--focus-text-color);
}

.ncsearchform_button {
  cursor: pointer;
  background: var(--button-bg-color);
  border: none;
  position: absolute;
  right: 0;
  height:100%;
  font-size: 1em;
  border-radius:var(--radius);
  border-top-left-radius:0;
  border-bottom-left-radius:0;
  width: var(--button-width);
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:0.3s;
}

.ncsearchform_icon {
  color: var(--button-color);
  display: block;
  transition: 0.3s;
}

.ncsearchform_button:hover {
  background: var(--button-bg-color-hover);
}

.ncsearchform_button:hover .ncsearchform_icon {
  color: var(--button-color-hover);
}

/* Modifier 
Stretch
*/

.ncsearchform-stretch {
  align-self:stretch;
  position:relative;
  display: flex;
}
.ncsearchform-stretch .ncsearchform_contain {
  align-items: stretch;
}

.ncsearchform-stretch .ncsearchform_input {
  align-items: stretch;
}

.ncsearchform-stretch .ncsearchform_input,
.ncsearchform-stretch .ncsearchform_button {
  border-radius:0;
}


/* Block Styles made standard */

.ul-block-featured {

  h2 {
    font-size: var(--txt-xlarge);
    padding-bottom: 1rem;
    border-bottom: solid 1px #ccc;
    margin-bottom: 1em;
    }
    
    .ncard {
    --border-radius: 0;
    --card-border: solid 1px #ccc;
    --card-border-hover: solid 1px #000;
    --text-padding: 1.5rem;
    max-width: 500px;
    margin-inline: auto;
    }
    
    .ncard_text {
    min-height: 210px;
    }
    
    .ncard_desc {
    flex-grow: 1;
    }
    
    .ncard_rmore {
    display:none;
    }
    
    .ncard_title {
    font-size: var(--txt-medium);
    font-weight: 600;
    margin-bottom: 1em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    }
    
    .ncard_desc {
    font-size: var(--txt-small);
    }
    
    .featured_button {
    text-align: center;
    padding-top:3em;
    }
    
    @media(max-width:800px){
        .ncard_text {
            min-height: 0;
        }
    }

}

.ul-block-news {

  h2 {
    font-size: var(--txt-xlarge);
    }
    
    h2 + p {
    max-width: 900px;
    margin-bottom: 3rem
    }
    
    .ncard {
    --border-radius: 0;
    --card-border: solid 1px #ccc;
    --card-border-hover: solid 1px #000;
    --text-padding: 1.5rem;
    max-width: 500px;
    margin-inline: auto;
    }
    
    .ncard_date {
    order: -1;
    display: flex;
    justify-content: space-between;
    font-size: var(--txt-xsmall);
    margin-bottom:1em;
    text-transform: uppercase;
    color: #666
    }
    
    .ncard_date:before {
    content: 'News Story';
    font-weight: bold;
    color: var(--red);
    }
    
    .ncard_text {
    min-height: 210px;
    justify-content: start;
    }
    
    .ncard_desc {
    flex-grow: 1;
    }
    
    .ncard_rmore {
    display:none;
    }
    
    .ncard_title {
    font-size: var(--txt-medium);
    font-weight: 400;
    margin-bottom: 1em;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    }
    
    .featured_button {
    text-align: center;
    padding-top:3em;
    }
    
    @media(max-width:800px){
    .ncard_text {
    min-height: 0;
    }
    }

}