/* YADIM Advanced List. Every value that differs per list, level or device is a custom property printed by the server (see includes/AdvancedList.php);
   this file only says how they are used. Everything is scoped to .yadim-al, so no other Divi module is touched. */
.yadim-al, .yadim-al *, .yadim-al *::before, .yadim-al *::after { box-sizing: border-box; }
.yadim-al { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.yadim-al ul.al-list { list-style: none !important; margin: 0 !important; padding: 0; display: flex; min-width: 0; max-width: 100%; }
.yadim-al ul.al-list > li { list-style: none !important; margin: 0; padding: 0; min-width: 0; max-width: 100%; display: flex; flex-direction: column; }
.yadim-al ul.al-list > li::marker { content: none; }

/* one level: direction, spacing, alignment and indentation of its list, and the markers and icons of its items */
.al-n1 { flex-direction: var(--al-dir-1, column); gap: var(--al-gap-1, 8px); flex-wrap: var(--al-wrap, wrap); justify-content: var(--al-jc-1, flex-start); align-items: var(--al-ac-1, stretch); }
.al-n2 { flex-direction: var(--al-dir-2, column); gap: var(--al-gap-2, 8px); flex-wrap: var(--al-wrap, wrap); justify-content: var(--al-jc-2, flex-start); align-items: var(--al-ac-2, stretch); }
.al-n3 { flex-direction: var(--al-dir-3, column); gap: var(--al-gap-3, 8px); flex-wrap: var(--al-wrap, wrap); justify-content: var(--al-jc-3, flex-start); align-items: var(--al-ac-3, stretch); }
/* the indentation and the space above a nested list: written with the selector of the reset above (`.yadim-al ul.al-list { padding: 0 }`), which would win otherwise */
.yadim-al ul.al-n2 { padding-inline-start: var(--al-ind-2, 24px); margin-top: var(--al-gap-2, 8px) !important; }
.yadim-al ul.al-n3 { padding-inline-start: var(--al-ind-3, 24px); margin-top: var(--al-gap-3, 8px) !important; }
.al-l1 { --al-ms: var(--al-mks-1); --al-mc: var(--al-mkc-1); --al-mg: var(--al-mkg-1); --al-mr: var(--al-mkr-1); --al-cc: var(--al-icc-1); --al-cs: var(--al-ics-1); }
.al-l2 { --al-ms: var(--al-mks-2); --al-mc: var(--al-mkc-2); --al-mg: var(--al-mkg-2); --al-mr: var(--al-mkr-2); --al-cc: var(--al-icc-2); --al-cs: var(--al-ics-2); }
.al-l3 { --al-ms: var(--al-mks-3); --al-mc: var(--al-mkc-3); --al-mg: var(--al-mkg-3); --al-mr: var(--al-mkr-3); --al-cc: var(--al-icc-3); --al-cs: var(--al-ics-3); }

/* separators. A line: above every item but the first of a column, in front of every item but the first of a row. A character: centred above every item but the
   first of a column, in front of every item but the first of a row. The server sets, per level and device, which of them shows (display / border values). */
.al-n1 > .al-item + .al-item { border-top: var(--al-sb-1, 0 solid transparent); border-inline-start: var(--al-sl-1, 0 solid transparent); padding-inline-start: var(--al-sp-1, 0); }
.al-n2 > .al-item + .al-item { border-top: var(--al-sb-2, 0 solid transparent); border-inline-start: var(--al-sl-2, 0 solid transparent); padding-inline-start: var(--al-sp-2, 0); }
.al-n3 > .al-item + .al-item { border-top: var(--al-sb-3, 0 solid transparent); border-inline-start: var(--al-sl-3, 0 solid transparent); padding-inline-start: var(--al-sp-3, 0); }
.al-sep-dot { --al-sch: "\2022"; }
.al-sep-slash { --al-sch: "/"; }
.al-sep-pipe { --al-sch: "|"; }
.al-n1 > .al-item + .al-item > .al-row::before { content: var(--al-sch, none); display: var(--al-sh-1, none); }
.al-n2 > .al-item + .al-item > .al-row::before { content: var(--al-sch, none); display: var(--al-sh-2, none); }
.al-n3 > .al-item + .al-item > .al-row::before { content: var(--al-sch, none); display: var(--al-sh-3, none); }
.al-n1 > .al-item + .al-item::before { content: var(--al-sch, none); display: var(--al-sv-1, none); }
.al-n2 > .al-item + .al-item::before { content: var(--al-sch, none); display: var(--al-sv-2, none); }
.al-n3 > .al-item + .al-item::before { content: var(--al-sch, none); display: var(--al-sv-3, none); }
.al-item + .al-item > .al-row::before { flex: none; margin-inline-end: .6em; color: var(--al-sc, currentColor); }
.al-item + .al-item::before { align-self: center; line-height: 1; color: var(--al-sc, currentColor); }
.al-sep-dot .al-item + .al-item::before, .al-sep-dot .al-item + .al-item > .al-row::before { font-size: .7em; }
.al-row::before { display: none; }

/* alternating backgrounds (like the stripes of a table): the rows of each list count their own; written with no weight (:where), so the Design tab's
   background for the rows and the background of one item win */
:where(.al-alt .al-list > .al-item:nth-child(odd) > .al-row) { background: var(--al-alt1); }
:where(.al-alt .al-list > .al-item:nth-child(even) > .al-row) { background: var(--al-alt2); }

/* a row: marker, text or link, tooltip, toggle */
.al-row { position: relative; display: flex; align-items: center; justify-content: var(--al-ai, flex-start); min-width: 0; max-width: 100%; }
.al-label { min-width: 0; display: flex; align-items: flex-start; color: inherit; text-decoration: none; }
a.al-label:hover { text-decoration: underline; }
.al-tx { min-width: 0; overflow-wrap: anywhere; word-break: normal; }
.al-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.al-label:focus-visible, .al-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
.al-oc > .al-row .al-label { color: var(--al-itc) !important; }
.al-oh > .al-row:hover .al-label { color: var(--al-ith) !important; }
.al-ob > .al-row { background: var(--al-ibg) !important; }

/* markers. The marker is a box of the marker size; a text, emoji or icon marker draws at that font size inside it. Aligned with the first line, its box is
   centred on the first line of the text: the line height is the one of the row (no line-height of its own on the box, which would shrink 1lh to the marker). */
.al-mk { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--al-ims, var(--al-ms, 12px)); height: var(--al-ims, var(--al-ms, 12px)); margin-inline-end: var(--al-mg, 10px); color: var(--al-imc, var(--al-mc, currentColor)); transform: rotate(var(--al-imr, var(--al-mr, 0deg))); }
.al-mk.al-g-on { width: auto; min-width: var(--al-ims, var(--al-ms, 12px)); }
.al-mk .al-g { font-size: var(--al-ims, var(--al-ms, 12px)); line-height: 1; }
.al-ma-first .al-mk { align-self: flex-start; margin-top: calc((1.5em - var(--al-ims, var(--al-ms, 12px))) / 2); }
@supports (height: 1lh) { .al-ma-first .al-mk { margin-top: calc((1lh - var(--al-ims, var(--al-ms, 12px))) / 2); } }
.al-ma-center .al-mk { align-self: center; }
.al-ma-bottom .al-mk { align-self: flex-end; }
.al-mk .al-svg, .al-ic .al-svg, .al-ti .al-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.al-s { display: block; flex: none; background: currentColor; }
.al-s-dot { width: 50%; height: 50%; border-radius: 50%; }
.al-s-bullet { width: 85%; height: 85%; border-radius: 50%; }
.al-s-circle { width: 70%; height: 70%; border-radius: 50%; background: transparent; border: max(1.5px, .09em) solid currentColor; }
.al-s-square { width: 60%; height: 60%; }
.al-s-line { width: 100%; height: max(2px, 12%); border-radius: 1px; }
.al-g { display: inline-block; white-space: nowrap; }
.al-et { font-family: "ETmodules"; font-weight: 400; font-style: normal; text-transform: none; speak: never; }

/* the marker or icon of one device, when the devices differ */
.al-none { display: none !important; }
.al-v-t, .al-v-m, .al-v-tm { display: none; }
@media (max-width: 980px) and (min-width: 768px) {
  .al-v-d { display: none; }
  .al-v-t, .al-v-tm { display: inline-flex; }
}
@media (max-width: 767px) {
  .al-v-d, .al-v-dt, .al-v-t { display: none; }
  .al-v-m, .al-v-tm { display: inline-flex; }
}
@media (max-width: 980px) and (min-width: 768px) { .al-none.al-v-t, .al-none.al-v-tm { display: none !important; } }

/* trailing icons (the same: a box of the icon size, centred on the line, or on the first line, or at the bottom) */
.al-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--al-cs, 14px); height: var(--al-cs, 14px); margin-inline-start: var(--al-icg, 6px); color: var(--al-iic, var(--al-cc, currentColor)); transition: transform .2s ease, opacity .2s ease; }
.al-ic .al-g { font-size: var(--al-cs, 14px); line-height: 1; }
.al-ca-first .al-ic { align-self: flex-start; margin-top: calc((1.5em - var(--al-cs, 14px)) / 2); }
@supports (height: 1lh) { .al-ca-first .al-ic { margin-top: calc((1lh - var(--al-cs, 14px)) / 2); } }
.al-ca-center .al-ic { align-self: center; }
.al-ca-bottom .al-ic { align-self: flex-end; }
.al-ic-hover .al-ic, .al-ic-hoverfocus .al-ic { opacity: 0; }
.al-ic-hover .al-row:hover .al-ic, .al-ic-hoverfocus .al-row:hover .al-ic, .al-ic-hoverfocus .al-row:focus-within .al-ic { opacity: 1; }
@media (hover: none) { .al-ic-hover .al-ic, .al-ic-hoverfocus .al-ic { opacity: 1; } }
.al-ia-nudge .al-row:hover .al-ic, .al-ia-nudge .al-row:focus-within .al-ic { transform: translateX(4px); }
.al-ia-rise .al-row:hover .al-ic, .al-ia-rise .al-row:focus-within .al-ic { transform: translateY(-3px); }
.al-ia-rotate .al-row:hover .al-ic, .al-ia-rotate .al-row:focus-within .al-ic { transform: rotate(45deg); }
.al-ia-grow .al-row:hover .al-ic, .al-ia-grow .al-row:focus-within .al-ic { transform: scale(1.25); }

/* tooltips: shown on hover and keyboard focus of the text, never on their own */
.al-tip { position: absolute; z-index: 20; left: 0; top: 100%; margin-top: 4px; width: max-content; max-width: min(260px, 90vw); padding: .35em .65em; border-radius: 4px; background: #1d2327; color: #fff; font-size: .85em; line-height: 1.4; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(3px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
.al-label:hover ~ .al-tip, .al-label:focus ~ .al-tip, .al-label:focus-visible ~ .al-tip { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* the accordion: a button next to the text, kept apart from the link and the trailing icon */
.yadim-al:not(.al-js) .al-toggle { display: none; }
.al-toggle { appearance: none; -webkit-appearance: none; flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: var(--al-atch, 32px); min-height: var(--al-atch, 32px); margin: 0; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--al-acol, currentColor); font: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.al-pos-end .al-toggle { margin-inline-start: auto; }
.al-pos-start .al-toggle { margin-inline-end: 2px; }
.al-ti { display: inline-flex; width: var(--al-asz, 16px); height: var(--al-asz, 16px); transition: transform var(--al-dur, 300ms) ease; }
.al-toggle[aria-expanded="true"] .al-ti:not(.al-ti-plus) { transform: rotate(var(--al-arot, 90deg)); }
.al-ti-plus .al-v { transition: opacity var(--al-dur, 300ms) ease, transform var(--al-dur, 300ms) ease; transform-origin: center; }
.al-toggle[aria-expanded="true"] .al-ti-plus .al-v { opacity: 0; transform: rotate(90deg); }
.al-t-none { position: absolute; inset: 0; width: 100%; min-width: 0; min-height: 0; pointer-events: none; border-radius: 2px; }
.al-t-row .al-acc > .al-row { cursor: pointer; min-height: var(--al-atch, 32px); }
.al-t-row .al-acc > .al-row a { cursor: pointer; }

/* opening and closing: a row of height 0..1fr, so the height is animated without measuring it. Without the script (class al-js) everything is open. */
.al-panel { display: grid; grid-template-rows: 1fr; }
.al-panel-in { min-height: 0; overflow: hidden; padding: 3px; margin: -3px; }
.al-js .al-panel { transition: grid-template-rows var(--al-dur, 300ms) ease, opacity var(--al-dur, 300ms) ease, visibility 0s linear 0s; }
.al-js .al-acc:not(.is-open) > .al-panel { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows var(--al-dur, 300ms) ease, opacity var(--al-dur, 300ms) ease, visibility 0s linear var(--al-dur, 300ms); }
.al-an-fade.al-js .al-acc:not(.is-open) > .al-panel, .al-an-slide.al-js .al-acc:not(.is-open) > .al-panel { opacity: 0; }
.al-an-none.al-js .al-panel, .al-an-none.al-js .al-acc:not(.is-open) > .al-panel { transition: none; }
.al-an-fade.al-js .al-panel { transition: opacity var(--al-dur, 300ms) ease, visibility 0s linear 0s; }
.al-an-fade.al-js .al-acc:not(.is-open) > .al-panel { transition: opacity var(--al-dur, 300ms) ease, visibility 0s linear var(--al-dur, 300ms); }

/* narrow screens: nothing may leave the column */
@media (max-width: 767px) {
  .al-tip { max-width: min(220px, 80vw); }
}
@media (prefers-reduced-motion: reduce) {
  .yadim-al *, .yadim-al *::before, .yadim-al *::after { transition: none !important; animation: none !important; }
}
