/**
 * Theme Name: Tele.Síntese
 * Description: Tema para o portal de notícias Tele.Síntese
 * Author: wetah
 * Template: blocksy
 * Text Domain: telesintese
 * Version: 0.6.3
 */

/* Single Post */

.single-post .page-title,
.page .page-title {
    padding-bottom: 1.125rem;
    border-bottom: 1px solid var(--wp--preset--color--palette-color-9, #111);
}
.page .page-title {
    margin-top: 2.5rem;
}

/* Any Single template */
.single .author-box[data-type="type-1"] {
    border-left: none;
    border-right: none;
    padding: 20px 0;
}
.single .author-box .ct-media-container {
    flex: 0 0 100px;
    width: 100px;
    height: 100px;
}
.single .author-box[data-type="type-1"] .author-box-name {
    margin-bottom: 0.125rem;
}
.single .author-box[data-type="type-1"] .ct-author-box-more {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .7px;
    border: 1px solid var(--wp--preset--color--palette-color-3, #666);
    color: var(--wp--preset--color--palette-color-3, #666);
    padding: 3px 7px;
}
.single .post-navigation .item-label {
    font-size: 16px;
    font-weight: 600;   
}

.ct-related-posts-container {
	padding: var(--padding, 50px) 0;
    --has-boxed: var(--true);
    --has-wide: var(--false);
    background-color: var(--has-background, var(--theme-palette-color-8));
    --theme-boxed-content-border-radius: 0px;
    --theme-boxed-content-spacing: 40px;
    --theme-boxed-content-box-shadow: 0px 12px
}

.ct-related-posts {
    --grid-template-columns: repeat(2, minmax(0, 1fr));
    --grid-template-rows: repeat(2, 1fr);
	.ct-module-title {
		text-align: var(--horizontal-alignment);
	}

	.post > *:not(:last-child) {
		margin-block: 0 var(--card-element-spacing, 20px);
	}

	.ct-media-container {
		border-radius: var(--theme-border-radius, 5px);
	}

	.entry-meta {
		color: var(--theme-text-color);
        --theme-link-initial-color: initial;
		--theme-font-size: 11px;
        --theme-line-height: 17px;
        --card-element-spacing: 5px;
	}
    .entry-title {
        --theme-link-initial-color: initial;
        --theme-font-size: 14px;
        --theme-line-height: 17px;
        --card-element-spacing: 5px;    
    }
}
.ct-related-posts-item {
    display: grid;
    grid-template-columns: 50% auto;
    grid-template-rows: auto auto;
    grid-gap: 2px 15px;
    align-items: center;
}

.single .ct-related-posts {
    --grid-template-rows: repeat(2, 1fr);
}
.single .ct-related-posts article {
    display: grid;
    grid-template-columns: 50% auto;
    grid-template-rows: auto auto;
    grid-gap: 2px 15px;
    align-items: center;
}
.single .ct-related-posts article > * {
    margin: 0px;
    --theme-link-initial-color: initial;
    --theme-font-size: 14px;
    --theme-line-height: 22px;
    --card-element-spacing: 5px;
    
    .entry-meta {
		color: var(--theme-text-color);
        --theme-link-initial-color: initial;
		--theme-font-size: 11px;
        --theme-line-height: 17px;
        --card-element-spacing: 5px;
	}
    .entry-title {
        --theme-link-initial-color: initial;
        --theme-font-size: 14px;
        --theme-line-height: 17px;
        --card-element-spacing: 5px;    
    }
}
.single .ct-related-posts article .ct-media-container {
    grid-row: 1/-1;
}

/* Figure inside post */
.single article > .entry-content > figure:where(:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright)) {
    max-width: 100%;
}

/* Sidebar */
#sidebar .ct-sidebar {
    padding-top: 36px;
    padding-bottom: 36px;
}
.ct-sidebar > .wp-block-group > * {
    max-width: 100%;
    width: 100%;
}
@media screen and (min-width: 1000px) {
    body:not(.single) #sidebar .ct-sidebar {
        padding-right: 0px;
    }
    body.single .ct-container[data-sidebar="right"] {
        --theme-normal-container-max-width: 1200px;
    }
}
@media screen and (max-width: 480px) {
    #sidebar .ct-sidebar {
        --sidebar-inner-spacing: 12px;
    }
}

/* Posts list, blog */
.blog .hero-section[data-type="type-1"],
.archive .hero-section[data-type="type-1"] {
    margin-top: 30px;
    border-bottom: 1px solid var(--wp--preset--color--palette-color-9, #111);
}
.blog .hero-section[data-type="type-1"] .page-description,
.archive .hero-section[data-type="type-1"] .page-description {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.archive .hero-section[data-type="type-1"] .ct-title-label {
    color: var(--wp--preset--color--palette-color-3, #666);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}
.entry-meta [data-type="pill"] a {
    border-radius: 0px !important;
    font-weight: bold;
}
.entry-meta .ct-meta-element-author {
    font-weight: bold;
}
.wp-block-post-terms__separator {
    visibility: hidden;
}

[data-archive="default"][data-layout*="grid"] .entry-card > :not(:last-child),
[data-archive="default"][data-layout="classic"] .entry-card > :not(:last-child),
[data-archive="default"][data-layout="simple"] .card-content > :not(:last-child) {
    margin-bottom: 10px !important;
}
[data-archive="default"][data-layout*="grid"] .entry-card > :not(:last-child).entry-meta, [data-archive="default"][data-layout="classic"] .entry-card > :not(:last-child).entry-meta, [data-archive="default"][data-layout="simple"] .card-content > :not(:last-child).entry-meta {
    margin-top: 0px;
    margin-bottom: 10px !important;
}
.archive .entries:not([data-cards="cover"]) .entry-button,
.blog .entries:not([data-cards="cover"]) .entry-button {
    margin-top: 10px;
    color: var(--theme-palette-color-3);
}
.wp-block-post-excerpt__more-link {
    font-size: 0.875rem;
    color: var(--theme-palette-color-3);
}
.entry-meta li [class*="ct-media-container"] {
    border-radius: 0 !important;
}
.wp-block-post-author {
    align-items: center;
}

/* Paginação do Blocksy simplificada para parecer com a do Gutenberg */
[data-pagination="simple"].ct-pagination {
    display: flex;
    justify-content: center;
    gap: var(--theme-content-spacing);
}
[data-pagination="simple"].ct-pagination .page-numbers {
    display: inline-block;
    height: auto !important;
    width: auto !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: normal !important;
}
[data-pagination="simple"].ct-pagination .page-numbers.current {
    color: var(--wp--preset--color--palette-color-3);
    background-color: transparent;
}
[data-pagination="simple"].ct-pagination a.page-numbers {
    color: var(--wp--preset--color--palette-color-1);
}
[data-pagination="simple"].ct-pagination .next,
[data-pagination="simple"].ct-pagination .prev {
    text-transform: none;
    font-size: 16px !important;
    color: var(--wp--preset--color--palette-color-1);
}
.wp-block-query-pagination-numbers .page-numbers {
    margin-left: 5px;
    margin-right: 5px;
}

/* Bloco de Loop com cartões alinhados */
.has-aligned-cards > li {
    display: flex;
    flex-direction: column;
}
.has-aligned-cards > li > .wp-block-group {
    height: 100%;
}

/* Iframes dos Shorts */
.wp-block-streamweasels-youtube-embed iframe {
    border: none;
}

/* Categorias do DMI tem cores diferentes */
.dmi-loop,
.ct-term-20544,
.ct-term-25750,
.ct-term-25738,
.ct-term-25740,
.ct-term-25741,
.ct-term-25726,
.ct-term-25742,
.ct-term-25743,
.ct-term-25744,
.ct-term-25745,
.ct-term-25747,
.ct-term-25748,
.ct-term-25749,
.ct-term-25750,
.ct-term-25728,
.ct-term-25751,
.ct-term-25730,
.ct-term-25732,
.ct-term-25734,
.ct-term-25736,
.ct-term-25737,
.ct-term-25739,
.wp-block-post[class*="-dmi"] .wp-block-post-terms a {
    --wp--preset--color--palette-color-1: var(--theme-palette-color-19);
    --theme-button-background-initial-color: var(--theme-palette-color-19);
    --theme-button-background-hover-color: var(--theme-palette-color-19);
}

/* Responsividade da Widget de YouTube */
@media screen and (max-width: 980px) {
    .wp-block-ytvgb-gallery .ytvgbYouTubeVideoGallery .videoGallery.playlist .playlistContainer {
        flex-wrap: wrap;
        gap: 16px;
    }
    .wp-block-ytvgb-gallery .ytvgbYouTubeVideoGallery .videoGallery.playlist .playlistContainer > * {
        width: 100% !important;
    }
}

/* Sobrescreve uppercase do yarpp, que está com mais prioridade que o Blocksy */
.yarpp-related h3 {
    text-transform: var(--theme-text-transform) !important;
}

/* Widget clássica de menu no rodapé */
#footer ul.widget-menu {
    display: flex;
    gap: 1rem 2rem;
    font-size: 0.75rem;
    flex-wrap: wrap;
}