.lpm-auto-header { position: relative; left: 50%; display: block; flex: 0 0 100vw; clear: both; box-sizing: border-box; width: 100vw; max-width: none; margin-left: -50vw; z-index: 20; }
.lpm-auto-header:not(.lpm-auto-header-row) { display: none; }
.lpm-auto-footer:not(.lpm-footer-placed) { display: none !important; }
.lpm-auto-footer.lpm-footer-placed { position: relative; display: block; flex: 0 0 100%; grid-column: 1 / -1; clear: both; box-sizing: border-box; width: 100%; max-width: 100%; margin: 0 auto; }
.lpm-footer-links-flex-parent { flex-wrap: wrap !important; }
.lpm-footer-placement-link::after { animation-delay: var(--lpm-footer-shine-delay, 0s) !important; }
.lpm-auto-footer .lpm-public-bar-footer { background: transparent; color: inherit; padding: 12px 0; }
.lpm-menu-enhanced { display: flex !important; flex-wrap: wrap !important; align-items: center; box-sizing: border-box; width: 100%; height: auto !important; overflow: visible !important; }
.lpm-menu-enhanced.lpm-menu-primary-row { flex-wrap: nowrap !important; }
.lpm-menu-enhanced > .lpm-menu-item { display: flex; flex: 0 0 auto; align-items: stretch; white-space: nowrap; }
.lpm-menu-enhanced-wrapper { height: auto !important; min-height: 0; overflow: visible !important; }
.lpm-overflow-row { position: relative; display: block; clear: both; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; margin: 0 auto; z-index: 20; }
.lpm-overflow-flex-parent { flex-wrap: wrap !important; }
.lpm-overflow-row > .lpm-overflow-menu { display: flex !important; flex-wrap: wrap !important; align-items: center; box-sizing: border-box; width: 100%; min-width: 0; height: auto !important; overflow: visible !important; }
.lpm-overflow-row > .lpm-overflow-menu { justify-content: flex-start !important; gap: 8px 16px !important; }
.lpm-overflow-menu > li.lpm-menu-item-header { display: flex !important; flex: 0 0 auto !important; visibility: visible !important; opacity: 1 !important; margin: 0 !important; }
html.lpm-header-layout-pending li.lpm-menu-item-header { visibility: hidden !important; }
html.lpm-header-preview-mode li.lpm-menu-item-header:not([data-lpm-preview-clone="1"]), html.lpm-header-preview-mode .lpm-overflow-row:not(.lpm-preview-overflow-row), html.lpm-header-preview-mode .lpm-auto-header { display: none !important; }
.lpm-menu-item > a { display: block; }
/* Plain links that move to the second row keep the main navigation's link colour; a placement's own CSS box still wins. */
:where(.lpm-overflow-row li.lpm-menu-item-header:not(.pornmk-menu)) > a:any-link { color: inherit; }
html.lpm-header-preview-mode li[data-lpm-preview-clone="1"] { cursor: grab; }
html.lpm-header-preview-mode li[data-lpm-preview-clone="1"]:active { cursor: grabbing; }
html.lpm-header-preview-mode .lpm-preview-overflow-row[data-lpm-preview-empty="1"] > ul { min-height: 40px; }
html.lpm-header-preview-mode .lpm-preview-overflow-row[data-lpm-preview-empty="1"] > ul::after { content: "Drop a placement here to put it in the second row"; align-self: center; margin: 0 8px; color: #aaa; font: 13px/1.4 sans-serif; }
html.lpm-header-preview-mode.lpm-preview-dragging .lpm-preview-overflow-row > ul { outline: 2px dashed rgba(240, 199, 71, .75); outline-offset: -4px; min-height: 40px; }
html.lpm-header-preview-mode li[data-lpm-auto-overflow="1"] { outline: 2px dashed rgba(240, 199, 71, .9); outline-offset: 2px; border-radius: 24px; }
.lpm-auto-header-row { display: block; flex: 0 0 100vw; clear: both; width: 100vw; max-width: none; }
.lpm-public-bar { display: block; box-sizing: border-box; width: 100%; max-width: 100%; padding: 9px 16px; margin: 0 auto; background: #171717; color: #fff; }
.lpm-public-bar ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.lpm-public-bar li { margin: 0; padding: 0; }
.lpm-public-bar a { color: inherit; text-decoration: none; }
.lpm-public-bar a:hover, .lpm-public-bar a:focus { text-decoration: underline; }
.lpm-exchange-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.lpm-auto-exchanges { width: 100%; margin: 24px 0; }
.lpm-exchange-item { display: flex; justify-content: center; align-items: center; min-height: 96px; padding: 12px; border: 1px solid rgba(127,127,127,.25); text-decoration: none; }
.lpm-exchange-logo { display: block; width: 100%; max-width: 220px; height: 90px; object-fit: contain; }
@media (max-width: 520px) { .lpm-exchange-grid { gap: 10px; } .lpm-exchange-item { min-height: 76px; padding: 7px; } .lpm-exchange-logo { height: 68px; } }
html.lpm-header-preview-mode li.lpm-preview-selected { outline: 2px solid #2271b1 !important; outline-offset: 3px; border-radius: 24px; }
