/* Programação OHficina — página pública (complementa o CSS do tema) */

/*
 * Ciclo de cores dos meses: coral → lilás → amarelo, a repetir em todos os meses.
 * Reproduz as regras que o site tinha só para a página Atividades (page-id-701),
 * mas sem depender da página e sem parar ao 7.º mês.
 */
.oh-programacao.xtd-timeline::before,
.oh-programacao.xtd-timeline::after { border-color: #f05a5e; opacity: 1; }
.oh-programacao .xtd-timeline__item::after { background-color: #f05a5e; width: 9px; margin-left: -4px; height: 32px; }
.oh-programacao .xtd-timeline__item:nth-child(2n)::after { margin-right: -5px; }
.oh-programacao .xtd-timeline__item::before { font-size: clamp(22px, 3.333px + 2.431vw, 50px); }

.oh-programacao .xtd-timeline__item p.prod_date { font-size: 14px; line-height: 1.25; margin-bottom: 5px; }
.oh-programacao .xtd-timeline__item p.prod_name { font-size: 24px; line-height: 1.25; margin-bottom: 5px; }
.oh-programacao .xtd-timeline__item p.prod_desc { font-size: 18px; line-height: 1.25; margin-bottom: 10px; }
.oh-programacao .xtd-timeline__item a.prod_link { font-size: 18px; font-weight: bold; line-height: 1.25; text-decoration: underline; }

/* 1.º, 4.º, 7.º, 10.º… — coral */
.oh-programacao .xtd-timeline__item:nth-child(3n+1)::before,
.oh-programacao .xtd-timeline__item:nth-child(3n+1) p.prod_date,
.oh-programacao .xtd-timeline__item:nth-child(3n+1) a.prod_link { color: #f05a5e; }

/* 2.º, 5.º, 8.º, 11.º… — lilás */
.oh-programacao .xtd-timeline__item:nth-child(3n+2)::before,
.oh-programacao .xtd-timeline__item:nth-child(3n+2) p.prod_date,
.oh-programacao .xtd-timeline__item:nth-child(3n+2) a.prod_link { color: #ac9ac4; }

/* 3.º, 6.º, 9.º, 12.º… — amarelo */
.oh-programacao .xtd-timeline__item:nth-child(3n)::before,
.oh-programacao .xtd-timeline__item:nth-child(3n) p.prod_date,
.oh-programacao .xtd-timeline__item:nth-child(3n) a.prod_link { color: #efcd53; }

/*
 * Imagem do mês: mesmo tamanho das imagens originais da página (450 × 327),
 * seja qual for o tamanho do ficheiro escolhido. A imagem é recortada ao centro.
 */
.oh-programacao .xtd-timeline__item .vc_single_image-img {
	width: 450px;
	max-width: 100%;
	height: auto;
	aspect-ratio: 450 / 327;
	object-fit: cover;
	object-position: center;
}

/* Estados do botão */
.oh-programacao .oh-info { font-size: .85em; opacity: .8; }
.oh-programacao .oh-esgotado { display: inline-block; border: 1px solid currentColor; padding: 2px 10px; font-weight: 700; font-size: .85em; opacity: .75; }
.oh-programacao .oh-teste { font-size: .75em; background: #fcf9e8; color: #614a00; padding: 1px 6px; }
