/*
This is the very first loaded CSS file. The root reset / normalized CSS.
*/

/* --------- Reset and Normalize --------- */

#wrapper { position: relative; }

html, body, div, figure, form, canvas, summary, button, form > ul {
    margin: 0;
    padding: 0;
}

html { background:#fff; }
body { overflow-x: hidden; }

html { scroll-behavior: smooth; }

@media screen and (prefers-reduced-motion: reduce) {
    html { 
        scroll-behavior: auto 
    }
}


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;
    -webkit-font-smoothing: antialiased;
}

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,
.featuredimage,
.pagebreak_header {
    margin-bottom:var(--gap);
    margin-top:0;
}

table {
    border-collapse:collapse;
    width:100%
}

table td,
table th {
    border:var(--border);
    padding:0.75rem;
}

table th {
    text-align:left;
    font-weight:bold;
    vertical-align: top;
}

/* Typography */

h1, h2, h3, h4, h5, h6, p, li, a, div {
    -ms-word-wrap: break-word;
    word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    position: relative;
    line-height: normal;
}

p + h2,
p + h3,
p + h4,
ul + h2,
ul + h3,
ul + h4,
ol + h2,
ol + h3,
ol + h4 {
    margin-top:calc(var(--gap) * 2 );
}


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-bottom: 0;
    margin-top: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;
}

select {
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23999%22%2F%3E%3C%2Fsvg%3E');
    background-size: 1em;
    background-repeat: no-repeat;
    background-position: right 0.5em center;
    padding-right: 2em !important;
}

input:not(.btn):not([type="submit"]):not([type="search"]), 
select, textarea {
    max-width: 100%;
    margin: 0;
    vertical-align: baseline;
    transition: 0.3s;
    min-height:var(--input-height);
    padding: var(--field-padding);
    border-radius: var(--field-radius);
    background-color: var(--field-bgcolor);
    border: var(--field-border);
}

input:not(.btn):not([type="submit"]):not([type="search"]):focus, 
select:focus, textarea:focus {
    box-shadow: var(--field-shadow-focus);
    background-color: var(--field-bgcolor-focus);
    border: var(--field-border-focus);
}

input[type="file"], input[type="submit"] {
    white-space: pre-wrap;
}

input:focus, 
select:focus, 
textarea:focus {
    outline: none;
}

progress, input[type="range"] {
    width: 100%;
}

@supports (--moz-appearance: none) {
    input[type="number"] {
        width: 100%;
    }
}

textarea {
    resize: both !important;
    padding-top: 0.75em;
    padding-bottom: 0.75em;
}

fieldset {
    border: var(--border);
    padding: 0.75rem;
}

fieldset legend {
    font-weight: bold;
}

/* 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?7dw6w1') format('truetype'),
      url('../img/form-icons/fonts/ncicon.woff?7dw6w1') format('woff'),
      url('../img/form-icons/fonts/ncicon.svg?7dw6w1#ncicon') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: block;
  }
  
  .ncicon {
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'ncicon' !important;
    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-arrow-back:before {
    content: "\e901";
  }
  .ncicon-arrow-forward:before {
    content: "\e902";
  }
  .ncicon-check-square:before {
    content: "\e900";
  }
  .ncicon-checkbox-checked:before {
    content: "\ea52";
  }
  .ncicon-checkbox-unchecked:before {
    content: "\ea53";
  }
  .ncicon-radio-checked:before {
    content: "\ea55";
  }
  .ncicon-radio-unchecked:before {
    content: "\ea56";
  }
  .ncicon-reply:before {
    content: "\e96a";
  }



.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: 0.5rem;
    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));
}

/* 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;
}

.fullscreen {
    max-width: none;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}


/* 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;
    }
}


/* 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%;
}


/* Selection */

::selection {
    background-color: var(--selection-bgcolor);
    color: var(--selection-textcolor);
}

::-moz-selection {
    background-color: var(--selection-bgcolor);
    color: var(--selection-textcolor);
}


/* Internal paging */

.pagebreak_header {
    --ptext-color:#999;
    --pcurrent-color:#000;
}

.pagebreak_header a, .pagebreak_footer a {
    display: inline-block;
}

.pagebreak_header {
    color: var(--ptext-color);
}

.pagebreak_header > a, .pagebreak_header > span:not(.pagebreak_message) {
    color: inherit;
    padding: 0 0.5em;
}

.pagebreak_header > span:not(.pagebreak_message) {
    font-weight: bold;
    cursor: default;
    color: var(--pcurrent-color);
}

.pagebreak_footer {
    margin-bottom:3rem;
}

.pagebreak_footer a:first-of-type {
    margin-right: 0.7rem;
}

.pagebreak_footer a {
    color:var(--link-color, royalblue);
    font-size:1.2em
}

