/* Base component styles (forms, tabs, rich text, embeds), trimmed to what the site uses. */

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background-color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #333;
}

img {
    max-width: 100%;
    vertical-align: middle;
    display: inline-block;
}

.link-block {
    max-width: 100%;
    display: inline-block;
}

.submit-button {
    display: inline-block;
    padding: 9px 15px;
    background-color: #3898EC;
    color: white;
    border: 0;
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
}

input.submit-button {
    -webkit-appearance: button;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    margin-bottom: 10px;
}

h1 {
    font-size: 38px;
    line-height: 44px;
    margin-top: 20px;
}

h2 {
    font-size: 32px;
    line-height: 36px;
    margin-top: 20px;
}

h3 {
    font-size: 24px;
    line-height: 30px;
    margin-top: 20px;
}

h4 {
    font-size: 18px;
    line-height: 24px;
    margin-top: 10px;
}

h5 {
    font-size: 14px;
    line-height: 20px;
    margin-top: 10px;
}

h6 {
    font-size: 12px;
    line-height: 18px;
    margin-top: 10px;
}

p {
    margin-top: 0;
    margin-bottom: 10px;
}

blockquote {
    margin: 0 0 10px 0;
    padding: 10px 20px;
    border-left: 5px solid #E2E2E2;
    font-size: 18px;
    line-height: 22px;
}

figure {
    margin: 0;
    margin-bottom: 10px;
}

figcaption {
    margin-top: 5px;
    text-align: center;
}

ul,
ol {
    margin-top: 0px;
    margin-bottom: 10px;
    padding-left: 40px;
}

.embed:before,
.embed:after {
    content: " ";
    display: table;
    grid-column-start: 1;
    grid-row-start: 1;
    grid-column-end: 2;
    grid-row-end: 2;
}

.embed:after {
    clear: both;
}

fieldset {
    padding: 0;
    margin: 0;
    border: 0;
}

button {
    border: 0;
    cursor: pointer;
    -webkit-appearance: button;
}

.form-block {
    margin: 0 0 15px;
}

.form-done {
    display: none;
    padding: 20px;
    text-align: center;
    background-color: #dddddd;
}

.form-fail {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background-color: #ffdede;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-field {
    display: block;
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333333;
    vertical-align: middle;
    background-color: #ffffff;
    border: 1px solid #cccccc;
}

.input-field::placeholder {
    color: #999;
}

.input-field:focus {
    border-color: #3898EC;
    outline: 0;
}

.input-field[disabled],
.input-field[readonly],
fieldset[disabled] .input-field {
    cursor: not-allowed;
}

.input-field[disabled]:not(.input-disabled),
.input-field[readonly],
fieldset[disabled]:not(.input-disabled) .input-field {
    background-color: #eeeeee;
}

textarea.input-field {
    height: auto;
}

.rich-text:before,
.rich-text:after {
    content: " ";
    display: table;
    grid-column-start: 1;
    grid-row-start: 1;
    grid-column-end: 2;
    grid-row-end: 2;
}

.rich-text:after {
    clear: both;
}

.rich-text[contenteditable="true"]:before,
.rich-text[contenteditable="true"]:after {
    white-space: initial;
}

.rich-text ol,
.rich-text ul {
    overflow: hidden;
}

.rich-text figure[data-rt-type="video"] > div:after {
    content: '';
    position: absolute;
    display: none;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.rich-text figure {
    position: relative;
    max-width: 60%;
}

.rich-text figure > div:before {
    cursor: default!important;
}

.rich-text figure img {
    width: 100%;
}

.rich-text figure div {
    font-size: 0px;
    color: transparent;
}

.rich-text figure[data-rt-type="image"] {
    display: table;
}

.rich-text figure[data-rt-type="image"] > div {
    display: inline-block;
}

.rich-text figure[data-rt-type="image"] > figcaption {
    display: table-caption;
    caption-side: bottom;
}

.rich-text figure[data-rt-type="video"] {
    width: 60%;
    height: 0;
}

.rich-text figure[data-rt-type="video"] iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rich-text figure[data-rt-type="video"] > div {
    width: 100%;
}

.tabs {
    position: relative;
}

.tabs:before,
.tabs:after {
    content: " ";
    display: table;
    grid-column-start: 1;
    grid-row-start: 1;
    grid-column-end: 2;
    grid-row-end: 2;
}

.tabs:after {
    clear: both;
}

.tab-menu {
    position: relative;
}

.tab-link {
    position: relative;
    display: inline-block;
    vertical-align: top;
    text-decoration: none;
    padding: 9px 30px;
    text-align: left;
    cursor: pointer;
    color: #222222;
    background-color: #dddddd;
}

.tab-link.is-current {
    background-color: #C8C8C8;
}

.tab-link:focus {
    outline: 0;
}

.tab-content {
    position: relative;
    display: block;
    overflow: hidden;
}

.tab-pane {
    position: relative;
    display: none;
}

.is-active {
    display: block;
}

@media screen and (max-width: 479px) {
    .tab-link {
        display: block;
    }

}
