/* Wallpaper Minimal Helper 1.3.8 — independent UX layouts. Loaded after previous styles and before custom.css.
   All selectors are scoped to .wmh-downloads; existing user CSS continues to override these rules. */
.wmh-downloads.wmh-configurable{isolation:isolate;overflow:visible}
.wmh-downloads .wmh-downloads-head{margin-bottom:17px}
.wmh-downloads .wmh-downloads-head h2{font-size:clamp(20px,2.4vw,26px);font-weight:700;line-height:1.3}
.wmh-downloads .wmh-download-actions{display:flex;align-items:stretch;gap:10px;min-width:0}
.wmh-downloads .wmh-download-actions>.wmh-original{min-width:0;flex-shrink:1;margin-top:0;margin-bottom:0}
.wmh-downloads .wmh-original{gap:12px;text-decoration:none!important;position:relative}
.wmh-downloads .wmh-original:focus-visible,.wmh-downloads .wmh-size:focus-visible,.wmh-downloads .wmh-picker-trigger:focus-visible{outline:2px solid var(--wmh-action);outline-offset:3px}
.wmh-downloads .wmh-original-icon,.wmh-downloads .wmh-download-icon{display:grid;place-items:center}
.wmh-downloads .wmh-original-icon .wmh-svg,.wmh-downloads .wmh-original-icon .wmh-fa{width:23px;height:23px;font-size:21px}
.wmh-downloads .wmh-fa{display:inline-block;font-size:1em;line-height:1}
.wmh-downloads .wmh-device-icon{display:inline-flex;justify-content:center;align-items:center;vertical-align:middle;color:var(--wmh-action);flex:none}
.wmh-downloads .wmh-device-icon .wmh-svg{width:18px;height:18px}
.wmh-downloads .wmh-count{font-weight:400!important;font-size:12px!important;white-space:nowrap;color:var(--wmh-muted)}
.wmh-downloads .wmh-group-list{overflow:visible}
.wmh-downloads .wmh-size-copy{display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.35}
.wmh-downloads .wmh-size-cta{display:block;font-style:normal}
.wmh-downloads .wmh-download-note{margin-top:14px}
.wmh-downloads .wmh-size:hover .wmh-download-icon{transform:translateY(1px)}
.wmh-downloads .wmh-download-icon{transition:transform .2s ease}
.wmh-downloads.wmh-hide-count .wmh-count{display:none!important}
.wmh-downloads.wmh-hide-note>.wmh-download-note{display:none!important}
.wmh-downloads.wmh-hide-intro .wmh-downloads-head p{display:none!important}
.wmh-downloads.wmh-hide-original_meta .wmh-original-copy small{display:none!important}
.wmh-downloads.wmh-style-cards .wmh-group-list{display:grid;gap:12px;border:0}
.wmh-downloads.wmh-style-cards .wmh-group{overflow:visible;border:1px solid var(--wmh-border);background:var(--wmh-panel);border-radius:var(--wmh-ui-group-radius,14px)}
.wmh-downloads.wmh-style-cards .wmh-group summary{display:flex;align-items:center;gap:10px;padding:16px 18px}
.wmh-downloads.wmh-style-cards .wmh-group summary .wmh-count{margin-left:auto}
.wmh-downloads.wmh-style-cards .wmh-group[open] summary{border-bottom:1px solid var(--wmh-border)}
.wmh-downloads.wmh-style-cards .wmh-size-grid{display:grid;grid-template-columns:repeat(var(--wmh-ui-columns,2),minmax(0,1fr));gap:var(--wmh-ui-gap,10px);padding:14px}
.wmh-downloads.wmh-style-cards .wmh-size{border:1px solid var(--wmh-border);background:var(--wmh-surface);border-radius:var(--wmh-ui-tile-radius,12px)}
/* LIST: permanently visible groups, simple links, no accordion. */
.wmh-downloads.wmh-style-list .wmh-group-list{display:block;margin-top:20px;border:0}
.wmh-downloads.wmh-style-list .wmh-group{padding:0 0 16px;margin:0 0 17px;border:0;border-bottom:1px solid var(--wmh-border);border-radius:0}
.wmh-downloads.wmh-style-list .wmh-group h3{display:flex;align-items:center;gap:9px;margin:0 0 8px!important;font-size:15px;line-height:1.45;font-weight:700;color:var(--wmh-ink)}
.wmh-downloads.wmh-style-list .wmh-group h3 .wmh-count{margin-left:auto}
.wmh-downloads.wmh-style-list .wmh-size-grid{display:grid;grid-template-columns:repeat(var(--wmh-ui-columns,2),minmax(0,1fr));gap:2px 24px;padding:0}
.wmh-downloads.wmh-style-list .wmh-size{display:flex;flex-direction:row;align-items:center;min-height:39px;padding:8px 3px;border:0;border-bottom:1px solid var(--wmh-border);background:transparent;border-radius:0;gap:8px}
.wmh-downloads.wmh-style-list .wmh-size-copy{flex:1;flex-direction:row;align-items:baseline;gap:12px}
.wmh-downloads.wmh-style-list .wmh-size strong{font-size:14px;color:var(--wmh-action)}
.wmh-downloads.wmh-style-list .wmh-size-label{font-size:12px;line-height:1.25;text-align:right;flex:1}
.wmh-downloads.wmh-style-list .wmh-download-icon{border:0;width:18px;height:18px;opacity:.8}
.wmh-downloads.wmh-style-list .wmh-size:hover{color:var(--wmh-action)!important;background:var(--wmh-surface);border-color:var(--wmh-action)}
/* COLUMNS: direct, always visible, information-dense columns with horizontal dimension links. */
.wmh-downloads.wmh-style-columns .wmh-downloads-head{margin-bottom:13px}
.wmh-downloads.wmh-style-columns .wmh-group-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr));gap:18px 20px;margin-top:23px;padding:20px 0;border:0;border-top:1px solid var(--wmh-border);border-bottom:1px solid var(--wmh-border);border-radius:0}
.wmh-downloads.wmh-style-columns .wmh-group{padding:0;border:0;border-radius:0;min-width:0}
.wmh-downloads.wmh-style-columns .wmh-group h3{display:flex;align-items:center;gap:6px;margin:0 0 10px!important;font-size:12px;line-height:1.35;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:var(--wmh-muted)}
.wmh-downloads.wmh-style-columns .wmh-group h3 .wmh-count{display:none}
.wmh-downloads.wmh-style-columns .wmh-device-icon{color:var(--wmh-muted)}
.wmh-downloads.wmh-style-columns .wmh-device-icon .wmh-svg{width:16px;height:16px}
.wmh-downloads.wmh-style-columns .wmh-size-grid{display:flex;flex-direction:column;gap:0;padding:0}
.wmh-downloads.wmh-style-columns .wmh-size{display:block;min-height:0;padding:5px 2px;background:transparent;border:0;border-radius:0;color:var(--wmh-action)!important;line-height:1.4}
.wmh-downloads.wmh-style-columns .wmh-size strong{font-size:13px;line-height:1.45;font-weight:600}
.wmh-downloads.wmh-style-columns .wmh-size-label,.wmh-downloads.wmh-style-columns .wmh-size-cta,.wmh-downloads.wmh-style-columns .wmh-download-icon{display:none!important}
.wmh-downloads.wmh-style-columns .wmh-size:hover,.wmh-downloads.wmh-style-columns .wmh-size:focus-visible{background:transparent;text-decoration:underline!important;text-underline-offset:3px}
/* BUTTONS: tangible modern download actions, distinct icon compartment. */
.wmh-downloads.wmh-style-buttons .wmh-group-list{display:grid;gap:17px;margin-top:23px;border:0}
.wmh-downloads.wmh-style-buttons .wmh-group{background:transparent;border:0;border-radius:0}
.wmh-downloads.wmh-style-buttons .wmh-group h3{display:flex;align-items:center;gap:9px;margin:0 0 10px!important;font-size:15px;font-weight:700;line-height:1.4;color:var(--wmh-ink)}
.wmh-downloads.wmh-style-buttons .wmh-group h3 .wmh-count{margin-left:auto}
.wmh-downloads.wmh-style-buttons .wmh-size-grid{display:grid;grid-template-columns:repeat(var(--wmh-ui-columns,2),minmax(0,1fr));gap:var(--wmh-ui-gap,10px);padding:0}
.wmh-downloads.wmh-style-buttons .wmh-size{min-height:65px;display:flex;align-items:stretch;gap:0;padding:0;background:var(--wmh-surface);border:1px solid var(--wmh-border);border-radius:var(--wmh-ui-tile-radius,12px);overflow:hidden;box-shadow:0 2px 4px rgba(0,0,0,.04)}
.wmh-downloads.wmh-style-buttons .wmh-size-copy{display:flex;justify-content:center;flex:1;gap:3px;padding:12px 15px}
.wmh-downloads.wmh-style-buttons .wmh-size strong{font-size:15px;line-height:1.3}
.wmh-downloads.wmh-style-buttons .wmh-size-label{font-size:11px}
.wmh-downloads.wmh-style-buttons .wmh-download-icon{margin:0;align-self:stretch;display:grid;place-items:center;width:56px;height:auto;border:0;border-left:1px solid var(--wmh-border);border-radius:0;background:color-mix(in srgb,var(--wmh-action) 9%,var(--wmh-panel));color:var(--wmh-action)}
.wmh-downloads.wmh-style-buttons .wmh-size:hover{border-color:var(--wmh-action);box-shadow:0 4px 12px rgba(0,0,0,.08)}
.wmh-downloads.wmh-style-buttons .wmh-size:hover .wmh-download-icon{background:var(--wmh-action);color:var(--wmh-on-action);transform:none}
.wmh-downloads.wmh-style-buttons .wmh-original-icon{order:2;margin-left:auto;border:0;border-left:1px solid currentColor;border-radius:0;width:60px;flex-basis:60px;height:100%;min-height:50px}
.wmh-downloads.wmh-style-buttons .wmh-original-copy{order:1}
/* Explicit split button style works with Cards/List/Columns/Dropdown too. */
.wmh-downloads.wmh-button-split .wmh-original{padding:0;overflow:hidden;gap:0}
.wmh-downloads.wmh-button-split .wmh-original-copy{order:0;padding:15px 18px;flex:1}
.wmh-downloads.wmh-button-split .wmh-original-icon{order:1;display:grid;place-items:center;flex:0 0 63px;margin:0;align-self:stretch;width:63px;height:auto;min-height:54px;border:0;border-left:1px solid color-mix(in srgb,currentColor 26%,transparent);border-radius:0;background:color-mix(in srgb,currentColor 9%,transparent)}
.wmh-downloads.wmh-button-split .wmh-original-icon .wmh-svg{width:27px;height:27px}
.wmh-downloads.wmh-button-split .wmh-original-copy strong{font-size:16px}
/* DROPDOWN: full main original action alongside a concise native <details> size selector. */
.wmh-downloads.wmh-style-dropdown .wmh-download-actions{position:relative;align-items:stretch;gap:8px}
.wmh-downloads.wmh-style-dropdown .wmh-original{flex:1 1 auto!important;width:auto!important;min-width:0;max-width:none;white-space:normal}
.wmh-downloads.wmh-style-dropdown .wmh-picker{position:relative;flex:0 1 215px;min-width:166px;align-self:stretch}
.wmh-downloads.wmh-style-dropdown .wmh-picker-trigger{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;list-style:none;min-height:var(--wmh-ui-button-height,76px);height:100%;padding:13px 15px;color:var(--wmh-ink);background:var(--wmh-surface);border:1px solid var(--wmh-border);border-radius:var(--wmh-ui-button-radius,14px);font-size:14px;font-weight:650;line-height:1.25;transition:background .15s ease,border-color .15s ease}
.wmh-downloads .wmh-picker-trigger::-webkit-details-marker{display:none}
.wmh-downloads .wmh-picker-trigger::marker{content:''}
.wmh-downloads.wmh-style-dropdown .wmh-picker[open]>.wmh-picker-trigger,.wmh-downloads.wmh-style-dropdown .wmh-picker-trigger:hover{background:var(--wmh-surface-hover);border-color:var(--wmh-action)}
.wmh-downloads.wmh-style-dropdown .wmh-picker-arrow{display:inline-flex;align-items:center;flex:none;color:var(--wmh-action);transition:transform .15s ease}
.wmh-downloads.wmh-style-dropdown .wmh-picker[open] .wmh-picker-arrow{transform:rotate(180deg)}
.wmh-downloads.wmh-style-dropdown .wmh-picker-arrow .wmh-svg{width:18px;height:18px}
.wmh-downloads.wmh-style-dropdown .wmh-picker-menu{position:absolute;z-index:99;top:calc(100% + 7px);right:0;width:min(380px,calc(100vw - 32px));max-height:min(70vh,450px);overscroll-behavior:contain;overflow-y:auto;padding:8px;background:var(--wmh-panel);border:1px solid var(--wmh-border);border-radius:var(--wmh-ui-group-radius,14px);box-shadow:0 16px 42px rgba(0,0,0,.17)}
.wmh-downloads.wmh-style-dropdown .wmh-picker-section{padding:9px 6px 6px}
.wmh-downloads.wmh-style-dropdown .wmh-picker-section:not(:last-child){border-bottom:1px solid var(--wmh-border)}
.wmh-downloads.wmh-style-dropdown .wmh-picker-section h3{display:flex;align-items:center;gap:8px;margin:0 0 5px;padding:4px 7px;color:var(--wmh-muted);font-size:12px;letter-spacing:.02em;font-weight:700;line-height:1.3}
.wmh-downloads.wmh-style-dropdown .wmh-picker-section .wmh-size{display:flex;min-height:40px;align-items:center;gap:8px;padding:7px 10px;background:transparent;border:0;border-radius:calc(var(--wmh-ui-tile-radius,12px) / 2)}
.wmh-downloads.wmh-style-dropdown .wmh-picker-section .wmh-size-copy{display:flex;flex-direction:row;align-items:baseline;gap:10px;flex:1}
.wmh-downloads.wmh-style-dropdown .wmh-picker-section .wmh-size strong{font-size:13px}
.wmh-downloads.wmh-style-dropdown .wmh-picker-section .wmh-size small{font-size:11px;flex:1;text-align:right}
.wmh-downloads.wmh-style-dropdown .wmh-picker-section .wmh-download-icon{width:17px;height:17px;border:0}
.wmh-downloads.wmh-style-dropdown .wmh-picker-section .wmh-size:hover,.wmh-downloads.wmh-style-dropdown .wmh-picker-section .wmh-size:focus-visible{background:var(--wmh-surface-hover)}
.wmh-downloads.wmh-style-dropdown .wmh-picker-section .wmh-size-cta{display:none}
/* Configurable width and alignment apply to the complete split action row. */
.wmh-downloads.wmh-style-dropdown.wmh-width-75 .wmh-download-actions{width:75%}
.wmh-downloads.wmh-style-dropdown.wmh-width-50 .wmh-download-actions{width:50%}
.wmh-downloads.wmh-style-dropdown.wmh-width-auto .wmh-download-actions{width:fit-content;max-width:100%}
.wmh-downloads.wmh-style-dropdown.wmh-align-center .wmh-download-actions{margin-inline:auto}
.wmh-downloads.wmh-style-dropdown.wmh-align-right .wmh-download-actions{margin-left:auto;margin-right:0}
.wmh-downloads.wmh-style-dropdown.wmh-align-left .wmh-download-actions{margin-left:0;margin-right:auto}
.wmh-downloads.wmh-style-dropdown .wmh-download-actions>.wmh-picker:first-child{flex:1 1 auto}
.wmh-downloads.wmh-style-dropdown .wmh-download-actions>.wmh-picker:first-child .wmh-picker-menu{right:auto;left:0}
@media(max-width:800px){
 .wmh-downloads.wmh-style-columns .wmh-group-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 15px}
}
@media(max-width:640px){
 .wmh-downloads.wmh-style-cards .wmh-size-grid,.wmh-downloads.wmh-style-list .wmh-size-grid,.wmh-downloads.wmh-style-buttons .wmh-size-grid{grid-template-columns:repeat(var(--wmh-ui-columns-mobile,1),minmax(0,1fr))}
 .wmh-downloads.wmh-style-columns .wmh-group-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 13px}
 .wmh-downloads.wmh-style-dropdown .wmh-download-actions{width:100%!important;flex-wrap:wrap}
 .wmh-downloads.wmh-style-dropdown .wmh-download-actions>.wmh-original{width:100%!important;flex:1 1 100%!important}
 .wmh-downloads.wmh-style-dropdown .wmh-picker{flex:1 1 100%;min-width:0}
 .wmh-downloads.wmh-style-dropdown .wmh-picker-trigger{min-height:48px;padding:11px 16px}
 .wmh-downloads.wmh-style-dropdown .wmh-picker-menu{position:static;width:100%;max-height:310px;box-shadow:0 6px 16px rgba(0,0,0,.09);margin-top:6px}
 .wmh-downloads.wmh-style-list .wmh-size-copy{gap:8px}
}
@media(max-width:360px){
 .wmh-downloads.wmh-style-columns .wmh-group-list{grid-template-columns:1fr 1fr}
 .wmh-downloads.wmh-style-columns .wmh-size strong{font-size:12px}
 .wmh-downloads.wmh-style-list .wmh-size-label{display:none}
}
@media(prefers-reduced-motion:reduce){.wmh-downloads .wmh-original,.wmh-downloads .wmh-size,.wmh-downloads .wmh-picker-trigger,.wmh-downloads .wmh-picker-arrow{transition:none}}
.wmh-downloads.wmh-hide-group-icons .wmh-device-icon{display:none!important}
.wmh-design-preview .wmh-preview-variant[hidden]{display:none!important}
.wmh-design-preview .wmh-preview-variant .wmh-downloads{margin:16px auto 12px}
/* Respect layout-specific spacing even when density modifiers are active. */
.wmh-downloads.wmh-configurable.wmh-style-columns .wmh-size{min-height:0;padding:5px 2px}
.wmh-downloads.wmh-configurable.wmh-style-list .wmh-size{min-height:38px;padding:7px 3px}
.wmh-downloads.wmh-configurable.wmh-style-buttons .wmh-size{padding:0}
.wmh-downloads.wmh-configurable.wmh-style-dropdown .wmh-picker-section .wmh-size{min-height:40px;padding:7px 10px}
/* Dark mode must be legible even inside a light WordPress theme. */
.wmh-downloads.wmh-configurable.wmh-mode-dark{background:var(--wmh-panel);border-radius:var(--wmh-ui-outer-radius,18px);padding:20px}
@media(prefers-color-scheme:dark){.wmh-downloads.wmh-configurable.wmh-mode-auto{background:var(--wmh-panel);border-radius:var(--wmh-ui-outer-radius,18px);padding:20px}}
@media(max-width:640px){.wmh-downloads.wmh-configurable.wmh-mode-dark{padding:15px}}

/* WMH 1.3.11: Split is a separate button structure, not a recolored Filled button. */
.wmh-downloads.wmh-configurable.wmh-button-split .wmh-original{display:flex;align-items:stretch;gap:0;padding:0;overflow:hidden;background:var(--wmh-action);color:var(--wmh-on-action)!important;border:1px solid var(--wmh-action)}
.wmh-downloads.wmh-configurable.wmh-button-split .wmh-original:hover{background:var(--wmh-action-hover);color:var(--wmh-on-action)!important;border-color:var(--wmh-action-hover)}
.wmh-downloads.wmh-configurable.wmh-button-split .wmh-original-copy{order:1;flex:1 1 auto;min-width:0;display:flex;justify-content:center;align-items:flex-start;flex-direction:column;padding:12px 18px;margin:0}
.wmh-downloads.wmh-configurable.wmh-button-split.wmh-content-center .wmh-original-copy{align-items:center;text-align:center}
.wmh-downloads.wmh-configurable.wmh-button-split .wmh-original-icon{display:grid;place-items:center;align-self:stretch;flex:0 0 62px;width:62px;height:auto;min-height:0;margin:0;border:0;border-radius:0;background:color-mix(in srgb,var(--wmh-on-action) 13%,transparent);color:var(--wmh-on-action)}
.wmh-downloads.wmh-configurable.wmh-button-split .wmh-original-icon .wmh-svg{width:27px;height:27px}
.wmh-downloads.wmh-configurable.wmh-button-split.wmh-icon-left .wmh-original-icon{order:0;border-right:1px solid color-mix(in srgb,var(--wmh-on-action) 20%,transparent)}
.wmh-downloads.wmh-configurable.wmh-button-split.wmh-icon-right .wmh-original-icon{order:2;border-left:1px solid color-mix(in srgb,var(--wmh-on-action) 20%,transparent)}
.wmh-downloads.wmh-configurable.wmh-button-split .wmh-original-icon:empty{display:none}
