/* Tămășești – stiluri care nu se pot exprima în theme.json */

:root {
	--tm-panza: #F4EEE3;
	--tm-panza-deschis: #FBF7F0;
	--tm-negru: #1E1A17;
	--tm-text: #3D342D;
	--tm-discret: #5A4E44;
	--tm-rosu: #8E2A22;
	--tm-rosu-inchis: #5E1A15;
	--tm-roz: #E9A99F;
	--tm-linie: #D6C9B3;
	--tm-crem: #D9CFBE;
	--tm-motiv-deschis: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M18 1 L27 9 L18 17 L9 9 Z' fill='%238E2A22'/%3E%3Cpath d='M18 5.5 L21.5 9 L18 12.5 L14.5 9 Z' fill='%23F4EEE3'/%3E%3Crect x='1' y='8' width='3' height='2' fill='%231E1A17'/%3E%3Crect x='32' y='8' width='3' height='2' fill='%231E1A17'/%3E%3C/svg%3E");
	--tm-motiv-inchis: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M18 1 L27 9 L18 17 L9 9 Z' fill='%23A8362C'/%3E%3Cpath d='M18 5.5 L21.5 9 L18 12.5 L14.5 9 Z' fill='%231E1A17'/%3E%3Crect x='1' y='8' width='3' height='2' fill='%23EDE4D3'/%3E%3Crect x='32' y='8' width='3' height='2' fill='%23EDE4D3'/%3E%3C/svg%3E");
}

/* Banda cu motiv în romb, deasupra antetului și a subsolului */
.antet::before,
.subsol::before,
.motiv::before {
	content: "";
	display: block;
	height: 18px;
	background-image: var(--tm-motiv-deschis);
	background-repeat: repeat-x;
	margin-left: calc(-1 * var(--wp--style--root--padding-left, 1rem));
	margin-right: calc(-1 * var(--wp--style--root--padding-right, 1rem));
}
.subsol::before {
	background-image: var(--tm-motiv-inchis);
}
.antet {
	border-bottom: 1px solid var(--tm-linie);
}

/* Antet */
.antet-subtitlu {
	margin: 0 !important;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tm-discret);
}
.antet .wp-block-navigation a {
	text-decoration: none;
	padding: 0.5rem 0;
	border-bottom: 2px solid transparent;
}
.antet .wp-block-navigation .current-menu-item > a,
.antet .wp-block-navigation a[aria-current="page"] {
	color: var(--tm-rosu);
	font-weight: 700;
	border-bottom-color: var(--tm-rosu);
}
.antet .wp-block-navigation a:hover {
	color: var(--tm-rosu);
}

/* Subsol */
.subsol a {
	color: #EDE4D3;
	text-decoration: none;
}
.subsol a:hover {
	color: #fff;
	text-decoration: underline;
}
.subsol .eticheta {
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tm-roz);
	font-weight: 700;
	margin-bottom: 0.5rem;
}
.subsol .wp-block-page-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.subsol .wp-block-page-list li {
	padding: 0.2rem 0;
}
.subsol .linie-jos {
	border-top: 1px solid #3A332D;
	font-size: 0.875rem;
	color: #B8AD9C;
}

/* Supratitlu roșu, cu majuscule */
.supratitlu {
	font-size: 0.9rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tm-rosu);
	font-weight: 700;
	margin-bottom: 0.5rem !important;
}

/* Banda neagră cu repere (cifre mari) */
.repere .cifra {
	font-family: var(--wp--preset--font-family--titluri);
	font-weight: 700;
	font-size: 2.4rem;
	line-height: 1.1;
	color: var(--tm-roz);
	margin: 0;
}
.repere .cifra + p {
	margin-top: 0.2rem;
	color: var(--tm-crem);
	font-size: 1rem;
}

/* Casete */
.caseta {
	background: var(--tm-panza-deschis);
	border: 1px solid var(--tm-linie);
	border-radius: 4px;
}
.caseta-rosie {
	border-radius: 4px;
}
.caseta-rosie p,
.caseta-rosie h2,
.caseta-rosie h3 {
	color: #FFF8EE;
}

/* Tabele */
.wp-block-table table {
	border-collapse: collapse;
	background: var(--tm-panza-deschis);
}
.wp-block-table thead {
	border-bottom: 0;
}
.wp-block-table th {
	background: var(--tm-negru);
	color: var(--tm-panza);
	text-align: left;
}
.wp-block-table td,
.wp-block-table th {
	border: 0;
	border-bottom: 1px solid #E3D8C6;
	padding: 0.6rem 1rem;
}
.wp-block-table figcaption {
	text-align: left;
}

/* Titlul paginilor interioare */
.titlu-pagina {
	border-bottom: 1px solid var(--tm-linie);
}

/* Lista de slujbe (din modul) */
.tm-slujbe {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 2px solid var(--tm-negru);
}
.tm-slujbe li {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 2rem;
	align-items: baseline;
	padding: 1rem 0;
	border-bottom: 1px solid var(--tm-linie);
}
.tm-slujbe li {
	font-size: 1.125rem;
	line-height: 1.45;
}
.tm-slujbe .tm-data {
	flex: 0 0 13rem;
	font-weight: 700;
	color: var(--tm-rosu);
}
.tm-slujbe .tm-nume {
	flex: 1 1 18rem;
	color: var(--tm-negru);
}
.tm-slujbe .tm-ora {
	color: var(--tm-discret);
}
.tm-slujbe .tm-obs {
	flex-basis: 100%;
	color: var(--tm-discret);
	font-size: 0.95rem;
}
.tm-gol {
	color: var(--tm-discret);
	font-style: italic;
}

/* Anunțuri (din modul) */
.tm-anunturi {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 2rem;
}
.tm-anunt {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.tm-anunt img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}
.tm-anunt .tm-anunt-data {
	color: var(--tm-discret);
	font-size: 0.95rem;
	margin: 0;
}
.tm-anunt h3 {
	margin: 0;
	font-size: 1.45rem;
}
.tm-anunt h3 a {
	color: var(--tm-negru);
	text-decoration: none;
}
.tm-anunt h3 a:hover {
	color: var(--tm-rosu);
}
.tm-anunt p {
	margin: 0;
	color: var(--tm-text);
}

/* Formularul de contact (din modul) */
.tm-formular {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 640px;
}
.tm-formular label {
	display: block;
	font-weight: 700;
	margin-bottom: 0.3rem;
}
.tm-formular input[type="text"],
.tm-formular textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	padding: 0.7rem 0.9rem;
	border: 1px solid #8C7F70;
	border-radius: 3px;
	background: #FFFDF8;
	color: var(--tm-negru);
}
.tm-formular input:focus,
.tm-formular textarea:focus {
	outline: 2px solid var(--tm-rosu);
	outline-offset: 1px;
}
.tm-formular .tm-capcana {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.tm-mesaj {
	padding: 1rem 1.25rem;
	border-radius: 4px;
	border: 1px solid var(--tm-linie);
	background: var(--tm-panza-deschis);
}
.tm-mesaj.tm-ok {
	border-color: #6B8E4E;
}
.tm-mesaj.tm-eroare {
	border-color: var(--tm-rosu);
}

/* Locurile goale pentru poze nu apar pe site, doar în editor */
body:not(.wp-admin) figure.wp-block-image:has(img:not([src])),
body:not(.wp-admin) figure.wp-block-image:has(img[src=""]),
body:not(.wp-admin) figure.wp-block-gallery:not(:has(img)) {
	display: none;
}

/* Paginare și listă de articole */
.wp-block-query-pagination a {
	font-weight: 700;
}

@media (max-width: 600px) {
	.tm-slujbe .tm-data {
		flex-basis: 100%;
	}
}

/* Caseta roșie (hramul) */
.caseta-rosie .supratitlu {
	color: #F6D3CD;
}
.caseta-rosie a {
	color: #FFF8EE;
}

/* Dacă poza din coloană lipsește, coloana dispare și textul ocupă tot rândul */
body:not(.wp-admin) .wp-block-column:has(> figure.wp-block-image:only-child img:not([src])) {
	display: none;
}

/* Calendarul ortodox (din modul) */
/* Ca în calendarul bisericesc: sărbătorile cu cruce roșie apar cu roșu */
.tm-sarbatori .tm-sarbatoare .tm-nume,
.tm-sarbatori .tm-praznic .tm-nume {
	color: var(--tm-rosu);
}
.tm-sarbatori .tm-sarbatoare .tm-nume::before,
.tm-sarbatori .tm-praznic .tm-nume::before {
	content: "† ";
}
.tm-sarbatori .tm-praznic .tm-nume {
	font-weight: 700;
}
.tm-sarbatori .tm-neagra .tm-data {
	color: var(--tm-negru);
}
.tm-sarbatori .tm-post .tm-nume,
.tm-sarbatori .tm-post .tm-data {
	color: var(--tm-discret);
}
.tm-sarbatori .tm-azi {
	background: var(--tm-panza-deschis);
	box-shadow: -0.75rem 0 0 var(--tm-panza-deschis), 0.75rem 0 0 var(--tm-panza-deschis);
}
.tm-slujbe span.tm-praznic {
	color: var(--tm-rosu);
}

/* Spațiu deasupra titlurilor din pagini (și a celor adăugate de mână în editor) */
.wp-block-post-content > :is(h2, h3):not(:first-child) {
	margin-block-start: 2.5rem;
}
.tm-gol {
	margin-bottom: 0;
}

/* Imaginea mare de pe prima pagină lipită de antet și de banda neagră */
.home main.wp-block-group {
	margin-block-start: 0;
}
.antet-acasa {
	margin-block-start: 0 !important;
}
.antet-acasa + .repere,
.antet-acasa + * {
	margin-block-start: 0 !important;
}
