/* Fronta (svi predlošci): greške uz polja, oznaka obaveznog polja, prazna stanja, FAQ, dokumenti, slike na mobitelu.
   Izgled kartica i gumba modula je u predlošku (templates/css/style.css). */

/* obavezno polje: zvjezdica uz oznaku (bila je u posebnom retku ispod) */
.formInfo { display: none !important; }   /* stara zvjezdica iza polja */
dl > div:has(> dd > [required]) > dt label::after,
dl > div:has(> dd > [required]) > dt:not(:has(label))::after,
.e5_field:has([required]) > label::after { content: " *"; color: #c5221f; font-weight: 700; }

/* greška uz polje */
.e5_has_err input:not([type=checkbox]):not([type=radio]), .e5_has_err select, .e5_has_err textarea { border-color: #d93025 !important; background-color: #fffafa; }
.e5_has_err input[type=checkbox], .e5_has_err input[type=radio] { outline: 2px solid #d93025; outline-offset: 2px; }
.e5_field_err { display: block; margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: #c5221f; }

/* prazna stranica / popis bez zapisa */
.e5_empty { margin: 1em 0; padding: 18px 20px; border: 1px dashed #c9ced6; border-radius: 6px; color: #5b6670; text-align: center; }

/* česta pitanja: harmonika */
.e5_faq { margin: 0 0 2em; border-top: 1px solid #e3e6ea; }
.e5_faq_item { border-bottom: 1px solid #e3e6ea; }
.e5_faq_item > summary { position: relative; padding: 16px 40px 16px 0; font-weight: 600; font-size: 1.05em; cursor: pointer; list-style: none; }
.e5_faq_item > summary::-webkit-details-marker { display: none; }
.e5_faq_item > summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.4em; font-weight: 400; line-height: 1; }
.e5_faq_item[open] > summary::after { content: "\2212"; }
.e5_faq_item > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.e5_faq_answer { padding: 0 0 18px; }
.e5_faq_answer > :first-child { margin-top: 0; }

/* dokumenti za preuzimanje */
.downloads_list { list-style: none; margin: 0 0 2em; padding: 0; }
.downloads_list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 0; border-bottom: 1px solid #e3e6ea; }
.downloads_list .div_image_home_downloads img { width: 32px; height: 32px; object-fit: contain; display: block; }
.downloads_list .e5_doc_title { flex: 1 1 220px; font-weight: 600; }
.downloads_list .e5_doc_meta { display: block; font-weight: 400; font-size: 13px; color: #5b6670; }
.downloads_list .e5_doc_btn { white-space: nowrap; }
.downloads_list p { flex-basis: 100%; margin: 0 0 0 46px; font-size: 14px; color: #5b6670; }

/* slike u tekstu: nikad šire od stupca; na mobitelu bez plutanja (tekst je bio stisnut uz sliku) */
.content article img, .basic_site_inner_content article img { max-width: 100%; height: auto; }
@media (max-width: 600px) {
	article figure[style*="float"] { float: none !important; margin: 0 0 14px !important; }
	article img[style*="float"] { float: none !important; display: block; margin: 0 0 14px; }
}

/* izbornik: podizbornik otvoren tipkovnicom/klikom (e5-front.js) */
nav li.e5_open > ul { display: block; }

/* navigacijski put ({%breadcrumbs%} u predlošku) */
.e5_breadcrumbs { margin: 0 0 18px; font-size: 14px; }
.e5_breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.e5_breadcrumbs li { display: inline-flex; align-items: center; color: #5b6670; }
.e5_breadcrumbs li + li::before { content: "\203A"; margin: 0 8px; color: #9aa3af; }
.e5_breadcrumbs a { text-decoration: none; }
.e5_breadcrumbs a:hover { text-decoration: underline; }
.e5_breadcrumbs [aria-current] { color: inherit; font-weight: 600; }

/* galerija preko stranice (e5-front.js, zamjena za Fancybox) */
html.e5_lb_open { overflow: hidden; }
.e5_lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 48px 56px; background: rgba(10, 12, 16, .92); }
.e5_lb_fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.e5_lb_fig img { display: block; max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.e5_lb_fig figcaption { margin-top: 12px; color: #e9ecef; font-size: 15px; text-align: center; }
.e5_lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; }
.e5_lb button:hover, .e5_lb button:focus-visible { background: rgba(255, 255, 255, .25); outline: 2px solid #fff; outline-offset: 2px; }
.e5_lb_close { top: 12px; right: 12px; }
.e5_lb_prev { left: 10px; top: 50%; transform: translateY(-50%); }
.e5_lb_next { right: 10px; top: 50%; transform: translateY(-50%); }
.e5_lb_count { position: absolute; top: 22px; left: 20px; color: #ced4da; font-size: 14px; }
@media (max-width: 600px) { .e5_lb { padding: 56px 8px; } .e5_lb_prev, .e5_lb_next { top: auto; bottom: 10px; transform: none; } }

/* pristupačnost: "Preskoči na sadržaj" vidljivo tek kad dobije fokus tipkovnicom; vidljiv fokus svuda */
.e5_skip { position: absolute; left: 12px; top: -60px; z-index: 100001; padding: 10px 16px; border-radius: 6px; background: #1d2329; color: #fff !important; font-weight: 600; text-decoration: none; transition: top .15s; }
.e5_skip:focus { top: 12px; }
#e5-content { outline: none; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #1f5fa8; outline-offset: 2px; }
