/*
 * Job board directory list pages (homepage + tag pages), V2 design.
 * Only loaded when listing-parts/v2-switch.php enables it (<html class="lpv2">). Roll back with $config['listing_design'] = 'v1'.
 * CSS only (plus the small js/listing-v2.js helper): index.php / loadMore.php markup and js/index.min.js stay as they are, AJAX loaded cards get the same styles.
 * Never set "display" on .list-group-item: jQuery .show()/.hide() drive it (search, filters, load more).
 * Paid looks are kept: .highlight, .sponsored.gold/.silver/.bronze and the inline custom brand color background.
 */

.lpv2 {
    --lp-brand: #42b983;
    --lp-brand-600: #2f9a6b;
    --lp-brand-700: #23794f;
    --lp-brand-50: #effaf4;
    --lp-brand-100: #dcf2e7;
    --lp-ink: #0f172a;
    --lp-text: #334155;
    --lp-muted: #64748b;
    --lp-subtle: #94a3b8;
    --lp-border: #e2e8f0;
    --lp-border-strong: #cbd5e1;
    --lp-soft: #f8fafc;
    --lp-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 14px rgba(15, 23, 42, .05);
    --lp-shadow-lg: 0 2px 4px rgba(15, 23, 42, .05), 0 14px 32px rgba(15, 23, 42, .10);
    --lp-width: 1200px;
}

.lpv2 body {
    color: var(--lp-text);
    background: #fff;
}

/* ───────────── Hero: H1, subtitle, search ───────────── */

/* Padding, not an H1 margin: it would collapse into the container margin */
.lpv2 .page-container {
    padding-top: 30px;
}

.lpv2 .page-container > h1 {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--lp-ink);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
}

/* The homepage H2 has inline styles */
.lpv2 .page-container > h2 {
    margin: 14px auto 0 !important;
    padding: 0 20px;
    color: var(--lp-muted) !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.5;
}

.lpv2 .page-container > h1 + br {
    display: none;
}

.lpv2 .page-container > p.page-subtitle {
    max-width: 760px;
    margin: 14px auto 0;
    padding: 0 20px;
    color: var(--lp-muted);
    font-size: 16px;
    line-height: 1.65;
}

.lpv2 .page-container > p.page-subtitle b {
    color: var(--lp-text);
    font-weight: 600;
}

.lpv2 .box {
    margin-top: 26px;
}

.lpv2 .box .search {
    box-sizing: border-box;
    width: min(640px, calc(100% - 32px));
    border: 1.5px solid var(--lp-border-strong) !important;
    border-radius: 999px !important;
    background-color: #fff;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .08) !important;
    color: var(--lp-ink);
    font-size: 1.3em;
    transition: border-color .15s, box-shadow .15s;
}

.lpv2 .box .search:focus {
    border-color: var(--lp-brand) !important;
    box-shadow: 0 0 0 5px rgba(66, 185, 131, .16), 0 6px 22px rgba(15, 23, 42, .08) !important;
}

/* Clear (×) button: js/listing-v2.js wraps the input in span.lp-search-wrap, which takes over the input width */
.lpv2 .box .lp-search-wrap {
    position: relative;
    display: inline-block;
    width: min(640px, calc(100% - 32px));
    max-width: 80vw;
    vertical-align: top;
}

.lpv2 .boxfixed .box .lp-search-wrap {
    max-width: 60vw;
}

.lpv2 .box .lp-search-wrap .search {
    display: block;
    width: 100%;
    max-width: none;
    padding-right: 2.6em;
}

.lpv2 .lp-search-clear {
    position: absolute;
    top: 50%;
    right: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--lp-soft);
    color: var(--lp-muted);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color .15s, color .15s;
}

.lpv2 .lp-search-wrap.has-value .lp-search-clear {
    display: flex;
}

.lpv2 .lp-search-clear:hover,
.lpv2 .lp-search-clear:focus-visible {
    background: var(--lp-brand-100);
    color: var(--lp-brand-700);
    outline: none;
}

.lpv2 .boxfixed .lp-search-clear {
    right: 8px;
    width: 24px;
    height: 24px;
}

/* Sticky search strip once scrolled (body.boxfixed is set by js/index.min.js) */
.lpv2 .boxfixed .box {
    border-bottom: 1px solid var(--lp-border);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.lpv2 .boxfixed .box .search {
    font-size: 1.05em;
    box-shadow: none !important;
}

.lpv2 .box .fixed-tags a.tag {
    border: 1px solid var(--lp-border) !important;
    border-radius: 999px !important;
    padding: 5px 12px !important;
    background: #fff;
    color: var(--lp-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.lpv2 .box .fixed-tags a.tag.active {
    border-color: var(--lp-brand) !important;
    background: var(--lp-brand);
    color: #fff !important;
}

/* ───────────── Search suggestions (autocomplete box) ───────────── */

/*
 * Rows are built by js/index.min.js: div.group headers, plain divs (tags, job listing pages) and
 * divs wrapping span.jobboard(.gold/.silver/.bronce) with img.searchlogo. The JS sets position/top/left
 * (left = search input left + 15px) and drives display with .show()/.hide(): never set "display" on the box.
 * Width = the V2 search input width minus those 15px on each side.
 */
.lpv2 .autocomplete-box {
    box-sizing: border-box;
    width: min(610px, calc(80vw - 30px));
    max-width: none;
    max-height: min(70vh, 560px);
    margin-top: 10px;
    padding: 6px;
    border: 1px solid var(--lp-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--lp-shadow-lg);
    color: var(--lp-ink);
    scrollbar-width: thin;
    scrollbar-color: var(--lp-border-strong) transparent;
}

/* Sticky strip: index.min.js sets an inline top:58px that ignores the ads clone row above the input,
   js/listing-v2.js provides the real input bottom */
.lpv2 .boxfixed .autocomplete-box {
    top: var(--lp-search-bottom, 58px) !important;
    width: min(610px, calc(60vw - 30px));
    margin-top: 8px;
}

.lpv2 .autocomplete-box::-webkit-scrollbar {
    width: 8px;
}

.lpv2 .autocomplete-box::-webkit-scrollbar-track {
    background: transparent;
}

.lpv2 .autocomplete-box::-webkit-scrollbar-thumb {
    border: 2px solid #fff;
    background: var(--lp-border-strong);
}

/* Result rows */
.lpv2 .autocomplete-box div {
    position: relative;
    overflow: hidden;
    padding: 10px 38px 10px 12px;
    border-radius: 12px;
    color: var(--lp-ink);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    cursor: pointer;
    transition: background-color .12s, color .12s;
}

/* Arrow hint on the active row */
.lpv2 .autocomplete-box div:not(.group)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--lp-brand-600);
    font-weight: 700;
    opacity: 0;
    transform: translate(-4px, -50%);
    transition: opacity .12s, transform .12s;
}

.lpv2 .autocomplete-box div:not(.group):hover,
.lpv2 .autocomplete-box div.hover:not(.group) {
    background: var(--lp-brand-50);
    color: var(--lp-brand-700);
}

.lpv2 .autocomplete-box div:not(.group):hover::after,
.lpv2 .autocomplete-box div.hover:not(.group)::after {
    opacity: 1;
    transform: translate(0, -50%);
}

/* Group headers: "Job boards with", "Job Listings", "Job boards" */
.lpv2 .autocomplete-box div.group,
.lpv2 .autocomplete-box div.group:hover {
    padding: 12px 12px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--lp-subtle);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: default;
}

.lpv2 .autocomplete-box div.group:first-child {
    padding-top: 8px;
}

.lpv2 .autocomplete-box div.group:not(:first-child) {
    margin-top: 6px;
    border-top: 1px solid var(--lp-border);
}

/* Job board rows: the span carries the padding (and the paid tier tint) */
.lpv2 .autocomplete-box div:has(> .jobboard) {
    padding: 0;
}

.lpv2 .autocomplete-box .jobboard {
    display: block;
    overflow: hidden;
    padding: 7px 38px 7px 10px;
    border-radius: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lpv2 .autocomplete-box img.searchlogo {
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    margin-right: 6px;
    padding: 2px;
    border: 1px solid var(--lp-border);
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
    vertical-align: middle;
}

/* Sponsored tiers keep their tint, in the V2 palette */
.lpv2 .autocomplete-box .gold,
.lpv2 .autocomplete-box .silver,
.lpv2 .autocomplete-box .bronce {
    margin: 0;
    box-shadow: inset 3px 0 0 var(--lp-tier);
    background: var(--lp-tier-bg);
}

.lpv2 .autocomplete-box div:has(> .gold),
.lpv2 .autocomplete-box div:has(> .silver),
.lpv2 .autocomplete-box div:has(> .bronce) {
    margin-bottom: 4px;
}

.lpv2 .autocomplete-box .gold {
    --lp-tier: #f5c518;
    --lp-tier-bg: #fffbeb;
}

.lpv2 .autocomplete-box .silver {
    --lp-tier: #a3a3a3;
    --lp-tier-bg: #f5f5f5;
}

.lpv2 .autocomplete-box .bronce {
    --lp-tier: #e08a4f;
    --lp-tier-bg: #fff4ec;
}

.lpv2 .autocomplete-box .gold:hover,
.lpv2 .autocomplete-box .silver:hover,
.lpv2 .autocomplete-box .bronce:hover {
    box-shadow: inset 3px 0 0 var(--lp-tier), inset 0 0 0 1px var(--lp-tier);
}

/* "No matches" panel (js/listing-v2.js), followed by popular searches */
.lpv2 .autocomplete-box .lp-ac-empty {
    margin: 0;
    padding: 14px 12px 6px;
    color: var(--lp-muted);
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
}

.lpv2 .autocomplete-box .lp-ac-empty strong {
    display: block;
    margin-bottom: 2px;
    overflow: hidden;
    color: var(--lp-ink);
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Screen reader only (search results count announcements) */
.lpv2 .lp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ───────────── Ads (native boxes) ───────────── */

.lpv2 #nativebox-wrapper {
    display: flex;
    justify-content: center;
    gap: 14px;
    max-width: 1100px;
    margin: 26px auto 8px;
    padding: 0 16px;
}

.lpv2 #nativebox-wrapper.hidden {
    display: none;
}

.lpv2 #nativebox-wrapper .aitem {
    box-sizing: border-box;
    flex: 1 1 0;
    max-width: 520px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    background: var(--lp-soft);
    box-shadow: none;
    opacity: 1;
    transition: border-color .15s, background-color .15s;
}

.lpv2 #nativebox-wrapper .aitem.hidden {
    display: none;
}

.lpv2 #nativebox-wrapper .aitem:hover {
    border-color: var(--lp-brand);
    background: #fff;
}

.lpv2 #nativebox-wrapper .content {
    top: 12px;
    left: 74px;
    max-width: calc(100% - 100px);
}

.lpv2 #nativebox-wrapper .aitem .logo {
    border-color: var(--lp-border);
    border-radius: 10px;
}

.lpv2 #nativebox-wrapper .aitem .title a {
    color: var(--lp-ink);
    font-weight: 700;
}

.lpv2 #nativebox-wrapper .aitem .subtitle a {
    color: var(--lp-muted);
    font-size: 14px;
}

.lpv2 #nativebox-wrapper .isanad {
    color: var(--lp-subtle);
}

/* ───────────── List column: promo banner, tags, toolbar ───────────── */

.lpv2 .list {
    max-width: var(--lp-width);
    margin: 0 auto;
}

.lpv2 #nativebox-wrapper-top {
    margin: 26px auto 18px;
    padding: 0 16px;
}

.lpv2 #nativebox-wrapper-top .aitemfull {
    box-sizing: border-box;
    width: 100%;
    max-width: 1100px;
    height: auto;
    margin: 0;
    padding: 12px 18px;
    border: 1px solid var(--lp-brand-100);
    border-radius: 14px;
    background: linear-gradient(90deg, var(--lp-brand-50), #fff);
    box-shadow: none;
}

.lpv2 #nativebox-wrapper-top .content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin: 0;
}

.lpv2 #nativebox-wrapper-top .content-wrapper > a:first-child {
    color: var(--lp-ink);
    font-size: 15px;
}

.lpv2 #nativebox-wrapper-top .add-board-button {
    margin: 0;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 14px;
}

.lpv2 #nativebox-wrapper-top .add-board-button.banner {
    border: 1px solid var(--lp-border-strong);
    background: #fff;
    color: var(--lp-muted);
}

/* Tag filters */
.lpv2 #readmore.filters-button-group {
    max-width: 1100px;
    margin: 0 auto 22px;
    padding: 6px 16px 10px;
}

.lpv2 #readmore a.tag {
    margin: 0 4px 9px;
    padding: 8px 14px;
    border: 1px solid var(--lp-border);
    border-radius: 999px;
    background: #fff;
    color: var(--lp-text);
    font-size: 14px;
    font-weight: 600;
    transition: border-color .15s, background-color .15s, color .15s;
}

.lpv2 #readmore a.tag:hover {
    border-color: var(--lp-brand);
    background: var(--lp-brand-50);
    color: var(--lp-brand-700);
}

.lpv2 #readmore a.tag.active {
    border-color: var(--lp-brand);
    background: var(--lp-brand);
    color: #fff;
}

.lpv2 #readmore a.tag.active:hover {
    opacity: .85;
}

.lpv2 #readmore a.tag.clear {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.lpv2 #readmore a.tag.clear:hover {
    background: #ef4444;
    color: #fff;
}

.lpv2 .readmore-link {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 70%);
}

.lpv2 .readmore-link:after {
    padding: 7px 16px;
    border: 1px solid var(--lp-border-strong);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
    color: var(--lp-brand-700);
    font-size: 14px;
}

/* Toolbar: number of boards + switches */
.lpv2 .list > .boards,
.lpv2 .page-container > .boards {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
    max-width: var(--lp-width);
    min-height: 0;
    margin: 0 auto 6px;
    padding: 12px 18px;
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    background: #fff;
    color: var(--lp-muted);
    font-size: 14px;
    text-shadow: none;
}

.lpv2 .boards > span {
    top: 0;
    margin: 0;
}

.lpv2 .boards .totalBoards {
    color: var(--lp-ink);
    font-weight: 700;
}

.lpv2 .boards .setting-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    float: none;
    margin: 0;
    color: var(--lp-text);
}

.lpv2 .boards .setting-wrapper > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 8px 0 0;
}

.lpv2 .boards .new {
    border-radius: 999px;
    background: #ef4444;
    font-weight: 700;
}

/* V2 results header (index.php): "877 job boards" + filter chips instead of the boxed bar with switches */
.lpv2 .list > .boards.lp-results-bar,
.lpv2 .page-container > .boards.lp-results-bar {
    margin-bottom: 4px;
    padding: 6px 4px 10px;
    border: 0;
    border-radius: 0;
    background: none;
}

.lpv2 .lp-results-count {
    color: var(--lp-muted);
    font-size: 15px;
}

.lpv2 .lp-results-count .totalBoards {
    color: var(--lp-ink);
    font-size: 17px;
    font-weight: 800;
}

.lpv2 .lp-results-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lpv2 .lp-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--lp-border-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--lp-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color .15s, background-color .15s, color .15s;
}

.lpv2 .lp-filter-chip:hover,
.lpv2 .lp-filter-chip:focus-visible {
    border-color: var(--lp-brand);
    background: var(--lp-brand-50);
    color: var(--lp-brand-700);
}

.lpv2 .lp-filter-chip.is-active {
    border-color: var(--lp-brand);
    background: var(--lp-brand);
    color: #fff;
}

.lpv2 .lp-filter-chip.is-active:hover {
    border-color: var(--lp-brand-600);
    background: var(--lp-brand-600);
    color: #fff;
}

.lpv2 .lp-filter-chip .lp-filter-x {
    margin-left: 2px;
    font-size: 16px;
    line-height: 1;
    opacity: .85;
}

.lpv2 .lp-filter-bookmarks > span[aria-hidden] {
    color: #e11d48;
}

.lpv2 .lp-filter-bookmarks.is-active > span[aria-hidden] {
    color: #fff;
}

/* Hidden until a job is saved (js/job-bookmarks.js) */
.lpv2 .lp-filter-chip[hidden] {
    display: none;
}

.lpv2 .lp-filter-saved-jobs .lp-saved-jobs-count {
    color: var(--lp-brand-700);
}

.lpv2 .lp-filter-chip.is-disabled {
    border-style: dashed;
    color: var(--lp-subtle);
    cursor: not-allowed;
}

.lpv2 .lp-filter-chip.is-disabled:hover {
    border-color: var(--lp-border-strong);
    background: #fff;
    color: var(--lp-subtle);
}

.lpv2 .switch {
    width: 42px;
    height: 24px;
    background: var(--lp-border-strong);
}

.lpv2 .switch::before {
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
}

.lpv2 input:checked + .switch {
    background: var(--lp-brand);
}

.lpv2 input:checked + .switch::before {
    left: 21px;
}

.lpv2 div.job-offers-listed {
    color: var(--lp-ink);
}

/* ───────────── Board cards ───────────── */

.lpv2 #boards-list.list-group {
    background: transparent !important;
}

.lpv2 #boards-list .list-group-item {
    margin-top: 14px;
    padding: 20px 22px;
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    box-shadow: var(--lp-shadow);
    transition: box-shadow .2s, border-color .2s, transform .2s;
}

.lpv2 #boards-list .list-group-item:hover {
    border-color: var(--lp-brand);
    box-shadow: var(--lp-shadow-lg);
    transform: translateY(-1px);
}

.lpv2 #boards-list .li-wrapper {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lpv2 #boards-list .lefttop {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-width: 0;
}

.lpv2 #boards-list .rightbottom {
    flex: 0 0 auto;
    max-width: none;
}

/* Heading: logo, name, rank, pin, heart, title */
.lpv2 #boards-list .heading {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding-right: 44px;
}

.lpv2 #boards-list .heading > a:first-child:has(> img) {
    flex: 0 0 auto;
    margin-right: 6px;
    line-height: 0;
}

.lpv2 #boards-list .heading img.img-thumbnail {
    display: block;
    box-sizing: border-box;
    width: 56px;
    height: 56px;
    overflow: hidden;
    padding: 4px;
    object-fit: contain;
    font-size: 10px;
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    background: #fff;
}

.lpv2 #boards-list .heading a.board-name {
    display: block;
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
    color: var(--lp-ink);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.01em;
}

.lpv2 #boards-list .heading a.board-name:hover {
    color: var(--lp-brand-700);
    opacity: 1;
}

.lpv2 #boards-list .heading span.position {
    position: static;
    display: inline-flex;
    align-items: center;
    width: auto;
    margin: 0;
    padding: 3px 9px;
    border: none;
    border-radius: 999px;
    background: var(--lp-soft);
    color: var(--lp-muted);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
}

.lpv2 #boards-list .sponsored .heading span.position {
    padding: 0 6px;
    background: rgba(255, 255, 255, .7);
    font-size: 20px;
}

.lpv2 #boards-list .heading span.stuck {
    position: static;
    display: inline-flex;
    width: auto !important;
    margin: 0;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    color: var(--lp-ink);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

.lpv2 #boards-list .heading span.heart-wrapper {
    position: absolute;
    top: 16px;
    right: 18px;
    width: auto;
    margin: 0;
}

/* Title line: the last span of the heading, full width under the name */
.lpv2 #boards-list .heading > span:last-child {
    display: block;
    flex: 1 0 100%;
    width: 100%;
    margin: 12px 0 0;
    color: var(--lp-text);
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.5;
}


/* Meta line: age, jobs */
.lpv2 #boards-list .datainfo {
    max-width: none;
    margin-top: 10px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    color: var(--lp-muted);
    font-size: 13px;
}

.lpv2 #boards-list .datainfo .data-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(248, 250, 252, .85);
    border: 1px solid var(--lp-border);
    color: var(--lp-text);
    vertical-align: middle;
}

.lpv2 #boards-list .datainfo .data-label:empty {
    display: none;
}

.lpv2 #boards-list .datainfo .data-label.latestjobs {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 600;
}

/* Description */
.lpv2 #boards-list .li-wrapper .jobboard-description {
    max-width: 760px;
    min-height: 0;
    margin-top: 12px;
    margin-bottom: 0;
    padding: 0 24px 0 0;
    border-radius: 0;
    background: none;
    color: var(--lp-muted);
    font-size: 14.5px;
    line-height: 1.6;
}

.lpv2 #boards-list .job-board-description-trigger {
    text-decoration: none;
}

/* Description clamped to 3 lines (loadMore.php wraps it in span.lp-desc), "Read more" by js/listing-v2.js */
.lpv2 #boards-list .jobboard-description .lp-desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.lpv2 #boards-list .jobboard-description.lp-desc-open .lp-desc {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: none;
}

.lpv2 #boards-list .lp-desc-more {
    display: none;
    margin: 2px 12px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--lp-brand-700);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.lpv2 #boards-list .lp-desc-clamped .lp-desc-more,
.lpv2 #boards-list .lp-desc-open .lp-desc-more {
    display: inline-block;
}

.lpv2 #boards-list .lp-desc-more:hover,
.lpv2 #boards-list .jobboard-description .job-board-description-trigger:hover {
    text-decoration: underline;
}

/* AI details toggle ("✨ Details") */
.lpv2 #boards-list .jobboard-description .job-board-description-trigger {
    display: inline-block;
    margin-top: 2px;
    color: var(--lp-brand-700);
    font-size: 13.5px;
    font-weight: 600;
}

/* Job activity line (remotedata summary): "💼 1,240 jobs · 95% remote · New job 2h ago · Mostly 🇬🇧 UK" */
.lpv2 #boards-list .lp-activity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    margin-top: 10px;
    color: var(--lp-text);
    font-size: 13px;
}

.lpv2 #boards-list .lp-activity b {
    color: var(--lp-ink);
    font-weight: 700;
}

.lpv2 #boards-list .lp-activity .lp-dot {
    color: var(--lp-subtle);
}

.lpv2 #boards-list .lp-activity .lp-activity-fresh {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--lp-brand-700);
    font-weight: 600;
}

.lpv2 #boards-list .lp-activity .lp-activity-fresh::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lp-brand);
    box-shadow: 0 0 0 3px rgba(66, 185, 131, .2);
}

/* "Best for" (AI_json_data.suitable_job_seeker_types) */
.lpv2 #boards-list .lp-bestfor {
    display: -webkit-box;
    max-width: 736px;
    margin-top: 10px;
    padding: 8px 12px;
    overflow: hidden;
    border: 1px solid var(--lp-brand-100);
    border-radius: 10px;
    background: var(--lp-brand-50);
    color: var(--lp-text);
    font-size: 13.5px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.lpv2 #boards-list .lp-bestfor b {
    margin-right: 2px;
    color: var(--lp-brand-700);
    font-weight: 700;
}

/* "+N" after the 4 tags */
.lpv2 #boards-list .badges span.lp-more-tags {
    border-style: dashed;
    color: var(--lp-muted);
    font-weight: 600;
}

.lpv2 #boards-list .badges span.lp-more-tags a {
    color: var(--lp-muted);
}

.lpv2 #boards-list .badges span.lp-more-tags:hover {
    color: #fff;
}

/* Cards with white text (dark custom color) */
.lpv2 #boards-list .list-group-item.white .lp-activity,
.lpv2 #boards-list .list-group-item.white .lp-activity b,
.lpv2 #boards-list .list-group-item.white .lp-activity .lp-activity-fresh,
.lpv2 #boards-list .list-group-item.white .lp-desc-more,
.lpv2 #boards-list .list-group-item.white .jobboard-description .job-board-description-trigger,
.lpv2 #boards-list .list-group-item.white .lp-bestfor,
.lpv2 #boards-list .list-group-item.white .lp-bestfor b {
    color: #fff;
}

.lpv2 #boards-list .list-group-item.white .lp-bestfor {
    border-color: rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .12);
}

/* Tags */
.lpv2 #boards-list .li-wrapper .badges {
    margin: 0;
    padding: 12px 0 0;
}

.lpv2 #boards-list .badges span {
    margin: 0 4px 6px 0;
    padding: 4px 10px;
    border: 1px solid var(--lp-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    font-size: 12.5px;
    line-height: 1.5;
}

.lpv2 #boards-list .badges span a {
    color: var(--lp-text);
}

.lpv2 #boards-list .badges span:hover,
.lpv2 #boards-list .badges span.selected {
    border-color: var(--lp-brand);
    background: var(--lp-brand);
}

.lpv2 #boards-list .badges span:hover a,
.lpv2 #boards-list .badges span.selected a {
    color: #fff;
}

/* Actions (desktop: right column, always visible) */
.lpv2 #boards-list .go-wrapper {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 150px;
}

.lpv2 #boards-list a.go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 11px 20px;
    border: 1.5px solid var(--lp-brand);
    border-radius: 12px;
    background: var(--lp-brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    white-space: nowrap;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(66, 185, 131, .25);
    transition: background-color .15s, border-color .15s, transform .15s;
}

.lpv2 #boards-list a.go:hover {
    border-color: var(--lp-brand-600);
    background: var(--lp-brand-600);
    transform: translateY(-1px);
}

.lpv2 #boards-list a.go svg {
    width: 13px;
    height: 13px;
    margin: 0;
}

/* "Job listings" is the secondary action */
.lpv2 #boards-list a.go.info {
    border-color: var(--lp-border-strong);
    background: #fff;
    color: var(--lp-ink);
    box-shadow: none;
}

.lpv2 #boards-list a.go.info:hover {
    border-color: var(--lp-brand);
    background: var(--lp-brand-50);
    color: var(--lp-brand-700);
}

/* "Featured" / "Sponsored" label: ribbon on the card's top edge */
.lpv2 #boards-list span.sponsor {
    position: absolute;
    top: -11px;
    bottom: auto;
    left: 20px;
    padding: 3px 11px;
    border-radius: 999px;
    background: var(--lp-ink);
    color: #fff !important;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .2);
}

/* "Featured" (highlight / sticky / custom color, never .sponsored): amber, "Sponsored" stays dark */
.lpv2 #boards-list .list-group-item:not(.sponsored) span.sponsor {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    color: #451a03 !important;
    box-shadow: 0 3px 8px rgba(217, 119, 6, .3);
}

.lpv2 #boards-list .list-group-item:has(span.sponsor) {
    margin-top: 24px;
}

/* Rating */
.lpv2 #boards-list .star-wrapper {
    position: static;
    width: auto;
    margin-top: 2px;
    color: var(--lp-muted);
    font-size: 13px;
    text-align: center;
}

/* Paid looks: keep the colors, make text readable on top */
.lpv2 #boards-list .list-group-item.highlight,
.lpv2 #boards-list .list-group-item.sponsored,
.lpv2 #boards-list .list-group-item[style*="background-color"] {
    border-color: rgba(15, 23, 42, .08);
}

.lpv2 #boards-list .list-group-item.highlight .jobboard-description,
.lpv2 #boards-list .list-group-item.sponsored .jobboard-description,
.lpv2 #boards-list .list-group-item[style*="background-color"] .jobboard-description,
.lpv2 #boards-list .list-group-item.highlight .datainfo,
.lpv2 #boards-list .list-group-item.sponsored .datainfo,
.lpv2 #boards-list .list-group-item[style*="background-color"] .datainfo {
    color: rgba(15, 23, 42, .72);
}

.lpv2 #boards-list .list-group-item.white .heading a.board-name,
.lpv2 #boards-list .list-group-item.white .heading > span:last-child,
.lpv2 #boards-list .list-group-item.white .jobboard-description,
.lpv2 #boards-list .list-group-item.white .datainfo,
.lpv2 #boards-list .list-group-item.white .star-wrapper {
    color: #fff;
}

.lpv2 #boards-list .list-group-item.white .heading span.position {
    border: none;
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.lpv2 #boards-list .list-group-item.white .datainfo .data-label,
.lpv2 #boards-list .list-group-item.white .badges span {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .12);
}

.lpv2 #boards-list .list-group-item.white .datainfo .data-label,
.lpv2 #boards-list .list-group-item.white .badges span a {
    color: #fff;
}

.lpv2 #boards-list .list-group-item.white a.go.info {
    border-color: rgba(255, 255, 255, .6);
    background: transparent;
    color: #fff;
}

/* Newsletter card inside the list */
.lpv2 #boards-list .list-group-item:has(.subscribeForm) {
    border: none;
    background: linear-gradient(135deg, var(--lp-brand-50), var(--lp-brand-100)) !important;
}

/* ───────────── Featured sidebar ───────────── */

.lpv2 #sidebar {
    padding: 16px;
    border: 1px solid var(--lp-border);
    border-radius: 16px;
    background: var(--lp-soft);
}

.lpv2 #sidebar h3 {
    color: var(--lp-ink);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
}

.lpv2 #sidebar .list-group-item {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    box-shadow: none;
}

.lpv2 #sidebar .list-group-item:hover {
    border-color: var(--lp-brand);
    box-shadow: var(--lp-shadow);
}

.lpv2 #sidebar .img-thumbnail {
    display: block;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    overflow: hidden;
    object-fit: contain;
    border-radius: 10px;
    font-size: 10px;
}

.lpv2 #sidebar a.job-board-name {
    color: var(--lp-ink);
    font-weight: 700;
}

.lpv2 #sidebar p.in-sidebar {
    color: var(--lp-muted);
}

.lpv2 #sidebar a.go.featured {
    border-radius: 10px;
    background: var(--lp-brand);
    text-transform: none;
}

.lpv2 #sidebar .promote-button {
    border-radius: 12px;
}

/* ───────────── Load more ───────────── */

.lpv2 .loadmore-wrapper {
    height: 80px;
    padding-top: 26px;
}

.lpv2 .btnLoadMore {
    padding: 14px 28px;
    border: 1.5px solid var(--lp-border-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--lp-ink);
    font-size: 16px;
    box-shadow: var(--lp-shadow);
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.lpv2 .btnLoadMore:hover {
    border-color: var(--lp-brand);
    color: var(--lp-brand-700);
}

/* ───────────── Latest jobs panel (inline, under the card) ───────────── */

/* The V1 overlay is never used on V2 (inline panel instead): keep it, and the blur it puts on the card, out of the way */
.lpv2 #boards-list .more-info {
    display: none;
}

.lpv2 #boards-list .li-wrapper.blur {
    filter: none;
}

/* "Latest jobs" button: dark with a live dot, stands out on white, green, orange and custom color cards
   without competing with the green Visit / View buttons (.list-group-item in the selector: beats the .white card rule) */
.lpv2 #boards-list .list-group-item a.go.info.lp-jobs-trigger {
    border-color: var(--lp-ink);
    background: var(--lp-ink);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .25);
}

.lpv2 #boards-list .list-group-item a.go.info.lp-jobs-trigger:hover {
    border-color: #1e293b;
    background: #1e293b;
    color: #fff;
}

.lpv2 #boards-list a.go.info.lp-jobs-trigger::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: lp-live 2s ease-out infinite;
}

@keyframes lp-live {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); }
    70%, 100% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
}

/* Open: outlined, the panel below is the focus now */
.lpv2 #boards-list .list-group-item a.go.info.lp-jobs-trigger[aria-expanded="true"] {
    border-color: var(--lp-ink);
    background: #fff;
    color: var(--lp-ink);
    box-shadow: none;
}

.lpv2 #boards-list a.go.info.lp-jobs-trigger[aria-expanded="true"]::before {
    background: var(--lp-brand);
    animation: none;
}

.lpv2 #boards-list .lp-jobs {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    background: #fff;
    color: var(--lp-text);
    text-align: left;
    animation: lp-jobs-in .18s ease-out;
}

.lpv2 #boards-list .lp-jobs[hidden] {
    display: none;
}

@keyframes lp-jobs-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.lpv2 #boards-list .lp-jobs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.lpv2 #boards-list .lp-jobs-title {
    margin: 0;
    color: var(--lp-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.lpv2 #boards-list .lp-jobs-title b {
    color: var(--lp-ink);
    text-transform: none;
}

.lpv2 #boards-list .lp-jobs-close {
    flex: none;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--lp-soft);
    color: var(--lp-muted);
    font-size: 20px;
    line-height: 30px;
    cursor: pointer;
}

.lpv2 #boards-list .lp-jobs-close:hover {
    background: var(--lp-brand-100);
    color: var(--lp-brand-700);
}

.lpv2 #boards-list .lp-jobs-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lpv2 #boards-list .lp-job {
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--lp-border);
}

.lpv2 #boards-list .lp-job:first-child {
    border-top: 0;
}

.lpv2 #boards-list .lp-job-link {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 2px -8px;
    padding: 10px 8px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
}

.lpv2 #boards-list .lp-job-link:hover,
.lpv2 #boards-list .lp-job-link:focus-visible {
    background: var(--lp-brand-50);
}

.lpv2 #boards-list .lp-job-logo {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border: 1px solid var(--lp-border);
    border-radius: 10px;
    background: #fff;
}

.lpv2 #boards-list .lp-job-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lpv2 #boards-list .lp-job-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--lp-soft);
    color: var(--lp-muted);
    font-size: 16px;
    font-weight: 700;
}

.lpv2 #boards-list .lp-job-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.lpv2 #boards-list .lp-job-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--lp-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.lpv2 #boards-list .lp-job-link:hover .lp-job-title {
    color: var(--lp-brand-700);
}

.lpv2 #boards-list .lp-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 0;
    color: var(--lp-muted);
    font-size: 13px;
    line-height: 1.4;
}

.lpv2 #boards-list .lp-job-meta > span:not(:last-child)::after {
    content: "·";
    margin: 0 7px;
    color: var(--lp-subtle);
}

.lpv2 #boards-list .lp-job-meta .lp-job-company {
    color: var(--lp-text);
    font-weight: 600;
}

.lpv2 #boards-list .lp-job-meta .lp-job-salary {
    color: var(--lp-brand-700);
    font-weight: 600;
}

.lpv2 #boards-list .lp-job-side {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    color: var(--lp-muted);
    font-size: 12.5px;
    white-space: nowrap;
}

.lpv2 #boards-list .lp-job-age.is-new {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--lp-brand-100);
    color: var(--lp-brand-700);
    font-weight: 700;
}

.lpv2 #boards-list .lp-job-arrow {
    color: var(--lp-subtle);
    font-size: 15px;
}

.lpv2 #boards-list .lp-job-link:hover .lp-job-arrow {
    color: var(--lp-brand-600);
}

.lpv2 #boards-list .lp-job-preview {
    flex: none;
    padding: 5px 10px;
    border: 1px solid var(--lp-border);
    border-radius: 999px;
    background: #fff;
    color: var(--lp-text);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.lpv2 #boards-list .lp-job-preview:hover {
    border-color: var(--lp-brand);
    color: var(--lp-brand-700);
}

.lpv2 #boards-list .lp-jobs-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--lp-border);
    color: var(--lp-muted);
    font-size: 13px;
}

.lpv2 #boards-list .lp-jobs-all {
    color: var(--lp-brand-700);
    font-weight: 700;
    text-decoration: none;
}

.lpv2 #boards-list .lp-jobs-all:hover {
    text-decoration: underline;
}

.lpv2 #boards-list .lp-jobs-empty {
    margin: 4px 0;
    color: var(--lp-muted);
    font-size: 14px;
}

.lpv2 #boards-list .lp-jobs-retry {
    padding: 0;
    border: 0;
    background: none;
    color: var(--lp-brand-700);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* Bookmark button (jbsLpFeedBookmarkButton, toggled by js/job-bookmarks.js): same icon as the jobs pages */
.lpv2 #boards-list .lp-job-bookmark {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--lp-border);
    border-radius: 50%;
    background: #fff;
    color: var(--lp-muted);
    cursor: pointer;
    transition: color .15s, border-color .15s, background-color .15s;
}

.lpv2 #boards-list .lp-job-bookmark svg {
    width: 17px;
    height: 17px;
}

.lpv2 #boards-list .lp-job-bookmark svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.lpv2 #boards-list .lp-job-bookmark:hover,
.lpv2 #boards-list .lp-job-bookmark:focus-visible {
    border-color: var(--lp-brand);
    color: var(--lp-brand-700);
    outline: none;
}

.lpv2 #boards-list .lp-job-bookmark.bookmarked {
    border-color: var(--lp-brand);
    background: var(--lp-brand-50);
    color: var(--lp-brand-600);
}

.lpv2 #boards-list .lp-job-bookmark.bookmarked svg path {
    fill: currentColor;
}

.lpv2 #boards-list .lp-jobs-saved {
    color: var(--lp-text);
    font-weight: 600;
    text-decoration: none;
}

.lpv2 #boards-list .lp-jobs-saved:hover {
    color: var(--lp-brand-700);
    text-decoration: underline;
}

.lpv2 #boards-list .lp-jobs-saved[hidden] {
    display: none;
}

/* Loading skeleton */
.lpv2 #boards-list .lp-jobs-loading span {
    display: block;
    height: 46px;
    margin: 8px 0;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--lp-soft) 25%, #eef2f6 50%, var(--lp-soft) 75%);
    background-size: 200% 100%;
    animation: lp-jobs-shimmer 1.2s linear infinite;
}

@keyframes lp-jobs-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* Job description dialog: css/job-dialog-v2.css (shared with the V2 job board page) */

/* ───────────── Side menu (header.php #menu, opened by the burger) ─────────────
 * header.php keeps its markup and open / close script (.is-active on #menu, .overlay, #burger); the section
 * lists carry hook classes (menu-main, menu-chips, menu-collapsible, menu-social, menu-other) unused by V1.
 * js/listing-v2.js adds: keyboard burger, Escape, page scroll lock (html.lp-menu-open), counts, "Show all".
 * header.php's own <style> is in the body (after this file): every rule here needs .lpv2 in front to win.
 */
.lpv2 .menu {
    box-sizing: border-box;
    width: min(400px, 92vw);
    height: calc(100% - 60px);
    padding: 10px 12px 28px;
    border-right: 1px solid var(--lp-border);
    background: #fff;
    box-shadow: 10px 0 36px rgba(15, 23, 42, .14);
    text-align: left;
    overscroll-behavior: contain;
    transition: left .3s ease;
}

html.lp-menu-open,
html.lp-menu-open body {
    overflow: hidden;
}

.lpv2 .overlay {
    background-color: rgba(15, 23, 42, .45);
}

.lpv2 .burger:focus-visible {
    outline: 2px solid var(--lp-brand);
    outline-offset: 4px;
    border-radius: 6px;
}

/* Lists: one column of rows */
.lpv2 .menu .menu-inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    row-gap: 2px;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.lpv2 .menu li.menu-item {
    flex: none;
    list-style: none;
}

.lpv2 .menu .menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--lp-ink);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.35;
}

.lpv2 .menu .menu-link:hover,
.lpv2 .menu .menu-link:focus-visible {
    background: var(--lp-brand-50);
    color: var(--lp-brand-700);
    outline: none;
}

.lpv2 .menu .new {
    padding: 1px 7px;
    border-radius: 999px;
    background: #ef4444;
    font-size: 11px;
    font-weight: 700;
}

/* Saved jobs / bookmarked boards counts (js/listing-v2.js) */
.lpv2 .menu .menu-count {
    margin-left: auto;
    min-width: 22px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--lp-brand-100);
    color: var(--lp-brand-700);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.lpv2 .menu .menu-count:empty {
    display: none;
}

/* "Get Hired": full width outlined button */
.lpv2 .menu .menu-link.highlight {
    justify-content: center;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1.5px solid var(--lp-brand);
    color: var(--lp-brand-700);
    font-weight: 700;
}

.lpv2 .menu .menu-link.highlight:hover {
    background: var(--lp-brand);
    color: #fff;
}

/* JobCopilot promo */
.lpv2 .menu .jobcopilot-menu-item {
    margin: 10px 0 0;
    padding: 12px 14px;
    border: 1px solid var(--lp-brand-100);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--lp-brand-50), #fff);
    color: var(--lp-text);
    font-size: 13.5px;
    text-align: left;
}

/* Section titles: small uppercase labels instead of centered pills on a line */
.lpv2 .menu .menu-divider {
    top: 0;
    margin: 16px 0 4px;
    border-top: 1px solid var(--lp-border);
}

.lpv2 .menu .menu-divider-label {
    position: static;
    width: auto;
    padding: 14px 12px 6px;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--lp-subtle);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    transform: none;
}

/* Tags, job pages, social networks: chips */
.lpv2 .menu .menu-chips,
.lpv2 .menu .menu-social {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 6px;
}

.lpv2 .menu .menu-chips .menu-link,
.lpv2 .menu .menu-social .menu-link {
    padding: 6px 12px;
    border: 1px solid var(--lp-border);
    border-radius: 999px;
    font-size: 13.5px;
}

.lpv2 .menu .menu-chips .menu-link:hover,
.lpv2 .menu .menu-social .menu-link:hover {
    border-color: var(--lp-brand);
}

.lpv2 .menu .menu-social svg.sn {
    position: static;
    width: 16px;
    height: 16px;
    margin: 0;
}

/* 53 job pages: first 12, "Show all" button (js/listing-v2.js) */
.lpv2 .menu .menu-collapsible:not(.is-expanded) > li.menu-item:nth-child(n+13) {
    display: none;
}

.lpv2 .menu .menu-show-all {
    margin: 8px 6px 0;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: var(--lp-brand-700);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.lpv2 .menu .menu-show-all:hover {
    background: var(--lp-brand-50);
}

/* "Submit Your Job Board": primary button, the rest plain rows */
.lpv2 .menu .menu-item.highlightfill .menu-link {
    justify-content: center;
    margin-bottom: 6px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: var(--lp-brand);
    color: #fff;
    font-weight: 700;
}

.lpv2 .menu .menu-item.highlightfill .menu-link:hover {
    background: var(--lp-brand-600);
    color: #fff;
}

/* Marketplace has an inline green background */
.lpv2 .menu .menu-other .menu-link[style] {
    background: var(--lp-brand-50) !important;
}

/* Newsletter (inline padding-bottom:75px compensated the cut off bottom, gone with the fixed height) */
.lpv2 .menu .menu-newsletter {
    margin: 8px 4px 0;
    padding: 16px !important;
    border: 1px solid var(--lp-border);
    border-radius: 14px;
    background: var(--lp-soft);
}

.lpv2 .menu .menu-newsletter .revue-label {
    margin-bottom: 10px;
    color: var(--lp-ink);
}

.lpv2 .menu .menu-newsletter .revue-form-field {
    width: calc(100% - 96px);
    box-sizing: border-box;
}

.lpv2 .menu .menu-newsletter .join-people {
    margin-top: 10px;
    color: var(--lp-muted);
}

/* ───────────── Mobile ───────────── */

@media (max-width: 767px) {
    .lpv2 .list > .boards.lp-results-bar,
    .lpv2 .page-container > .boards.lp-results-bar {
        justify-content: space-between;
        gap: 8px;
        text-align: left;
    }

    /* One row of chips, swiped sideways when they don't fit */
    .lpv2 .lp-results-filters {
        flex-wrap: nowrap;
        width: calc(100% + 8px);
        margin-right: -8px;
        padding-bottom: 2px;
        gap: 6px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .lpv2 .lp-results-filters::-webkit-scrollbar {
        display: none;
    }

    .lpv2 .lp-filter-chip {
        flex: none;
    }

    .lpv2 .lp-filter-chip {
        padding: 6px 11px;
        font-size: 13px;
    }

    .lpv2 #boards-list .lp-jobs {
        margin-top: 14px;
        padding: 10px 12px;
    }

    .lpv2 #boards-list .lp-job {
        flex-wrap: wrap;
        padding-bottom: 8px;
    }

    .lpv2 #boards-list .lp-job-logo {
        width: 34px;
        height: 34px;
    }

    .lpv2 #boards-list .lp-job-arrow {
        display: none;
    }

    /* Full width row, "Preview" on its own line under it */
    .lpv2 #boards-list .lp-job-link {
        flex: 1 1 100%;
        align-items: flex-start;
    }

    .lpv2 #boards-list .lp-job-side {
        padding-top: 2px;
    }

    .lpv2 #boards-list .lp-job-preview {
        margin: -4px 0 0 46px;
    }

    .lpv2 #boards-list .lp-job-bookmark {
        margin-top: -4px;
    }

    .lpv2 #boards-list .lp-job-link + .lp-job-bookmark {
        margin-left: 46px;
    }

    .lpv2 #nativebox-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .lpv2 #nativebox-wrapper .aitem {
        max-width: none;
        min-height: 76px;
        margin: 0 auto;
    }

    .lpv2 #nativebox-wrapper .aitem .subtitle a {
        font-size: 13px;
    }

    .lpv2 .list > .boards,
    .lpv2 .page-container > .boards {
        margin: 0 12px 6px;
        justify-content: center;
        text-align: center;
    }

    .lpv2 #boards-list .list-group-item {
        margin-left: 4px;
        margin-right: 4px;
        padding: 18px 16px;
    }

    .lpv2 #boards-list .li-wrapper {
        display: block;
    }

    .lpv2 #boards-list .heading img.img-thumbnail {
        width: 48px;
        height: 48px;
    }

    .lpv2 #boards-list .heading a.board-name {
        font-size: 17px;
    }

    .lpv2 #boards-list .li-wrapper .jobboard-description {
        padding-right: 0;
        font-size: 14px;
    }

    .lpv2 #boards-list .go-wrapper-bottom {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 16px 0 0;
    }

    .lpv2 #boards-list .go-wrapper-bottom a.go {
        flex: 1 1 140px;
    }

    .lpv2 #boards-list .go-wrapper-bottom .star-wrapper {
        flex: 1 0 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lpv2 .menu {
        transition: none;
    }

    .lpv2 #boards-list .lp-jobs,
    .lpv2 #boards-list .lp-jobs-loading span,
    .lpv2 #boards-list a.go.info.lp-jobs-trigger::before {
        animation: none;
    }

    .lpv2 #boards-list .list-group-item,
    .lpv2 #boards-list a.go,
    .lpv2 .autocomplete-box div,
    .lpv2 .autocomplete-box div::after {
        transition: none;
    }

    .lpv2 #boards-list .list-group-item:hover,
    .lpv2 #boards-list a.go:hover {
        transform: none;
    }
}
