/* WEBandWIRE 1.0.7 — scoped UIkit/YOOtheme and Joomla rules. No global image inversion. */
html[data-ww-theme="dark"] {color-scheme:dark;background:var(--ww-bg)}
html[data-ww-theme="dark"] body {background:var(--ww-bg)!important;color:var(--ww-text)!important}
html[data-ww-theme="dark"] p.ww-theme-target,
html[data-ww-theme="dark"] li.ww-theme-target,
html[data-ww-theme="dark"] dt.ww-theme-target,
html[data-ww-theme="dark"] dd.ww-theme-target,
html[data-ww-theme="dark"] label.ww-theme-target,
html[data-ww-theme="dark"] legend.ww-theme-target,
html[data-ww-theme="dark"] td.ww-theme-target,
html[data-ww-theme="dark"] th.ww-theme-target,
html[data-ww-theme="dark"] figcaption.ww-theme-target,
html[data-ww-theme="dark"] blockquote.ww-theme-target,
html[data-ww-theme="dark"] .el-content.ww-theme-target,
html[data-ww-theme="dark"] .uk-panel.ww-theme-target,
html[data-ww-theme="dark"] .uk-text-lead.ww-theme-target,
html[data-ww-theme="dark"] .uk-text-meta.ww-theme-target,
html[data-ww-theme="dark"] .uk-text-emphasis.ww-theme-target{color:var(--ww-text)!important}
html[data-ww-theme="dark"] h1.ww-theme-target,
html[data-ww-theme="dark"] h2.ww-theme-target,
html[data-ww-theme="dark"] h3.ww-theme-target,
html[data-ww-theme="dark"] h4.ww-theme-target,
html[data-ww-theme="dark"] h5.ww-theme-target,
html[data-ww-theme="dark"] h6.ww-theme-target,
html[data-ww-theme="dark"] .uk-h1.ww-theme-target,
html[data-ww-theme="dark"] .uk-h2.ww-theme-target,
html[data-ww-theme="dark"] .uk-h3.ww-theme-target,
html[data-ww-theme="dark"] .uk-heading-small.ww-theme-target,
html[data-ww-theme="dark"] .uk-card-title.ww-theme-target,
html[data-ww-theme="dark"] .el-title.ww-theme-target{color:var(--ww-heading)!important}
html[data-ww-theme="dark"] small.ww-theme-target,
html[data-ww-theme="dark"] .uk-text-muted.ww-theme-target,
html[data-ww-theme="dark"] .text-muted.ww-theme-target,
html[data-ww-theme="dark"] .uk-article-meta.ww-theme-target{color:var(--ww-muted)!important}
html[data-ww-theme="dark"] a.ww-theme-target,
html[data-ww-theme="dark"] .uk-link.ww-theme-target,
html[data-ww-theme="dark"] .uk-navbar-nav>li>a.ww-theme-target,
html[data-ww-theme="dark"] .uk-nav>li>a.ww-theme-target,
html[data-ww-theme="dark"] .uk-navbar-toggle.ww-theme-target,
html[data-ww-theme="dark"] .uk-close.ww-theme-target,
html[data-ww-theme="dark"] .uk-icon-button.ww-theme-target{color:var(--ww-accent)!important}
html[data-ww-theme="dark"] a:hover.ww-theme-target,
html[data-ww-theme="dark"] a:focus-visible.ww-theme-target,
html[data-ww-theme="dark"] .uk-link:hover.ww-theme-target{color:var(--ww-hover)!important}
html[data-ww-theme="dark"] .uk-section-default.ww-theme-target,
html[data-ww-theme="dark"] .uk-section-muted.ww-theme-target,
html[data-ww-theme="dark"] .uk-section-primary.ww-theme-target,
html[data-ww-theme="dark"] .uk-section-secondary.ww-theme-target,
html[data-ww-theme="dark"] .uk-tile-default.ww-theme-target,
html[data-ww-theme="dark"] .uk-tile-muted.ww-theme-target,
html[data-ww-theme="dark"] .uk-background-default.ww-theme-target,
html[data-ww-theme="dark"] .uk-background-muted.ww-theme-target,
html[data-ww-theme="dark"] .tm-page.ww-theme-target,
html[data-ww-theme="dark"] .container-component.ww-theme-target{background-color:var(--ww-bg)!important;color:var(--ww-text)!important}
html[data-ww-theme="dark"] .uk-card.ww-theme-target,
html[data-ww-theme="dark"] .uk-tile-primary.ww-theme-target,
html[data-ww-theme="dark"] .uk-tile-secondary.ww-theme-target,
html[data-ww-theme="dark"] .uk-navbar-container.ww-theme-target,
html[data-ww-theme="dark"] .uk-navbar-dropdown.ww-theme-target,
html[data-ww-theme="dark"] .uk-dropdown.ww-theme-target,
html[data-ww-theme="dark"] .uk-modal-dialog.ww-theme-target,
html[data-ww-theme="dark"] .uk-offcanvas-bar.ww-theme-target,
html[data-ww-theme="dark"] .uk-search-input.ww-theme-target,
html[data-ww-theme="dark"] .uk-input.ww-theme-target,
html[data-ww-theme="dark"] .uk-select.ww-theme-target,
html[data-ww-theme="dark"] .uk-textarea.ww-theme-target,
html[data-ww-theme="dark"] .card.ww-theme-target,
html[data-ww-theme="dark"] .dropdown-menu.ww-theme-target,
html[data-ww-theme="dark"] input:not([type="checkbox"]):not([type="radio"]).ww-theme-target,
html[data-ww-theme="dark"] textarea.ww-theme-target,
html[data-ww-theme="dark"] select.ww-theme-target,
html[data-ww-theme="dark"] pre.ww-theme-target{background-color:var(--ww-surface)!important;color:var(--ww-text)!important;border-color:var(--ww-border)!important}
html[data-ww-theme="dark"] .uk-button-primary.ww-theme-target,
html[data-ww-theme="dark"] .uk-button-secondary.ww-theme-target,
html[data-ww-theme="dark"] .uk-button-default.ww-theme-target,
html[data-ww-theme="dark"] .btn-primary.ww-theme-target,
html[data-ww-theme="dark"] button[type="submit"].ww-theme-target,
html[data-ww-theme="dark"] input[type="submit"].ww-theme-target{background:var(--ww-button)!important;color:var(--ww-buttontext)!important;border-color:var(--ww-border)!important}
html[data-ww-theme="dark"] .uk-button-text.ww-theme-target,
html[data-ww-theme="dark"] .uk-button-link.ww-theme-target{color:var(--ww-accent)!important}
html[data-ww-theme="dark"] hr.ww-theme-target,
html[data-ww-theme="dark"] .uk-divider-small.ww-theme-target,
html[data-ww-theme="dark"] .uk-table-divider>tr.ww-theme-target,
html[data-ww-theme="dark"] .uk-table-divider>:first-child>tr:not(:first-child).ww-theme-target,
html[data-ww-theme="dark"] .uk-table-divider>:not(:first-child)>tr.ww-theme-target{border-color:var(--ww-border)!important}
html[data-ww-theme="dark"] .uk-table-striped>tr:nth-of-type(odd).ww-theme-target,
html[data-ww-theme="dark"] .uk-table-striped tbody tr:nth-of-type(odd).ww-theme-target{background:var(--ww-surface)!important}
html[data-ww-theme="dark"] a:focus-visible.ww-theme-target,
html[data-ww-theme="dark"] button:focus-visible.ww-theme-target,
html[data-ww-theme="dark"] input:focus-visible.ww-theme-target,
html[data-ww-theme="dark"] textarea:focus-visible.ww-theme-target,
html[data-ww-theme="dark"] select:focus-visible.ww-theme-target{outline:3px solid var(--ww-accent)!important;outline-offset:3px}

html[data-ww-theme="dark"][data-ww-logo="1"] .uk-logo.ww-theme-target {background:#fff!important;border-radius:8px;padding:6px 10px;}
html[data-ww-theme="dark"][data-ww-decor="1"] img.ww-theme-target[alt^="Stilelement"] {opacity:.22!important;}
/* Controls use an isolated palette in both light and dark mode. */
#ww-display {position:fixed!important;z-index:10000;top:0;left:0;max-width:calc(100vw - 16px);font:16px/1.5 system-ui,sans-serif!important;color:#e5edf5!important;text-align:left;}
#ww-display *{box-sizing:border-box}
#ww-display [hidden]{display:none!important}
#ww-display button,#ww-display select{font:inherit!important;letter-spacing:normal;text-transform:none;min-height:44px;border:1px solid #50677d;border-radius:8px;background:#192838;color:#e5edf5!important;padding:8px 12px;cursor:pointer;line-height:1.5!important;margin:0;}
#ww-display button:hover{background:#263e54}
#ww-display button:focus-visible,#ww-display select:focus-visible{outline:3px solid #58c4ff;outline-offset:3px}
#ww-display button:disabled{opacity:.45;cursor:default}
#ww-display #ww-display-toggle{position:relative;z-index:1;border-top:0;border-radius:0 0 12px 12px;background:#1376b4;color:#fff!important;box-shadow:0 4px 20px #0004;display:flex;align-items:center;gap:8px;margin:0!important}
#ww-display-panel{width:280px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;background:#101923;border:1px solid #50677d;border-radius:12px;padding:18px;position:fixed;top:0;left:0;visibility:hidden;pointer-events:none;opacity:0;transform:translateY(-18px);clip-path:inset(0 0 100% 0);transition:transform .32s ease,clip-path .32s ease,opacity .22s ease,visibility 0s linear .32s;box-shadow:0 8px 32px #0005;}
#ww-display strong,#ww-display label,#ww-font-label,#ww-display small{display:block}
#ww-display strong{font-size:18px;color:#fff;margin-bottom:14px}
#ww-display select{width:100%;margin:6px 0 16px}
#ww-display .ww-font-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 16px}
#ww-display output{font-size:16px;color:#e5edf5}
#ww-display #ww-reset{width:100%}
#ww-display small{font-size:12px;margin-top:12px;color:#b5c4d5}
#ww-display.ww-open #ww-display-panel{visibility:visible;pointer-events:auto;opacity:1;transform:translateY(0);clip-path:inset(0 0 0 0);transition-delay:0s}
#ww-display .ww-chevron{display:inline-block;transition:transform .32s ease}
#ww-display.ww-open .ww-chevron{transform:rotate(180deg)}
#ww-display #ww-display-toggle:hover{background:#0f6297}
@media(prefers-reduced-motion:reduce){#ww-display-panel,#ww-display .ww-chevron{transition:none!important}}
@media print{#ww-display{display:none!important}}
html[data-ww-theme="dark"] span.ww-theme-target:not([class*="icon"]),html[data-ww-theme="dark"] strong.ww-theme-target,html[data-ww-theme="dark"] em.ww-theme-target {color:inherit!important}
html[data-ww-theme="dark"] .uk-text-primary.ww-theme-target {color:var(--ww-accent)!important}

/* Slide direction and flag shape follow the selected screen edge. */
#ww-display[data-edge="bottom"] #ww-display-toggle{border:1px solid #50677d;border-bottom:0;border-radius:12px 12px 0 0}
#ww-display[data-edge="left"] #ww-display-toggle,#ww-display[data-edge="right"] #ww-display-toggle{writing-mode:vertical-rl;min-width:44px;min-height:120px;padding:12px 8px;border:1px solid #50677d}
#ww-display[data-edge="left"] #ww-display-toggle{border-left:0;border-radius:0 12px 12px 0}
#ww-display[data-edge="right"] #ww-display-toggle{border-right:0;border-radius:12px 0 0 12px}
#ww-display[data-edge="bottom"] #ww-display-panel{transform:translateY(18px);clip-path:inset(100% 0 0 0)}
#ww-display[data-edge="left"] #ww-display-panel{transform:translateX(-18px);clip-path:inset(0 100% 0 0)}
#ww-display[data-edge="right"] #ww-display-panel{transform:translateX(18px);clip-path:inset(0 0 0 100%)}
#ww-display.ww-open #ww-display-panel{transform:translate(0,0);clip-path:inset(0 0 0 0)}
#ww-display[data-edge="bottom"] .ww-chevron{rotate:180deg}
#ww-display[data-edge="left"] .ww-chevron{rotate:-90deg}
#ww-display[data-edge="right"] .ww-chevron{rotate:90deg}

/* Compact and symbol-only flags; full-size menu remains unchanged. */
#ww-display[data-size="compact"] #ww-display-toggle,#ww-display[data-size="icon"] #ww-display-toggle{font-size:13px!important;min-height:32px;min-width:32px;padding:4px 8px;gap:5px;box-shadow:0 2px 7px #0002}
#ww-display[data-size="compact"][data-edge="left"] #ww-display-toggle,#ww-display[data-size="compact"][data-edge="right"] #ww-display-toggle{min-width:32px;min-height:88px;padding:8px 4px}
#ww-display[data-size="icon"] #ww-display-toggle{writing-mode:horizontal-tb;width:58px;height:32px;padding:4px;justify-content:center;font-size:18px!important}
#ww-display[data-size="icon"] .ww-flag-label,#ww-display[data-size="icon"] .ww-chevron{display:none}
@media(pointer:coarse){#ww-display[data-size] #ww-display-toggle{min-width:44px;min-height:44px}}
/* Convert Forms: the wrapper's white background caused white-on-white labels. */
html[data-ww-theme="dark"] .convertforms.ww-theme-target{background:var(--ww-surface)!important;color:var(--ww-text)!important;border-color:var(--ww-border)!important}
html[data-ww-theme="dark"] .convertforms .cf-label.ww-theme-target,
html[data-ww-theme="dark"] .convertforms .cf-control-input-desc.ww-theme-target{color:var(--ww-text)!important}
html[data-ww-theme="dark"] .convertforms .cf-input.ww-theme-target:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]){background:var(--ww-bg)!important;color:var(--ww-text)!important;-webkit-text-fill-color:var(--ww-text)!important;caret-color:var(--ww-text);border-color:var(--ww-border)!important}
html[data-ww-theme="dark"] input.ww-theme-target::placeholder,
html[data-ww-theme="dark"] textarea.ww-theme-target::placeholder{color:var(--ww-muted)!important;-webkit-text-fill-color:var(--ww-muted)!important;opacity:1!important}
html[data-ww-theme="dark"] .convertforms input.ww-theme-target:is([type="checkbox"],[type="radio"]){accent-color:var(--ww-accent)}
/* A signature uses dark ink; leave its drawing surface light. */
html[data-ww-theme="dark"] .convertforms canvas.ww-theme-target{background:#fff!important;border:1px solid var(--ww-border)}

/* Both controls are represented in every flag size. */
#ww-display .ww-flag-symbols{display:inline-flex;align-items:center;justify-content:center;gap:5px;writing-mode:horizontal-tb;flex-shrink:0;line-height:1}
#ww-display .ww-theme-symbol{font-size:18px}
#ww-display .ww-font-symbol{font-size:14px;font-weight:600;letter-spacing:-1px}
#ww-display[data-edge="left"] .ww-flag-symbols,#ww-display[data-edge="right"] .ww-flag-symbols{flex-direction:column;gap:4px}
#ww-display[data-size="icon"][data-edge="left"] #ww-display-toggle,#ww-display[data-size="icon"][data-edge="right"] #ww-display-toggle{width:32px;height:58px;min-height:58px}

/* toTop: keep UIkit/YOOtheme arrows visible, including explicit SVG strokes.
   Tagged controls respect configured excluded subtrees. */
html[data-ww-theme="dark"] :is(.uk-totop, [uk-totop], [data-uk-totop], #toTop, #totop).ww-theme-target {
    color:var(--ww-accent)!important;
}
html[data-ww-theme="dark"] :is(.uk-totop, [uk-totop], [data-uk-totop], #toTop, #totop).ww-theme-target:is(:hover, :focus-visible) {
    color:var(--ww-hover)!important;
}
html[data-ww-theme="dark"] :is(.uk-totop, [uk-totop], [data-uk-totop], #toTop, #totop).ww-theme-target svg {
    color:inherit!important;
}
html[data-ww-theme="dark"] :is(.uk-totop, [uk-totop], [data-uk-totop], #toTop, #totop).ww-theme-target svg :is(polyline, line, [stroke]:not([stroke="none"])) {
    stroke:currentColor!important;
}

/* Scroll To CK uses an external SVG background, not an inline UIkit icon.
   Filter only this icon: preserve its shape, size and transparent background. */
html[data-ww-theme="dark"] .scrollToTop.ww-theme-target .scrollToTop-icon.ww-theme-target {
    filter:brightness(0) invert(1)!important;
}
