/*
Theme Name: Truques de Beleza
Theme URI: https://truquesdebeleza.com.br/
Description: Tema editorial independente do Truques de Beleza, com layout, personalizacao, newsletter, imagens responsivas e regeneracao automatica embutidos no tema.
Author: Codex para Truques de Beleza
Version: 2.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: truques-de-beleza
*/

.tbd-image-frame {
    display: block;
    overflow: hidden;
    background: var(--tdb-surface-2, #f7f1ec);
}

.tbd-image-frame--hero {
    aspect-ratio: 16 / 9;
}

.tbd-image-frame--single {
    aspect-ratio: 3 / 2;
}

.tbd-image-frame--card {
    aspect-ratio: 39 / 28;
}

.tbd-image-frame--portrait {
    aspect-ratio: 32 / 45;
}

.tbd-image-frame--thumb {
    aspect-ratio: 1;
}

.tdb-image,
.tbd-image-frame img,
.tbd-post-card__image img,
.tbd-featured-image img,
.tbd-popular img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--tdb-focus-x, 50%) var(--tdb-focus-y, 50%);
}

.tbd-post-card__image {
    aspect-ratio: 39 / 28;
    min-height: 0 !important;
}

.tbd-featured-image {
    aspect-ratio: 3 / 2;
}

.tbd-hero-card,
.tbd-overlay-card,
.tbd-single-hero {
    background-position: var(--tdb-focus-x, 50%) var(--tdb-focus-y, 50%);
}

.tbd-skip-link {
    left: -999px;
    position: absolute;
    top: auto;
}

.tbd-skip-link:focus {
    background: #fff;
    border: 2px solid currentColor;
    left: 16px;
    padding: 10px 14px;
    top: 16px;
    z-index: 99999;
}

.tbd-nav .sub-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    z-index: 20;
    display: grid;
    gap: 4px;
    min-width: 230px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--tbd-line);
    border-radius: var(--tbd-radius);
    background: var(--tbd-surface);
    box-shadow: var(--tbd-shadow);
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.tbd-nav .menu-item {
    position: relative;
}

.tbd-nav .menu-item:hover > .sub-menu,
.tbd-nav .menu-item:focus-within > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.tbd-nav .menu-item-has-children > a {
    padding-right: 16px;
}

.tbd-nav .sub-menu a {
    width: 100%;
}

.tbd-entry-content img {
    max-width: 100%;
    height: auto;
}

.tbd-badge {
    flex: 0 0 auto;
    width: max-content;
    max-width: min(100%, 220px);
}

.tbd-hero-card .tbd-badge,
.tbd-overlay-card .tbd-badge {
    position: relative;
    z-index: 2;
}

.tbd-footer__nav ul,
.tbd-footer__nav .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tbd-footer__nav li {
    margin: 0;
    padding: 0;
}

.tbd-footer__nav a {
    display: inline-flex;
    color: var(--tbd-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.tbd-footer__links {
    text-align: right;
}

.tbd-footer__copy {
    display: block;
    margin-top: 18px;
}

@media (max-width: 760px) {
    .tbd-footer__inner,
    .tbd-footer__links {
        text-align: left;
    }

    .tbd-footer__nav ul,
    .tbd-footer__nav .menu {
        justify-content: flex-start;
    }
}
