/* Links */

a {
    color: $gray;
    text-decoration: underline;
    transition: color 0.07s ease-in;

    &:hover,
    &:active,
    &:focus {
        text-decoration: none;
        color: $gray;
    }
}

/* Heading */

h1,
.h1 {
    font-weight: 700;
    color: $headingColor;
    font-size: 3rem;
    line-height: 1.2;
    margin: 0 0 0.5em 0;
}
h2,
.h2 {
    font-weight: 700;
    color: $headingColor;
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 0.5em 0;
}
h3,
.h3 {
    font-weight: 700;
    color: $headingColor;
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0 0 0.5em 0;
}
h4,
.h4 {
    font-weight: 700;
    color: $headingColor;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 0.5em 0;
}
h5,
.h5 {
    font-weight: 400;
    color: $headingColor;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 0.5em 0;
}
h6,
.h6 {
    font-weight: 400;
    color: $headingColor;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 0.5em 0;
}

/* Paragraphs */

p {
    margin: 0 0 1em 0;
}
address {
    font-style: normal;
}
cite {
    font-style: normal;
}

/* Lists */

.list-unstyled {
    li {
        padding: 0;
        background: none;
    }
}

.text-small {
    font-size: 0.7em;
}
.text-big {
    font-size: 1.3em;
}

.text-light {
    font-weight: 200;
}
.text-bold,
strong {
    font-weight: 600;
}

.text-uppercase {
    text-transform: uppercase;
}
.text-nowrap {
    white-space: nowrap;
}

.text-left {
    text-align: left;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}

.color-gray {
    color: $gray !important;
}

.f-l {
    float: left;
}
.f-r {
    float: right;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid $gray;
    margin: 1em 0;
    padding: 0;
}

sup,
sub {
    height: 0;
    line-height: 1;
    vertical-align: baseline;
    _vertical-align: bottom;
    position: relative;
}
sup {
    bottom: 1ex;
}
sub {
    top: 0.5ex;
}

/* Rows / sections spacing inside an article, page... */

.article > .row:not(:first-child) {
    margin-top: 1.5rem;
}

/* Text content */

.entry {
    font-size: 0.8rem;
    line-height: 1.5;

    &.perex {
        font-size: 1.2rem;
    }

    p,
    ul,
    ol,
    li,
    table {
        margin-bottom: 1rem;

        &:last-child {
            margin-bottom: 0;
        }
    }

    h2 {
        margin-top: 1.5rem;
    }

    h3 {
        margin-top: 1.25rem;
    }

    h4,
    h5,
    h6 {
        margin-top: 1rem;
    }

    h2,
    h3,
    h4,
    h5,
    h6 {
        &:first-child {
            margin-top: 0;
        }
    }

    figure,
    table {
        margin: 1.25rem 0 1rem 0;

        &:first-child {
            margin-top: 0.25rem;
        }

        &:last-child {
            margin-bottom: 0.25rem;
        }
    }

    ul {
        & > li {
            position: relative;
            padding-left: 2.5rem;
            margin-bottom: 0.75rem;

            &:before {
                content: "";
                position: absolute;
                left: 1.3rem;
                top: 0.4rem;
                width: 6px;
                height: 6px;
                display: block;
                background: $gray;
                border-radius: 50%;
            }
        }
    }

    ol {
        counter-reset: counter;
        margin-left: 0;
        *margin-left: 54px;

        & > li {
            padding-left: 2.5rem;
            margin-bottom: 0.75rem;
            *list-style-type: decimal;
            counter-increment: counter;
            position: relative;

            &:before {
                color: $gray;
                content: counter(counter) ". ";
                position: absolute;
                left: 0.9rem;
                top: 0;
            }
        }
    }


    .btn {
        margin-bottom: 0.25rem;
    }
}

/* laptop < 1370 */
@media screen and (max-width: $xl) {
    h1,
    .h1 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: $lg) {
    h1,
    .h1 {
        font-size: 2rem;
    }
}

@media screen and (max-width: $md) {
}

/* mobile < 768 */
@media screen and (max-width: $sm) {
}

@media screen and (max-width: $xs) {
    .item-list .item {
        width: 100% !important;
    }
}

@media screen and (max-width: $xxs) {
}
