// -------------------- //
// Tag Article
// -------------------- //
@mixin card-tg-article() {
    .c-card__obj {
        display: table;
        width: 100%;
    }

    .c-card__obj__header,
    .c-card__obj__body {
        display: table-cell;
        vertical-align: top;
    }
}

@mixin card-tg-article-small() {
    .c-card__obj {}
    .c-card__obj__header,
    .c-card__obj__body {
        width: 50%;
    }

    .c-card__obj__header {
        padding-right: 8px;
    }
    .c-card__images {
        .c-card__image {
            padding-top: 100%;
        }

        .c-card__image__icon {
            bottom: 0;
            background-color: $limed-oak;
            height: 40px;
            left: 0;
            width: 40px;

            svg {
                display: block;
                height: 100%;
                margin: 0 auto;
                vertical-align: middle;
                width: 16px;
                fill: $white;
            }
        }
    }

    .c-card__obj__body {
        padding-left: 8px;
    }

    .c-card__tag {
        @include font("GOTHAM", 11px, 700, 14px, -4);
        color: $limed-oak;
        margin-bottom: 6px;
        margin-top: 0;
    }

    .c-card__title {
        @include font("GOTHAM", 14px, 700, 18px, -4);
        color: $woodsmoke;
        margin-bottom: 12px;
        margin-top: 6px;
    }

    .c-card__teaser {
        display: none;
    }

    .c-card__separator {
        display: none;
    }

    .c-card__byline {
        @include font("GOTHAM", 9px, null, 12px, 60);
        margin-bottom: 6px;
        margin-top: 12px;

        .c-card__byline-prefix {
            @include font-weight(400);
        }

        .c-card__byline-name {
            @include font-weight(700);
        }
    }

    .c-card__meta {
        @include font("GOTHAM", 9px, 500, 14px);
        color: $oslo-gray;
        margin-top: 6px;
        padding-right: 0;

        li.c-card__meta-item {
            & + li.c-card__meta-item {
                border-left: none;
                padding-left: 0;
                &:before {
                    background-color: $oslo-gray;
                    border-radius: 50%;
                    content: "";
                    display: inline-block;
                    height: 2px;
                    margin: 1px 4px;
                    width: 2px;
                }
            }
        }
    }
}

@mixin card-tg-article-large($has_small:false) {
    @if not $has_small {
        .c-card__obj {}
        .c-card__images {
            .c-card__image {
                padding-top: 100%;
            }

            .c-card__image__icon {
                bottom: 0;
                background-color: $limed-oak;
                height: 40px;
                left: 0;
                width: 40px;

                svg {
                    display: block;
                    height: 100%;
                    margin: 0 auto;
                    vertical-align: middle;
                    width: 16px;
                    fill: $white;
                }
            }
        }

        .c-card__tag {
            @include font("GOTHAM", 11px, 700, 14px, -4);
            color: $limed-oak;
            margin-bottom: 6px;
            margin-top: 0;
        }

        .c-card__title {
            @include font("GOTHAM", 14px, 700, 18px, -4);
            color: $woodsmoke;
            margin-bottom: 12px;
            margin-top: 6px;
        }

        .c-card__teaser {
            display: none;
        }

        .c-card__separator {
            display: none;
        }

        .c-card__byline {
            @include font("GOTHAM", 9px, null, 12px, 60);
            margin-bottom: 6px;
            margin-top: 12px;

            .c-card__byline-prefix {
                @include font-weight(400);
            }

            .c-card__byline-name {
                @include font-weight(700);
            }
        }

        .c-card__meta {
            @include font("GOTHAM", 9px, 500, 14px);
            color: $oslo-gray;
            margin-top: 6px;
            padding-right: 0;

            li.c-card__meta-item {
                & + li.c-card__meta-item {
                    border-left: none;
                    padding-left: 0;
                    &:before {
                        background-color: $oslo-gray;
                        border-radius: 50%;
                        content: "";
                        display: inline-block;
                        height: 2px;
                        margin: 1px 4px;
                        width: 2px;
                    }
                }
            }
        }
    }

    .c-card__obj__header {
        padding-right: 10px;
        width: 33.33333%;
    }

    .c-card__obj__body {
        padding-left: 10px;
        width: auto;
    }

    .c-card__title {
        @include font("GOTHAM", 20px, 700, 24px, -4);
        color: $woodsmoke;
        margin-bottom: 20px;
        margin-top: 10px;
    }
}

.c-card--tg-article {
    @include card-tg-article();
    @include card-tg-article-small();
    @include min-screen($CARD_SWITCHER_WIDTH) {
        @include card-tg-article-large($has_small:true);
    }
}

.c-card--tg-article-small {
    @include card-tg-article();
    @include card-tg-article-small();
}

.c-card--tg-article-large {
    @include card-tg-article();
    @include card-tg-article-large();
}