/* ==========================================================================
   LNM Site Map — Shortcode [lnm_sitemap]
   ========================================================================== */

.lnm-sitemap-app {
    --sitemap-red:    #b71e01;
    --sitemap-red-dk: #961801;
    --sitemap-border: #d1d5db;
    --sitemap-bg:     #ececec;
    --sitemap-white:  #ffffff;
    --sitemap-text:   #111827;
    --sitemap-muted:  #6b7280;
    --sitemap-on-red: #ffffff;
    --sitemap-line:   #4b5563;
    --sitemap-line-soft: #9ca3af;
    --sitemap-line-w: 2px;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: var(--sitemap-text);
    background: var(--sitemap-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--sitemap-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    margin: 0 auto 2rem;
    padding: 2rem 1.5rem 2.5rem;
    line-height: 1.35;
}

.lnm-sitemap-app *, .lnm-sitemap-app *::before, .lnm-sitemap-app *::after {
    box-sizing: border-box;
}

.lnm-sitemap-app a {
    text-decoration: none;
}

/* Theme / wp-admin often force link color — primary nodes must stay white on red */
.lnm-sitemap-app a.lnm-sitemap-node--primary,
.lnm-sitemap-app a.lnm-sitemap-node--primary:visited,
.lnm-sitemap-app a.lnm-sitemap-node--primary:hover,
.lnm-sitemap-app a.lnm-sitemap-node--primary:focus,
.lnm-sitemap-app a.lnm-sitemap-node--home,
.lnm-sitemap-app a.lnm-sitemap-node--home:visited,
.lnm-sitemap-app a.lnm-sitemap-node--home:hover,
.lnm-sitemap-app a.lnm-sitemap-node--home:focus {
    color: var(--sitemap-on-red);
}

.lnm-sitemap-app a.lnm-sitemap-node--child,
.lnm-sitemap-app a.lnm-sitemap-node--child:visited,
.lnm-sitemap-app a.lnm-sitemap-node--child:hover,
.lnm-sitemap-app a.lnm-sitemap-node--child:focus,
.lnm-sitemap-app a.lnm-sitemap-node--utility,
.lnm-sitemap-app a.lnm-sitemap-node--utility:visited,
.lnm-sitemap-app a.lnm-sitemap-node--utility:hover,
.lnm-sitemap-app a.lnm-sitemap-node--utility:focus {
    color: var(--sitemap-text);
}

/* ── Tree layout ────────────────────────────────────────────── */
.lnm-sitemap-tree {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.lnm-sitemap-home-row {
    display: flex;
    justify-content: center;
}

.lnm-sitemap-connector {
    width: var(--sitemap-line-w);
    background: var(--sitemap-line);
    margin: 0 auto;
    border-radius: 1px;
}

.lnm-sitemap-connector--home {
    height: 28px;
}

.lnm-sitemap-workflow-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 0.5rem;
    padding: 0 0 0.65rem;
    border-bottom: 1px solid var(--sitemap-border);
    margin-bottom: 0.75rem;
}

.lnm-sitemap-workflow-viewport {
    position: relative;
    min-height: 420px;
    height: min(78vh, 720px);
    overflow: hidden;
    border-radius: 8px;
    cursor: grab;
    touch-action: none;
}

.lnm-sitemap-workflow-viewport--dragging {
    cursor: grabbing;
}

.lnm-sitemap-workflow-stage {
    transform-origin: 0 0;
    will-change: transform;
    padding: 0.5rem 0.75rem 1.5rem;
    width: max-content;
    min-width: 100%;
}

.lnm-sitemap-sections-row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1.25rem 0.75rem;
    width: max-content;
    min-width: 100%;
    padding-top: 0.5rem;
    position: relative;
    margin: 0 auto;
}

.lnm-sitemap-sections-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 60px;
    right: 60px;
    height: var(--sitemap-line-w);
    background: var(--sitemap-line);
    border-radius: 1px;
}

.lnm-sitemap-section-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 120px;
    width: 120px;
    min-width: 120px;
    max-width: 140px;
    position: relative;
    padding-top: 24px;
    align-self: flex-start;
}

.lnm-sitemap-section-col--aap {
    flex: 0 0 120px;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    overflow: visible;
    z-index: 2;
}

.lnm-sitemap-section-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--sitemap-line-w);
    height: 24px;
    background: var(--sitemap-line);
    border-radius: 1px;
    z-index: 1;
}

.lnm-sitemap-section-col > .lnm-sitemap-children {
    position: relative;
    margin-top: 0.65rem;
    padding-top: 16px;
    width: 100%;
}

.lnm-sitemap-section-col > .lnm-sitemap-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--sitemap-line-w);
    height: 16px;
    background: var(--sitemap-line);
    border-radius: 1px;
}

.lnm-sitemap-section-col > .lnm-sitemap-children::after {
    content: '';
    position: absolute;
    top: 16px;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--sitemap-line-w);
    background: var(--sitemap-line-soft);
    border-radius: 1px;
    z-index: 0;
}

.lnm-sitemap-section-col > .lnm-sitemap-children > li {
    position: relative;
    z-index: 1;
}

.lnm-sitemap-section-col > .lnm-sitemap-children > li + li {
    margin-top: 0.45rem;
}

/* ── Nodes ──────────────────────────────────────────────────── */
.lnm-sitemap-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.2rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lnm-sitemap-node:hover {
    transform: translateY(-2px);
}

.lnm-sitemap-node--primary,
.lnm-sitemap-node--home {
    background: var(--sitemap-red);
    color: var(--sitemap-on-red);
    border: 1px solid var(--sitemap-red-dk);
    border-radius: 6px;
    padding: 0.75rem 0.5rem 0.65rem;
    min-width: 108px;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.lnm-sitemap-node--primary:hover,
.lnm-sitemap-node--home:hover {
    background: var(--sitemap-red-dk);
    color: var(--sitemap-on-red);
}

.lnm-sitemap-node--home {
    min-width: 160px;
    padding: 1rem 1.5rem;
    font-size: 15px;
}

.lnm-sitemap-node--child {
    background: var(--sitemap-white);
    color: var(--sitemap-text);
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    padding: 0.5rem 0.45rem;
    width: 100%;
    font-size: 11px;
    margin-top: 0.4rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.lnm-sitemap-node--child:hover {
    border-color: var(--sitemap-red);
    color: var(--sitemap-text);
}

.lnm-sitemap-node--utility {
    background: var(--sitemap-white);
    color: var(--sitemap-text);
    border: 1px solid #bdbdbd;
    border-radius: 6px;
    padding: 0.85rem 0.7rem;
    min-width: 115px;
    flex: 1 1 115px;
    max-width: 155px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.lnm-sitemap-node--utility:hover {
    border-color: var(--sitemap-red);
    color: var(--sitemap-text);
}

.lnm-sitemap-node--unpublished {
    opacity: 0.55;
    border-style: dashed;
}

.lnm-sitemap-node-label {
    font-weight: 700;
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: inherit;
}

.lnm-sitemap-node--primary .lnm-sitemap-node-label,
.lnm-sitemap-node--home .lnm-sitemap-node-label {
    font-size: 11px;
    color: var(--sitemap-on-red);
}

.lnm-sitemap-node--home .lnm-sitemap-node-label {
    font-size: 13px;
    letter-spacing: 0.04em;
}

.lnm-sitemap-node-path {
    font-size: 9px;
    word-break: break-all;
    line-height: 1.15;
    color: inherit;
}

.lnm-sitemap-node--primary .lnm-sitemap-node-path,
.lnm-sitemap-node--home .lnm-sitemap-node-path {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 400;
    text-transform: lowercase;
}

.lnm-sitemap-node--child .lnm-sitemap-node-label {
    font-weight: 600;
    text-transform: none;
    font-size: 10px;
    color: var(--sitemap-text);
}

.lnm-sitemap-node--child .lnm-sitemap-node-path {
    color: var(--sitemap-muted);
    font-size: 9px;
}

.lnm-sitemap-node--utility .lnm-sitemap-node-label {
    color: var(--sitemap-text);
}

.lnm-sitemap-node--utility .lnm-sitemap-node-path {
    color: var(--sitemap-muted);
}

.lnm-sitemap-children {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.lnm-sitemap-children li {
    margin: 0;
    padding: 0;
}

.lnm-sitemap-children--nested {
    margin-top: 0.35rem;
    padding-left: 0.35rem;
    border-left: 2px solid var(--sitemap-border);
}

/* ── Ask a Pro expansion (categories → profiles) ─────────────── */
.lnm-sitemap-aap-expansion {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: min(1040px, 92vw);
    margin-top: 0;
    padding: 0 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lnm-sitemap-aap-bus-drop {
    width: var(--sitemap-line-w);
    height: 18px;
    background: var(--sitemap-line);
    border-radius: 1px;
    flex-shrink: 0;
}

/* ── Ask a Pro branch grid ─────────────────────────────────── */
.lnm-sitemap-aap-zoom-btn {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border: 1px solid var(--sitemap-border);
    border-radius: 6px;
    background: #fff;
    color: var(--sitemap-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.lnm-sitemap-aap-zoom-btn--reset {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0 0.65rem;
}

.lnm-sitemap-aap-zoom-btn:hover,
.lnm-sitemap-aap-zoom-btn:focus {
    border-color: var(--sitemap-red);
    color: var(--sitemap-red);
}

.lnm-sitemap-aap-controls-hint {
    font-size: 11px;
    color: var(--sitemap-muted);
}

.lnm-sitemap-aap-tree-branches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0 0.85rem;
    row-gap: 1.25rem;
    width: 100%;
    align-items: start;
    justify-items: stretch;
    position: relative;
    padding-top: 26px;
    margin-top: 0.15rem;
}

.lnm-sitemap-aap-tree-branches::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--sitemap-line-w);
    background: var(--sitemap-line);
    border-radius: 1px;
}

.lnm-sitemap-aap-tree-branch {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    width: 100%;
    position: relative;
    padding-top: 0;
}

.lnm-sitemap-aap-tree-branch::before {
    content: '';
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--sitemap-line-w);
    height: 26px;
    background: var(--sitemap-line);
    border-radius: 1px;
    z-index: 1;
}

.lnm-sitemap-aap-tree-cat {
    margin-top: 0;
    width: 100%;
    position: relative;
    z-index: 2;
}

.lnm-sitemap-aap-tree-leaves {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    width: 100%;
    padding-top: 14px;
    position: relative;
}

.lnm-sitemap-aap-tree-leaves::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--sitemap-line-w);
    height: 14px;
    background: var(--sitemap-line-soft);
    border-radius: 1px;
}

.lnm-sitemap-aap-tree-leaves::after {
    content: '';
    position: absolute;
    top: 14px;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--sitemap-line-w);
    background: var(--sitemap-line-soft);
    border-radius: 1px;
    z-index: 0;
}

.lnm-sitemap-aap-tree-leaf-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-width: none;
    position: relative;
    z-index: 1;
}

.lnm-sitemap-aap-tree-leaf {
    margin-top: 0;
    font-size: 10px;
    padding: 0.4rem 0.45rem;
    width: 100%;
}

.lnm-sitemap-aap-tree-leaf--profile {
    font-size: 9px;
}

.lnm-sitemap-aap-tree-leaf .lnm-sitemap-node-label {
    font-size: 10px;
}

.lnm-sitemap-aap-tree-leaf--profile .lnm-sitemap-node-label {
    font-size: 9px;
}

.lnm-sitemap-aap-tree-leaf--pagination {
    border-style: dashed;
    opacity: 0.85;
}

.lnm-sitemap-aap-tree-hub-pages,
.lnm-sitemap-aap-tree-cat-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    position: relative;
    padding-top: 12px;
    width: 100%;
}

.lnm-sitemap-aap-tree-hub-pages::before,
.lnm-sitemap-aap-tree-cat-pages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--sitemap-line-w);
    height: 12px;
    background: var(--sitemap-line-soft);
    border-radius: 1px;
}

.lnm-sitemap-aap-tree-hub-pages .lnm-sitemap-aap-tree-leaf-wrap,
.lnm-sitemap-aap-tree-cat-pages .lnm-sitemap-aap-tree-leaf-wrap {
    min-width: 72px;
    max-width: 100px;
}

/* ── Icons (CSS shapes / emoji fallback) ────────────────────── */
.lnm-sitemap-icon {
    display: block;
    width: 22px;
    height: 22px;
    margin-bottom: 0.15rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    font-size: 18px;
    line-height: 22px;
}

.lnm-sitemap-icon--newspaper::before { content: '📰'; }
.lnm-sitemap-icon--person::before { content: '👤'; }
.lnm-sitemap-icon--gamepad::before { content: '🎮'; }
.lnm-sitemap-icon--calendar::before { content: '📅'; }
.lnm-sitemap-icon--music::before { content: '🎵'; }
.lnm-sitemap-icon--radio::before { content: '📻'; }
.lnm-sitemap-icon--chip::before { content: '💻'; }
.lnm-sitemap-icon--cross::before { content: '✝'; }
.lnm-sitemap-icon--cloud::before { content: '⛅'; }
.lnm-sitemap-icon--car::before { content: '🚗'; }
.lnm-sitemap-icon--mic::before { content: '🎙'; }
.lnm-sitemap-icon--trophy::before { content: '🏆'; }
.lnm-sitemap-icon--video::before { content: '🎬'; }
.lnm-sitemap-icon--image::before { content: '🖼'; }
.lnm-sitemap-icon--lightbulb::before { content: '💡'; }
.lnm-sitemap-icon--map-pin::before { content: '📍'; }
.lnm-sitemap-icon--users::before { content: '👥'; }
.lnm-sitemap-icon--mail::before { content: '✉'; }
.lnm-sitemap-icon--megaphone::before { content: '📣'; }
.lnm-sitemap-icon--shield::before { content: '🛡'; }
.lnm-sitemap-icon--document::before { content: '📄'; }
.lnm-sitemap-icon--sitemap::before { content: '🗺'; }
.lnm-sitemap-icon--link::before { content: '🔗'; }

.lnm-sitemap-icon::before {
    display: block;
    text-align: center;
}

/* ── Utility row ────────────────────────────────────────────── */
.lnm-sitemap-utility {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px dotted var(--sitemap-border);
}

.lnm-sitemap-utility-label {
    margin: 0 0 1rem;
    text-align: center;
    font-weight: 700;
    color: var(--sitemap-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
}

.lnm-sitemap-utility-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.lnm-sitemap-utility--dock-bottom {
    margin-top: 0.85rem;
    margin-bottom: 0;
    padding-top: 0.85rem;
    padding-bottom: 0;
    border-top: 2px dotted var(--sitemap-border);
    border-bottom: none;
}

.lnm-sitemap-aap-profiles-note {
    margin: 0.35rem 0 0;
    padding: 0 0.25rem;
    font-size: 10px;
    line-height: 1.35;
    color: var(--sitemap-muted);
    text-align: center;
}

.lnm-sitemap-aap-profiles-note a {
    color: var(--sitemap-red);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lnm-sitemap-aap-profiles-note a:hover {
    color: var(--sitemap-red-dk);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .lnm-sitemap-app {
        padding: 1.25rem 0.75rem 1.75rem;
    }

    .lnm-sitemap-sections-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .lnm-sitemap-section-col {
        flex: 0 0 120px;
    }

    .lnm-sitemap-sections-row::before {
        left: 60px;
        right: 60px;
    }
}

/* ── wp-admin preview (isolate from admin link styles) ───────── */
.lnm-sitemap-admin-preview {
    margin-top: 0.5rem;
    padding: 1.25rem;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow-x: auto;
}

.lnm-sitemap-admin-preview .lnm-sitemap-app {
    margin: 0;
    max-width: none;
}

.lnm-admin-wrap .lnm-sitemap-app a.lnm-sitemap-node--primary,
.lnm-admin-wrap .lnm-sitemap-app a.lnm-sitemap-node--primary:visited,
.lnm-admin-wrap .lnm-sitemap-app a.lnm-sitemap-node--primary:hover,
.lnm-admin-wrap .lnm-sitemap-app a.lnm-sitemap-node--home,
.lnm-admin-wrap .lnm-sitemap-app a.lnm-sitemap-node--home:visited,
.lnm-admin-wrap .lnm-sitemap-app a.lnm-sitemap-node--home:hover {
    color: #ffffff;
    box-shadow: none;
}

.lnm-admin-wrap .lnm-sitemap-app a.lnm-sitemap-node--primary .lnm-sitemap-node-label,
.lnm-admin-wrap .lnm-sitemap-app a.lnm-sitemap-node--primary .lnm-sitemap-node-path,
.lnm-admin-wrap .lnm-sitemap-app a.lnm-sitemap-node--home .lnm-sitemap-node-label,
.lnm-admin-wrap .lnm-sitemap-app a.lnm-sitemap-node--home .lnm-sitemap-node-path {
    color: #ffffff;
}

.lnm-admin-wrap .lnm-sitemap-app a.lnm-sitemap-node--primary .lnm-sitemap-node-path,
.lnm-admin-wrap .lnm-sitemap-app a.lnm-sitemap-node--home .lnm-sitemap-node-path {
    opacity: 0.92;
}

/* Theme content areas (MagazineNP, etc.) often force link color on anchors */
.entry-content .lnm-sitemap-app a.lnm-sitemap-node--primary,
.entry-content .lnm-sitemap-app a.lnm-sitemap-node--primary:visited,
.entry-content .lnm-sitemap-app a.lnm-sitemap-node--primary:hover,
.entry-content .lnm-sitemap-app a.lnm-sitemap-node--home,
.entry-content .lnm-sitemap-app a.lnm-sitemap-node--home:visited,
.entry-content .lnm-sitemap-app a.lnm-sitemap-node--home:hover,
.site-main .lnm-sitemap-app a.lnm-sitemap-node--primary,
.site-main .lnm-sitemap-app a.lnm-sitemap-node--primary:visited,
.site-main .lnm-sitemap-app a.lnm-sitemap-node--primary:hover,
.site-main .lnm-sitemap-app a.lnm-sitemap-node--home,
.site-main .lnm-sitemap-app a.lnm-sitemap-node--home:visited,
.site-main .lnm-sitemap-app a.lnm-sitemap-node--home:hover,
#content .lnm-sitemap-app a.lnm-sitemap-node--primary,
#content .lnm-sitemap-app a.lnm-sitemap-node--primary:visited,
#content .lnm-sitemap-app a.lnm-sitemap-node--primary:hover,
#content .lnm-sitemap-app a.lnm-sitemap-node--home,
#content .lnm-sitemap-app a.lnm-sitemap-node--home:visited,
#content .lnm-sitemap-app a.lnm-sitemap-node--home:hover {
    color: #ffffff;
}

.entry-content .lnm-sitemap-app a.lnm-sitemap-node--primary .lnm-sitemap-node-label,
.entry-content .lnm-sitemap-app a.lnm-sitemap-node--primary .lnm-sitemap-node-path,
.entry-content .lnm-sitemap-app a.lnm-sitemap-node--home .lnm-sitemap-node-label,
.entry-content .lnm-sitemap-app a.lnm-sitemap-node--home .lnm-sitemap-node-path,
.site-main .lnm-sitemap-app a.lnm-sitemap-node--primary .lnm-sitemap-node-label,
.site-main .lnm-sitemap-app a.lnm-sitemap-node--primary .lnm-sitemap-node-path,
.site-main .lnm-sitemap-app a.lnm-sitemap-node--home .lnm-sitemap-node-label,
.site-main .lnm-sitemap-app a.lnm-sitemap-node--home .lnm-sitemap-node-path,
#content .lnm-sitemap-app a.lnm-sitemap-node--primary .lnm-sitemap-node-label,
#content .lnm-sitemap-app a.lnm-sitemap-node--primary .lnm-sitemap-node-path,
#content .lnm-sitemap-app a.lnm-sitemap-node--home .lnm-sitemap-node-label,
#content .lnm-sitemap-app a.lnm-sitemap-node--home .lnm-sitemap-node-path {
    color: #ffffff;
}

/* ── Structure list (wp-admin + shared with dashboard layout) ─ */
.lnm-sitemap-structure-card {
    /* max-width: 960px; */
    margin-top: 0.5rem;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.lnm-sitemap-outline-hint {
    margin: 0;
    padding: 0.75rem 1rem;
    color: #50575e;
    font-size: 13px;
    line-height: 1.5;
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
}

.lnm-sitemap-structure-body {
    /* single card — groups stack inside */
}

.lnm-sitemap-outline-group {
    border-bottom: 1px solid #dcdcde;
}

.lnm-sitemap-outline-group:last-child {
    border-bottom: none;
}

.lnm-sitemap-outline-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #f0f0f1;
}

.lnm-sitemap-outline-group > .lnm-sitemap-outline-row:last-child,
.lnm-sitemap-outline-children > .lnm-sitemap-outline-row:last-child,
.lnm-sitemap-outline-group--utility > .lnm-sitemap-outline-row:last-child {
    border-bottom: none;
}

.lnm-sitemap-outline-row--home,
.lnm-sitemap-outline-row--section {
    background: #f6f7f7;
    border-bottom-color: #dcdcde;
}

.lnm-sitemap-outline-row--home .lnm-sitemap-outline-label,
.lnm-sitemap-outline-row--section .lnm-sitemap-outline-label {
    color: #1d2327;
    font-size: 13px;
}

.lnm-sitemap-outline-row--child,
.lnm-sitemap-outline-row--nested {
    /* background: #fafafa; */
}

.lnm-sitemap-outline-row--child {
    padding-left: 2rem;
}

.lnm-sitemap-outline-row--child .lnm-sitemap-outline-row-main {
    border-left: 2px solid #c3c4c7;
    padding-left: 0.65rem;
}

.lnm-sitemap-outline-row--utility {
    background: #fff;
}

.lnm-sitemap-outline-children {
    border-top: 1px solid #e8e8e8;
}

.lnm-sitemap-outline-row-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    min-width: 0;
    flex: 1 1 200px;
}

.lnm-sitemap-outline-branch {
    color: #787c82;
    font-family: ui-monospace, monospace;
    font-size: 12px;
    line-height: 1;
}

.lnm-sitemap-outline-label {
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
}

.lnm-sitemap-outline-path {
    font-size: 12px;
    color: #50575e;
    background: #f0f0f1;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.lnm-sitemap-outline-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #996800;
    background: #fcf9e8;
    border: 1px solid #dba617;
    border-radius: 3px;
    padding: 0.1rem 0.35rem;
}

.lnm-sitemap-outline-row--unpublished .lnm-sitemap-outline-label {
    opacity: 0.85;
}

.lnm-sitemap-outline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    flex-shrink: 0;
}

.lnm-sitemap-outline-utility-heading {
    padding: 0.55rem 1rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #50575e;
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
}

.lnm-sitemap-group-desc {
    margin: 0;
    padding: 0.5rem 1rem 0.65rem;
    font-size: 12px;
    line-height: 1.45;
    color: #50575e;
    border-bottom: 1px solid #f0f0f1;
}

.lnm-sitemap-complete-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #dcdcde;
    background: #fff;
}

.lnm-sitemap-complete-count {
    font-size: 12px;
    color: #50575e;
}

.lnm-sitemap-all-urls-source {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.lnm-admin-wrap .lnm-sitemap-structure-card {
    display: block;
    box-sizing: border-box;
}

.lnm-admin-wrap .lnm-sitemap-structure-card .lnm-sitemap-outline-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.lnm-admin-wrap .lnm-sitemap-structure-card .lnm-sitemap-outline-row-main {
    display: flex !important;
    flex-wrap: wrap;
    align-items: baseline;
}

.lnm-admin-wrap .lnm-sitemap-structure-card .lnm-sitemap-outline-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.lnm-admin-wrap .lnm-sitemap-structure-card .lnm-sitemap-outline-label {
    display: inline;
    font-weight: 600;
    color: #1d2327;
    text-decoration: none;
}

.lnm-admin-wrap .lnm-sitemap-structure-card .lnm-sitemap-outline-path {
    display: inline;
    text-decoration: none;
}

.lnm-admin-wrap .lnm-sitemap-structure-card a.button {
    color: #2271b1;
    text-decoration: none;
}

.lnm-admin-wrap .lnm-sitemap-structure-card .lnm-sitemap-copy-btn {
    color: #1d2327;
}

.lnm-sitemap-visual-details {
    max-width: 100%;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 0 1rem 1rem;
}

.lnm-sitemap-visual-summary {
    cursor: pointer;
    font-weight: 600;
    padding: 0.85rem 0;
    color: #1d2327;
    list-style: none;
}

.lnm-sitemap-visual-summary::-webkit-details-marker {
    display: none;
}

.lnm-admin-wrap .lnm-sitemap-app .lnm-sitemap-sections-row {
    display: flex !important;
    flex-wrap: wrap !important;
}

.lnm-admin-wrap .lnm-sitemap-app .lnm-sitemap-section-col {
    display: flex !important;
    flex-direction: column !important;
}
