/*
 * Pagina de exemplo dos formatos (/formatos/<formato>/exemplo/site/).
 * Pagina autonoma que imita o 4gnews: nao usa o layout do site nem o bundle do webpack.
 * As regras dos formatos copiam as do 4gnews (_ad-header-xl.scss, _ad-header-xl-cert.scss, _ad-skin.scss);
 * o resto do formato vem do host.css e do runtime em cdn.7gra.us/ad-formats/.
 */

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

body {
    margin: 0;
    font-family: Roboto, Helvetica, Arial, sans-serif;
    color: #292929;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

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

/* No visualizador, sem barra de scroll: num telemovel ela nao ocupa largura */
html.is-embedded {
    scrollbar-width: none;
}

html.is-embedded::-webkit-scrollbar {
    display: none;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* Header */

.site-header {
    position: sticky;
    top: var(--site-top-offset, 0px);
    z-index: 100;
    height: 56px;
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, .15);
    transition: top .3s, background-color .3s ease-in-out;
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 12px 0 6px;
}

.site-header__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
}

.site-header__menu i {
    display: block;
    width: 20px;
    height: 2px;
    background: #121212;
}

.site-header__logo {
    display: flex;
    margin-right: auto;
}

.site-header__logo svg {
    width: 110px;
    height: auto;
}

.site-header__nav {
    display: none;
}

.site-header__user {
    flex: none;
    width: 36px;
    height: 36px;
    border: 1px solid #121212;
    border-radius: 50%;
}

@media (min-width: 1200px) {
    .site-header__inner {
        padding: 0 12px 0 24px;
        gap: 32px;
    }

    .site-header__menu {
        display: none;
    }

    .site-header__logo {
        margin-right: 0;
    }

    .site-header__logo svg {
        width: 130px;
    }

    .site-header__nav {
        display: flex;
        gap: 24px;
        margin-right: auto;
    }

    .site-header__nav a {
        font: 700 14px/1 'Roboto Condensed', Helvetica, Arial, sans-serif;
        text-transform: uppercase;
        color: #000;
    }

    .site-header__nav a:hover {
        color: #f45331;
    }
}

.site-highlights {
    height: 40px;
    background: #f6f6f6;
}

.site-highlights__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 12px;
    overflow: hidden;
    white-space: nowrap;
    font: 400 14px/1 'Roboto Condensed', Helvetica, Arial, sans-serif;
    color: #404040;
}

.site-highlights__inner strong {
    color: #000;
    text-transform: uppercase;
}

/* Conteudo */

.cat-header h1 {
    margin: 24px 0 16px;
    font: 700 31px/1.2 'Roboto Condensed', Helvetica, Arial, sans-serif;
    letter-spacing: -.8px;
    color: #1e1e1e;
}

.featured {
    display: grid;
    gap: 10px;
}

.featured__item {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 170px;
    padding: 16px;
    border-radius: 5px;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .55)), linear-gradient(135deg, #c9ced6, #aab1bc);
}

.featured__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

@media (min-width: 768px) {
    .featured {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .featured__item {
        height: 270px;
    }
}

.columns {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.columns__main {
    flex: 1 1 auto;
    min-width: 0;
}

.columns__side {
    display: none;
}

@media (min-width: 992px) {
    .columns__side {
        display: block;
        flex: 0 0 300px;
    }
}

.section-title {
    margin: 0 0 20px;
    border-bottom: 2px solid #000;
    font: 700 16px/1 'Roboto Condensed', Helvetica, Arial, sans-serif;
    text-transform: uppercase;
}

.section-title span {
    display: inline-block;
    padding: 5px 8px;
    background: #000;
    color: #fff;
}

.posts {
    display: grid;
    gap: 16px;
}

.post {
    display: flex;
    gap: 12px;
}

.post__img {
    flex: 0 0 120px;
    height: 85px;
    border-radius: 4px;
    background: linear-gradient(135deg, #e9ebee, #d6dae0);
}

.post__info {
    display: block;
}

.post__title {
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    color: #404040;
}

.post__meta {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #8a8a8a;
}

@media (min-width: 768px) {
    .posts {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 20px;
    }

    .post {
        display: block;
    }

    .post__img {
        display: block;
        height: auto;
        padding-top: 70.83%;
        margin-bottom: 10px;
    }
}

.ad-box {
    position: sticky;
    top: calc(var(--site-top-offset, 0px) + 76px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 600px;
    background: #ededed;
    font: 10px/1 Helvetica, Arial, sans-serif;
    color: #6f7e8a;
    text-transform: uppercase;
}

/* Por cima da arte da skin, que desce para la do conteudo (como o .footer-body do 4gnews) */
.site-footer {
    position: relative;
    z-index: 99;
    margin-top: 60px;
    padding: 32px 0;
    background: #121212;
    color: #b5b5b5;
    font-size: 13px;
}

.site-footer::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100px;
    background: #121212;
}

.site-footer__logo svg {
    width: 110px;
    height: auto;
}

.site-footer__logo [fill="#121212"] {
    fill: #fff;
}

.example-badge {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1100;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fcf5e5;
    color: #0e1514;
    font: 600 13px/1 Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

.example-badge[hidden] {
    display: none;
}

/* Header XL */

.sg-hxl::before {
    content: 'Publicidade';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font: 10px/1 Helvetica, Arial, sans-serif;
    color: #6f7e8a;
    text-transform: uppercase;
}

.sg-hxl--format::before {
    content: none;
}

html.sg-hxl-bar {
    --site-top-offset: var(--hxl-bar-h);
}

html.sg-hxl-on:not(.sg-hxl-bar-closed) .site-header {
    transition: background-color .3s ease-in-out;
}

/* Skin */

@media (min-width: 1024px) {
    .sg-skin::before {
        content: 'Publicidade';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font: 10px/1 Helvetica, Arial, sans-serif;
        color: #6f7e8a;
        text-transform: uppercase;
    }

    .sg-skin--skin::before {
        content: none;
    }

    html.sg-skin-on body {
        --sg-skin-top: 56px;
        --sg-skin-neutral: #ededed;
    }

    html.sg-skin-on .skin-host .container {
        position: relative;
        z-index: 0;
        max-width: 1032px;
        padding: 0 16px;
        background-color: #fff;
    }

    html.sg-skin-on .skin-host .container::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        z-index: -1;
        width: 100%;
        height: 200px;
        background-color: #fff;
    }

    html.sg-skin-on .skin-host .cat-header {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    html.sg-skin-on .skin-host .cat-header h1 {
        margin: 0;
        padding: 12px 0 14px;
    }
}
