/*
This is the very first loaded CSS file. The root reset / normalized CSS.
*/

/* --------- Reset and Normalize --------- */

html {
    background-color: #fff;
    scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }
}

html, body, div, figure, form, canvas, summary, button, form > ul {
    margin: 0;
    padding: 0;
}

article, aside, details, figcaption, figure, footer, header, nav, main {
     display:block;
}

*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

address {
    font-style: normal;
}

pre { 
    overflow-x: auto;
}

sub, sup {
    font-size: 0.5em;
    line-height: 0;
}

sub {
    vertical-align: baseline;
}

abbr[title], dfn[title] {
    cursor: help;
}

mark {
    background-color: #ff9;
}

ins {
    text-decoration: none;
    border-bottom: dashed 1px;
}

del, strike {
    text-decoration: line-through;
}

abbr {
    border-bottom: dotted 1px;
}


p, table, ol, ul, pre code, blockquote, pre, dl,
h1, h2, h3, h4, h5, h6 {
    margin-bottom:var(--gap);
    margin-top:0;
}

h1, h2, h3, h4, h5, h6, p, li, a, div {
    -ms-word-wrap: break-word;
    word-wrap: break-word;
}

hr {
    border: none;
    border-top: solid 1px;
    clear: both;
    display: block;
    width: 100%;
    height: 0;
}

q:before {
    content: '\201c';
}

q:after {
    content: '\201d';
}

ul, ol {
    padding-left: 1.75em;
}

main li:not([class]) {
    margin-bottom: 0.5rem;
}

main li ul,
main li ol { margin-top:0.5rem; margin-bottom:0 }

dt {
    font-weight: bold;
}

dd {
    margin-left: 1.5em;
}

/* Form Elements */
form {
    margin: 0;
}

button {
    position: relative;
}

input[disabled] {
    cursor: default;
    opacity: 0.5;
}

input[type="image"] {
    border: none;
    background-color: transparent;
    padding: 0;
}

input[type="file"] {
    -webkit-appearance: none;
    margin: 0 0 0.5em 0;
}

input:not(.btn):not([type="submit"]):not([type="search"]), 
select, textarea {
    max-width: 100%;
    margin: 0;
    vertical-align: baseline;
    background-color: var(--gray);
    padding: 0.5em !important;
    border: solid 1px #ddd;
    border-radius: 3px;
    transition: 0.3s;
    min-height:2.5rem;
}

input:not(.btn):not([type="submit"]):not([type="search"]):focus, 
select:focus, textarea:focus {
    border-color: #aaa;
    box-shadow: 0 3px 0.3rem rgba(0,0,0,0.3);
    outline: none;
    background-color: #fff;
}

input[type="file"], input[type="submit"] {
    white-space: pre-wrap;
}

progress, input[type="range"] {
    width: 100%;
}

@supports (--moz-appearance: none) {
    input[type="number"] {
        width: 100%;
    }
}

textarea {
    resize: both !important;
}

fieldset {
    border: solid 1px;
    padding: 1em;
}

/* Placeholder default style */

::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: inherit;
    opacity: 0.7;
}

::-moz-placeholder {
    /* Firefox 19+ */
    color: inherit;
    opacity: 0.7;
}

:-ms-input-placeholder {
    /* IE 10+ */
    color: inherit;
    opacity: 0.7;
}

:-moz-placeholder {
    /* Firefox 18- */
    color: inherit;
    opacity: 0.7;
}

/* Custom Radio and Checkbox input fields */

/* --------- Form Controls using Fonts --------- */

@font-face {
    font-family: 'ncicon';
    src:
      url('../img/form-icons/fonts/ncicon.ttf') format('truetype'),
      url('../img/form-icons/fonts/ncicon.woff') format('woff'),
      url('../img/form-icons/fonts/ncicon.svg') format('svg');
    font-weight: normal;
    font-style: normal;
  }
  
  [class^="ncicon-"], [class*=" ncicon-"] {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'ncicon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
  
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  .ncicon-checkbox-checked:before {
    content: "\ea52";
  }
  .ncicon-checkbox-unchecked:before {
    content: "\ea53";
  }
  .ncicon-radio-checked:before {
    content: "\ea55";
  }
  .ncicon-radio-unchecked:before {
    content: "\ea56";
  }

.formstyles input[type="radio"], 
.formstyles input[type="checkbox"] {
    position: absolute;
    clip: rect(0,0,0,0);
}

.formstyles input[type="radio"] + label, 
.formstyles input[type="checkbox"] + label {
    padding-left: 0 !important;
    margin-left: 0 !important;
    font-weight: normal !important
}

.formstyles input[type="radio"] + label:before, 
.formstyles input[type="checkbox"] + label:before {
    position:relative;
    margin-right: 1rem;
    left: 3px;
    font-size: 1em;
    line-height: normal;
    font-family: 'ncicon';
}

.formstyles input[type="checkbox"] + label:before { content: '\ea53'; }

.formstyles input[type="checkbox"]:checked + label:before { content: '\ea52'; }

.formstyles input[type="radio"] + label:before { content: '\ea56'; }

.formstyles input[type="radio"]:checked + label:before { content:'\ea55'; }

/* For Gravity Forms */

.gform_wrapper .gfield_checkbox li label, 
.gform_wrapper .gfield_radio li label {
    max-width: 100%
}

body .gform_wrapper span.gform_description {
    width: 100%;
}



/* --------- Utility Classes --------- */

/* Global Contain */

.ncontain {
    max-width: var(--width-max);
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - (var(--gap) * 2));
}

/* Nav group */

.navgroup {
    display:flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

/* Hide labels in gravity forms */

.hidelabels .gfield_label {
    clip: rect(0,0,0,0);
    position: absolute;
    height: 0;
    width: 0;
    display: block;
    overflow: hidden;
}


/* Hide */

.hide {
    display: none !important;
}

.hidetext, .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.ir {
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

/* Clearfix */

.clear:after, .clear:before {
    content: "";
    display: table;
    clear: both;
}

.clear, .clear {
    clear: both;
}

/* List to columns */

.nclist2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px,1fr));
    grid-column-gap: var(--gap,1.5rem);
    grid-row-gap:0.5rem;
  }


/* Typography */

.small {
    font-size: 0.8em;
}

.bold {
    font-weight: bold !important
}

.normal {
    font-weight: normal !important
}

.italic {
    font-style: italic !important
}

.upper, .uppercase {
    text-transform: uppercase;
}

.fullscreen {
    max-width: none;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Turn paragraph into a column */

p.paracolumns2,
p.paracolumns3 {
    column-gap: var(--gap);
    column-width: 220px;
}

p.paracolumns2 { column-count: 2; }
p.paracolumns3 { column-count: 3; }


.nowrap {
    white-space: nowrap;
    word-break: normal !important;
}

.prewrap {
    white-space: pre-wrap;
}

.center {
    text-align: center;
}

/* Ellipsis */

.textcut, .textcut-child > * {
    overflow: hidden;
    text-overflow: ellipsis;
}

.textcut-child > * {
    white-space: nowrap
}

/* Breakout */

@media (max-width: 640px){ 
    /*
    .breakout img{
        position: relative;
        max-width: none!important;
        margin-left: var(--gapn)!important;
        width: calc((var(--gap) * 2) + 100%);
    }
    */
    .breakout {
        max-width:100% !important;
        width:100%  !important;
    }
}


/* Javascript related CSS */

.imagewrap {
    shape-margin: var(--gap,1.5rem);
    shape-image-threshold: 0.5;
    /* This class is used to trigger JS that will add the shape-outside property to wrap text around images */
}

.imagewrap-left {
    float:left;
    margin-right:1em;
}

.imagewrap-right {
    float:right;
    margin-left:1em;
}

.imagewrap-left,
.imagewrap-right {
    max-width:50%;
    margin-bottom:1em;
}

/* Responsive videos loaded in iframe, object, and embed */

.videocontain {
    position: relative;
    padding-bottom: 48.7%;
    padding-top: 2em;
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
}

.videocontain iframe, .videocontain object, .videocontain embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}