/* Čitulje: lista, stranica pokojnika, traka za naslovnu i obrazac za porodicu. Crno-bijelo, kao u novinama. */

.mgfc-omotac { --mgfc-crna: #111; --mgfc-siva: #5f5f5f; --mgfc-svijetla: #f4f4f2; --mgfc-okvir: #d6d6d6; --mgfc-zelena: #1f6b45; --mgfc-crvena: #b00020; }
.mgfc-omotac, .mgfc-traka { color: var(--mgfc-crna, #111); }
.mgfc-main { width: 100%; }
.mgfc-serif, .mgfc-objava, .mgfc-osoba-ime, .mgfc-karta-ime, .mgfc-naslov { font-family: Georgia, "Times New Roman", serif; }

.mgfc-zaglavlje { text-align: center; margin: 10px auto 30px; max-width: 720px; }
.mgfc-naslov { font-size: 34px; line-height: 1.2; margin: 0 0 10px; font-weight: 700; }
.mgfc-podnaslov { color: #5f5f5f; font-size: 16px; line-height: 1.6; margin: 0 0 10px; }
.mgfc-kontakt { color: #5f5f5f; font-size: 15px; margin: 0 0 16px; }
.mgfc-kontakt a { color: inherit; text-decoration: underline; }
.mgfc-kontakt-dno { text-align: center; margin: 40px auto 10px; max-width: 640px; }

.mgfc-pretraga { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.mgfc-pretraga input[type="search"] { flex: 1; min-width: 0; height: 46px; padding: 0 14px; font-size: 16px; border: 1px solid #bbb; border-radius: 6px; background: #fff; color: #111; }
.mgfc-pretraga button { height: 46px; padding: 0 20px; font-size: 15px; font-weight: 600; border: 0; border-radius: 6px; background: #111; color: #fff; cursor: pointer; }

/* Kartice pokojnika */
.mgfc-mreza { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; margin: 0 0 30px; }
.mgfc-karta { display: flex; flex-direction: column; border: 1px solid #222; background: #fff; color: #111 !important; text-decoration: none !important; transition: box-shadow .15s; }
.mgfc-karta:hover, .mgfc-karta:focus-visible { box-shadow: 0 0 0 2px #111; }
.mgfc-karta-foto { display: block; aspect-ratio: 4 / 5; background: #f4f4f2; overflow: hidden; }
.mgfc-karta-foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mgfc-karta-bez { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #9a9a9a; }
.mgfc-karta-bez svg { width: 56px; height: 56px; }
.mgfc-karta-tekst { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 10px 14px; text-align: center; }
.mgfc-karta-simbol { width: 18px; height: 18px; }
.mgfc-karta-ime { font-size: 17px; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: .02em; }
.mgfc-karta-godine { font-size: 14px; color: #333; }
.mgfc-karta-zadnja { font-size: 12px; color: #6b6b6b; text-transform: uppercase; letter-spacing: .06em; }
.mgfc-zelena.mgfc-karta { border-color: #1f6b45; }
.mgfc-zelena .mgfc-karta-simbol { color: #1f6b45; }

/* Traka na naslovnoj */
.mgfc-traka { margin: 34px 0; }
.mgfc-traka-zaglavlje { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid #111; margin: 0 0 18px; padding: 0 0 8px; }
.mgfc-traka-naslov { font-size: 20px; margin: 0; text-transform: uppercase; letter-spacing: .06em; }
.mgfc-traka-sve { font-size: 14px; color: #111 !important; text-decoration: underline; }
.mgfc-mreza-traka { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }

/* Stranica pokojnika */
.mgfc-nazad { margin: 0 0 18px; font-size: 14px; }
.mgfc-nazad a { color: #5f5f5f; text-decoration: underline; }
.mgfc-osoba { display: flex; align-items: center; justify-content: center; gap: 30px; max-width: 760px; margin: 0 auto 10px; padding: 0 0 26px; border-bottom: 1px solid #d6d6d6; }
.mgfc-osoba-foto { flex: 0 0 210px; }
.mgfc-osoba-foto img { display: block; width: 100%; height: auto; border: 1px solid #222; }
.mgfc-osoba-tekst { text-align: center; }
.mgfc-osoba-simbol { width: 34px; height: 34px; margin: 0 0 8px; }
.mgfc-osoba-ime { font-size: 32px; line-height: 1.2; margin: 0 0 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.mgfc-osoba-nadimak, .mgfc-osoba-djevojacko { font-size: 17px; margin: 0 0 4px; font-style: italic; }
.mgfc-osoba-godine { font-size: 19px; margin: 6px 0 4px; }
.mgfc-osoba-mjesto { font-size: 15px; color: #5f5f5f; margin: 0; }
.mgfc-zelena .mgfc-osoba-simbol { color: #1f6b45; }

/* Objava: okvir kao u novinama (dvostruka linija) */
.mgfc-objave { display: grid; gap: 28px; max-width: 680px; margin: 30px auto 0; }
.mgfc-objava { position: relative; padding: 30px 26px 22px; text-align: center; background: #fff; border: 1px solid #111; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px #111; font-size: 16px; line-height: 1.6; scroll-margin-top: 90px; }
.mgfc-objava p { margin: 0 0 10px; }
.mgfc-objava .mgfc-simbol { display: block; width: 30px; height: 30px; margin: 0 auto 10px; }
.mgfc-vrsta { font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 6px; line-height: 1.4; }
.mgfc-povod { font-style: italic; }
.mgfc-uvod { margin: 10px 0 4px; }
.mgfc-ime { font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1.25; margin: 8px 0 2px !important; }
.mgfc-djevojacko { font-style: italic; }
.mgfc-godine { font-size: 17px; }
.mgfc-tekst { margin: 8px 0 0; }
.mgfc-dogadjaj { margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid #d6d6d6; font-size: 15px; }
.mgfc-ozaloseni { margin: 16px 0 0; font-size: 15px; }
.mgfc-ozaloseni-naslov { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 4px !important; color: #333; }
.mgfc-sken { display: block; margin: 16px 0 0; }
.mgfc-sken img { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid #d6d6d6; }
.mgfc-sken-pdf a { color: #111; text-decoration: underline; }
.mgfc-objavljeno { margin: 18px 0 0 !important; font-family: Inter, system-ui, sans-serif; font-size: 12px; color: #8a8a8a; }
.mgfc-objava.mgfc-zelena { border-color: #1f6b45; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px #1f6b45; }
.mgfc-objava.mgfc-zelena .mgfc-simbol { color: #1f6b45; }

.mgfc-prazno { text-align: center; color: #5f5f5f; margin: 30px 0; }
.mgfc-stranice { margin: 10px 0 30px; text-align: center; }

/* Obrazac */
.mgfc-obrazac-omot { max-width: 720px; margin: 0 auto 40px; }
.mgfc-vezan { display: inline-flex; align-items: center; gap: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.mgfc-vezan svg { width: 22px; height: 22px; }
.mgfc-obrazac fieldset.mgfc-dio { border: 1px solid #d6d6d6; border-radius: 8px; padding: 16px 18px 6px; margin: 0 0 18px; min-width: 0; }
.mgfc-obrazac div.mgfc-dio { margin: 0 0 18px; }
.mgfc-obrazac legend { font-size: 17px; font-weight: 700; padding: 0 6px; margin: 0; color: #111; }
.mgfc-obrazac legend small { font-weight: 400; color: #5f5f5f; }
.mgfc-obrazac fieldset.mgfc-polje { border: 0; padding: 0; margin: 0 0 14px; }
.mgfc-obrazac fieldset.mgfc-polje legend { font-size: 14px; font-weight: 600; padding: 0; margin: 0 0 6px; }
.mgfc-polje { margin: 0 0 14px; }
.mgfc-polje label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; color: #111; }
.mgfc-polje label small { font-weight: 400; color: #5f5f5f; }
.mgfc-obrazac input[type="text"], .mgfc-obrazac input[type="email"], .mgfc-obrazac input[type="tel"], .mgfc-obrazac input[type="number"], .mgfc-obrazac input[type="date"], .mgfc-obrazac input[type="time"], .mgfc-obrazac select, .mgfc-obrazac textarea {
	display: block; width: 100%; max-width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; font-size: 16px; line-height: 1.4; color: #111; background: #fff; border: 1px solid #b5b5b5; border-radius: 6px; box-shadow: none; margin: 0;
}
.mgfc-obrazac textarea { min-height: 0; resize: vertical; }
.mgfc-obrazac input[type="file"] { display: block; width: 100%; box-sizing: border-box; padding: 12px; font-size: 15px; border: 1px dashed #9a9a9a; border-radius: 6px; background: #f4f4f2; }
.mgfc-obrazac input:focus, .mgfc-obrazac select:focus, .mgfc-obrazac textarea:focus { outline: 2px solid #111; outline-offset: 1px; border-color: #111; }
.mgfc-obrazac [aria-invalid="true"] { border-color: #b00020 !important; }
.mgfc-red { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 14px; }
.mgfc-izbori { display: grid; gap: 8px; }
.mgfc-izbori-red { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.mgfc-izbor { display: flex !important; align-items: flex-start; gap: 10px; margin: 0 !important; padding: 10px 12px; border: 1px solid #c8c8c8; border-radius: 6px; cursor: pointer; font-weight: 400 !important; background: #fff; }
.mgfc-izbor input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: #111; }
.mgfc-izbor small { display: block; color: #5f5f5f; font-size: 13px; }
.mgfc-izbor:has(input:checked) { border-color: #111; background: #f4f4f2; box-shadow: 0 0 0 1px #111; }
.mgfc-izbor-simbol { align-items: center; }
.mgfc-izbor-simbol > span { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; flex: 1; }
.mgfc-izbor-simbol svg { width: 28px; height: 28px; }
.mgfc-bez-simbola { display: block; height: 28px; line-height: 28px; font-size: 13px; color: #5f5f5f; }
.mgfc-pomoc { display: block; font-size: 13px; line-height: 1.5; color: #5f5f5f; margin: 6px 0 0; }
.mgfc-greska { color: #b00020; font-size: 14px; margin: 6px 0 0; }
.mgfc-greske { border-left: 4px solid #b00020; background: #fff4f4; padding: 12px 16px; margin: 0 0 18px; }
.mgfc-greske p { margin: 0 0 4px; }
.mgfc-obavezno { color: #b00020; }
.mgfc-kvacica { display: flex !important; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 15px; line-height: 1.5; cursor: pointer; }
.mgfc-kvacica input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #111; }
.mgfc-dugme-red { margin: 6px 0 0; }
.mgfc-dugme { display: inline-block; min-width: 260px; padding: 15px 28px; font-size: 17px; font-weight: 600; color: #fff !important; background: #111 !important; border: 0; border-radius: 6px; cursor: pointer; }
.mgfc-dugme[disabled] { opacity: .6; cursor: wait; }
.mgfc-pregled-slike img { display: block; max-width: 140px; height: auto; margin: 8px 0 0; border: 1px solid #d6d6d6; border-radius: 4px; }
.mgfc-skriveno { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mgfc-poruka { text-align: center; max-width: 560px; margin: 40px auto 60px; }
.mgfc-poruka h1 { font-family: Georgia, "Times New Roman", serif; font-size: 28px; margin: 0 0 12px; }
.mgfc-poruka p { font-size: 16px; line-height: 1.6; color: #333; }
.mgfc-poruka a { color: #111; text-decoration: underline; }
.mgfc-omotac [hidden] { display: none !important; }

@media (max-width: 767px) {
	.mgfc-naslov { font-size: 28px; }
	.mgfc-mreza { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.mgfc-mreza-traka { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mgfc-karta-ime { font-size: 15px; }
	.mgfc-osoba { flex-direction: column; gap: 16px; }
	.mgfc-osoba-foto { flex-basis: auto; width: 180px; }
	.mgfc-osoba-ime { font-size: 26px; }
	.mgfc-objava { padding: 26px 18px 18px; }
	.mgfc-ime { font-size: 22px; }
	.mgfc-dugme { width: 100%; min-width: 0; }
}

/* Tema Soledad ima "p { text-align: left }" i svoje fontove za naslove: ovdje jače pravilo. */
.mgfc-omotac .mgfc-zaglavlje p, .mgfc-omotac .mgfc-osoba-tekst p, .mgfc-omotac .mgfc-objava p, .mgfc-omotac .mgfc-poruka p, .mgfc-omotac p.mgfc-kontakt-dno, .mgfc-omotac p.mgfc-prazno { text-align: center; }
.mgfc-omotac .mgfc-obrazac-omot .mgfc-zaglavlje p.mgfc-podnaslov { text-align: center; }
.mgfc-omotac h1.mgfc-naslov, .mgfc-omotac h1.mgfc-osoba-ime, .mgfc-omotac .mgfc-poruka h1, .mgfc-omotac h3.mgfc-vrsta, .mgfc-traka .mgfc-karta-ime, .mgfc-omotac .mgfc-karta-ime { font-family: Georgia, "Times New Roman", serif; }

/* Viber i WhatsApp: velika dugmad (i za starije), boje servisa sa dovoljnim kontrastom */
.mgfc-kutija-poruka { max-width: 560px; margin: 18px auto 0; padding: 16px 18px; border: 1px solid #d6d6d6; border-radius: 10px; background: #fafaf8; text-align: center; }
.mgfc-omotac .mgfc-kutija-poruka p { text-align: center; }
.mgfc-kutija-poruka-naslov { font-size: 17px; font-weight: 700; margin: 0 0 4px !important; color: #111; }
.mgfc-kutija-poruka-tekst { font-size: 15px; line-height: 1.5; margin: 0 0 12px !important; color: #333; }
.mgfc-dugmad-poruka { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.mgfc-dugme-poruka { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; min-width: 220px; padding: 0 20px; border-radius: 26px; font-size: 17px; font-weight: 600; line-height: 1; color: #fff !important; text-decoration: none !important; }
.mgfc-dugme-poruka i { font-size: 22px; line-height: 1; }
.mgfc-dugme-poruka:hover, .mgfc-dugme-poruka:focus-visible { filter: brightness(.92); outline: 2px solid #111; outline-offset: 2px; }
.mgfc-viber { background: #7360f2; }
.mgfc-whatsapp { background: #128c7e; }
.mgfc-brojevi { font-size: 14px; color: #5f5f5f; margin: 10px 0 0 !important; }
.mgfc-dno { max-width: 680px; margin: 34px auto 10px; }
.mgfc-poruka .mgfc-kutija-poruka { margin: 22px auto 16px; }
@media (max-width: 767px) {
	.mgfc-dugme-poruka { width: 100%; min-width: 0; }
}

/* Razmak između kutije za Viber i WhatsApp i pretrage na /citulje/ */
.mgfc-zaglavlje .mgfc-kutija-poruka + .mgfc-pretraga { margin-top: 32px; }
