/* Long-text pages (Pravilnik, Pravila privatnosti, Kolačići, Impresum, Izjava o pristupačnosti).
   Pattern of the HDF legal pages, in SLUK colours: plum #B1586C / #8E4456, cream #FEF0C3 / #FFF8E4 / #F6E3A8, text #2B2B2B, Rubik + Public Sans.
   Structure (sluk-setup/19-pravilnik.php): header band, then .sluk-legal-grid = .sluk-legal-toc (Table of Contents widget .sluk-toc) + .sluk-legal-text (Text Editor .sluk-legal). */

/* ---- layout: contents beside the text from 1025 px, stacked below (the boxed container puts its children in .e-con-inner) ---- */
html body .sluk-legal-grid > .e-con-inner { display: block; width: 100%; }
@media (min-width: 1025px) {
	html body .sluk-legal-grid > .e-con-inner { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 0 72px; align-items: start; }
	html body .sluk-legal-toc { position: sticky; top: 24px; min-width: 0; width: auto; align-self: start; }
}
html body .sluk-legal-text { min-width: 0; width: 100%; }
@media (max-width: 1024px) { html body .sluk-legal-toc { width: 100%; margin-bottom: 32px; } }

/* ---- header band extras: breadcrumbs, lead, buttons, meta ---- */
html body .sluk-crumbs { display: flex; flex-flow: row wrap; align-items: center; gap: 0 10px; position: relative; z-index: 2; margin: 0 0 22px; font: 600 15px/1.4 'Public Sans', sans-serif; color: #5E5054; }
html body .sluk-crumbs .elementor-widget { width: auto; }
html body .sluk-crumbs .elementor-heading-title { font: inherit; color: inherit; margin: 0; }
html body .sluk-crumbs a { color: #8E4456; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
html body .sluk-crumbs a:hover { text-decoration-thickness: 2px; }
html body .sluk-crumbs a:focus-visible { outline: 3px solid #16015F; outline-offset: 2px; border-radius: 2px; }
html body .elementor-widget.sluk-legal-lead { position: relative; z-index: 2; width: min(100%, 70ch); margin: 20px 0 0; }
html body .elementor-widget.sluk-legal-lead, html body .elementor-widget.sluk-legal-lead p { font: 400 18.5px/1.6 'Public Sans', sans-serif; color: #2B2B2B; }
@media (max-width: 575px) { html body .elementor-widget.sluk-legal-lead, html body .elementor-widget.sluk-legal-lead p { font-size: 17px; } }
html body .elementor-widget.sluk-legal-lead p { margin: 0; text-wrap: pretty; overflow-wrap: break-word; }
html body .elementor-widget.sluk-legal-lead p + p { margin-top: 10px; }
html body .sluk-legal-h1 { max-width: 100%; position: relative; z-index: 2; }
html body .sluk-legal-h1 .elementor-heading-title { text-transform: none !important; overflow-wrap: anywhere; hyphens: auto; }
html body .sluk-legal-actions { position: relative; z-index: 2; margin-top: 28px; }
html body .sluk-legal-actions .elementor-widget-button { width: auto; }
html body .sluk-legal-meta { position: relative; z-index: 2; margin: 14px 0 0; font: 400 15px/1.5 'Public Sans', sans-serif; color: #5E5054; }
html body .sluk-legal-meta p { margin: 0; }

/* ---- contents ---- */
html body .sluk-toc .elementor-toc__header { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 0; border-top: 3px solid #B1586C; }
html body .sluk-toc .elementor-toc__header-title { margin: 0; font: 700 15px/1 'Rubik', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8E4456; }
html body .sluk-toc .elementor-toc__toggle-button { min-width: 44px; min-height: 44px; color: #8E4456; background: transparent; border: 0; }
html body .sluk-toc .elementor-toc__body { padding: 14px 0 0; }
html body .sluk-toc .elementor-toc__list-wrapper, html body .sluk-toc .elementor-toc__list-wrapper ol, html body .sluk-toc .elementor-toc__list-item { list-style: none; margin: 0; padding: 0; }
html body .sluk-toc .elementor-toc__list-item::marker { content: none; font-size: 0; }
html body .sluk-toc .elementor-toc__list-item-text-wrapper::before, html body .sluk-toc .elementor-toc__list-item::before { content: none; display: none; }
html body .sluk-toc .elementor-toc__list-item a { display: flex; align-items: center; box-sizing: border-box; min-height: 40px; padding: 4px 8px 4px 14px; border-left: 3px solid #F6E3A8; font: 500 17px/1.3 'Public Sans', sans-serif; color: #3A2F33; text-decoration: none; border-radius: 0 8px 8px 0; }
html body .sluk-toc .elementor-toc__list-item-text-wrapper, html body .sluk-toc .elementor-toc__list-item-text { color: inherit; font: inherit; text-decoration: none; }
html body .sluk-toc .elementor-toc__list-item-text { display: block; }
html body .sluk-toc .elementor-toc__list-item + .elementor-toc__list-item { margin-top: 2px; }
html body .sluk-toc .elementor-toc__list-item a:hover { color: #8E4456; border-left-color: #8E4456; background: #FFF8E4; }
html body .sluk-toc .elementor-toc__list-item a:focus-visible { outline: 3px solid #16015F; outline-offset: -3px; }
html body .sluk-toc a[aria-current='true'] { color: #8E4456; font-weight: 700; border-left-color: #B1586C; background: #FFF8E4; }
html body .sluk-toc a.elementor-toc__list-item-text.toc-hang { position: relative; padding-left: calc(14px + 2.6em); }
html body .sluk-toc a.elementor-toc__list-item-text.toc-hang .toc-num { position: absolute; left: 14px; font-variant-numeric: tabular-nums; }
html body .sluk-toc .elementor-toc__no-headings { display: none; }
@media (min-width: 1025px) {
	html body .elementor-widget.sluk-toc.sluk-toc { border: 0; background: none; box-shadow: none; }
	html body .sluk-toc .elementor-toc__toggle-button { display: none; }
	html body .sluk-toc .elementor-toc__body { display: block; }
	html body .sluk-toc .elementor-toc__header { padding-left: 0; min-height: 0; }
}
/* tablet and phone: a collapsible box above the text; the whole header row is the button */
@media (max-width: 1024px) {
	html body .elementor-widget.sluk-toc.sluk-toc { border: 2px solid #F6E3A8; background: #FFF8E4; border-radius: 16px; overflow: hidden; }
	html body .sluk-toc .elementor-toc__header { position: relative; min-height: 56px; padding: 0 8px 0 20px; border-top: 0; }
	html body .sluk-toc .elementor-toc__toggle-button { position: absolute; inset: 0; width: 100%; min-width: 0; min-height: 56px; padding: 0 20px 0 0; box-sizing: border-box; align-items: center; justify-content: flex-end; cursor: pointer; z-index: 1; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
	html body .sluk-toc .elementor-toc__toggle-button svg { width: 14px; height: 14px; display: block; flex: none; }
	html body .sluk-toc .elementor-toc__toggle-button:focus-visible { outline: 3px solid #16015F; outline-offset: -3px; }
	html body .sluk-toc .elementor-toc__body { padding: 4px 20px 16px; border-top: 1px solid #F6E3A8; }
	html body .sluk-toc .elementor-toc__list-wrapper { columns: 2; column-gap: 32px; }
	html body .sluk-toc .elementor-toc__list-item { break-inside: avoid; }
	html body .sluk-toc .elementor-toc__list-item a { min-height: 44px; display: flex; align-items: center; padding: 6px 0 6px 12px; }
	html body .sluk-toc a.elementor-toc__list-item-text.toc-hang { padding-left: calc(12px + 2.4em); display: flex; }
	html body .sluk-toc a.elementor-toc__list-item-text.toc-hang .toc-num { left: 12px; }
}
@media (max-width: 767px) { html body .sluk-toc .elementor-toc__list-wrapper { columns: 1; } }

/* ---- running text ---- */
html body .sluk-legal { --lb: 17px; --llh: 1.75; --lh2t: 64px; --lh2b: 22px; --lh3t: 36px; font: 400 var(--lb)/var(--llh) 'Public Sans', sans-serif; color: #2B2B2B; }
@media (max-width: 1024px) { html body .sluk-legal { --lh2t: 52px; } }
@media (max-width: 575px) { html body .sluk-legal { --lb: 16px; --llh: 1.7; --lh2t: 44px; --lh2b: 18px; --lh3t: 30px; } }
html body .sluk-legal > * { max-width: 720px; }
html body .elementor-widget.sluk-legal > * + * { margin-top: 18px; margin-bottom: 0; }
html body .elementor-widget.sluk-legal > :first-child { margin-top: 0; }
html body .elementor-widget.sluk-legal p, html body .elementor-widget.sluk-legal ul, html body .elementor-widget.sluk-legal ol { margin-bottom: 0; text-wrap: pretty; overflow-wrap: break-word; }
html body .elementor-widget.sluk-legal h2 { margin: var(--lh2t) 0 var(--lh2b); padding-top: 22px; border-top: 2px solid #F6E3A8; font: 700 clamp(24px, 2.4vw, 32px)/1.2 'Rubik', sans-serif; color: #8E4456; scroll-margin-top: 96px; }
html body .elementor-widget.sluk-legal > h2:first-child, html body .elementor-widget.sluk-legal > .elementor-menu-anchor:first-child + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
html body .elementor-widget.sluk-legal h3 { margin: var(--lh3t) 0 10px; font: 700 20px/1.3 'Rubik', sans-serif; color: #2A2024; }
html body .elementor-widget.sluk-legal h2 + *, html body .elementor-widget.sluk-legal h3 + * { margin-top: 0; }
html body .sluk-legal strong { font-weight: 700; }
html body .sluk-legal ul, html body .sluk-legal ol { padding-left: 28px; }
html body .sluk-legal li + li { margin-top: 8px; }
html body .sluk-legal ul { list-style: none; }
html body .sluk-legal ul li { position: relative; }
html body .sluk-legal ul li::before { content: ""; position: absolute; left: -20px; top: calc(var(--llh) * .5em - 4px); width: 8px; height: 8px; border-radius: 50%; background: #FA9C44; }
html body .sluk-legal ol li::marker { font-weight: 700; color: #8E4456; }
html body .sluk-legal ol.alpha { list-style-type: lower-alpha; }
html body .sluk-legal ol.alpha li::marker { content: counter(list-item, lower-alpha) ") "; }
html body .sluk-legal .sign { margin-top: 32px; padding-left: 16px; border-left: 4px solid #FA9C44; }
/* link colour and underline: sluk-links/links.css */
html body .sluk-legal a[href^='mailto:'], html body .sluk-legal a[href^='tel:'] { font-weight: 600; white-space: nowrap; }

/* tables in the text (Kolačići): scroll sideways inside their own frame instead of widening the page */
html body .elementor-widget.sluk-legal table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
html body .elementor-widget.sluk-legal th, html body .elementor-widget.sluk-legal td { padding: 10px 14px; vertical-align: top; text-align: left; border: 1px solid #F6E3A8; min-width: 120px; }
html body .elementor-widget.sluk-legal th { background: #FFF8E4; color: #8E4456; font-family: 'Rubik', sans-serif; font-weight: 700; }
html body .elementor-widget.sluk-legal table:focus-visible { outline: 3px solid #16015F; outline-offset: 2px; }
html body .sluk-crumbs a { display: inline-block; padding: 10px 0; }
html body .sluk-crumbs { margin-bottom: 12px; }

html body .sluk-legal code { font: 500 .85em/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 1px 5px; border-radius: 4px; background: #FFF8E4; overflow-wrap: anywhere; }
/* Owner: no line under the "Sadržaj" heading */
html body .sluk-toc .elementor-toc__header,
html body .sluk-toc .elementor-toc__body { border-bottom: 0 !important; }
html body .sluk-toc .elementor-toc__body { border-top: 0 !important; }
