/* SEOPress HTML Sitemap styling */
.sp-html-sitemap { padding: 10px 0; }
.sp-wrap-cpt { margin-bottom: 40px; }

h2.sp-cpt-name {
    font-family: 'Raleway', Arial, sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: #322e9c;
    border-bottom: 3px solid #4466fb;
    padding-bottom: 8px;
    margin: 30px 0 16px;
}

h3.sp-cat-name {
    font-family: 'Raleway', Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #4466fb;
    margin: 20px 0 8px;
}
h3.sp-cat-name a { color: #4466fb; text-decoration: none; }
h3.sp-cat-name a:hover { text-decoration: underline; }

/* Top-level page list — 3-column grid */
ul.sp-list-posts {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0 20px;
}

/* All list items */
ul.sp-list-posts li {
    padding: 5px 0 5px 20px;
    position: relative;
    border-bottom: 1px solid #f0f0f8;
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 0.875rem;
    color: #111;
    /* Span full width so nested children don't get trapped in a grid cell */
    grid-column: 1 / -1;
}

ul.sp-list-posts > li {
    /* Only top-level items participate in the grid column layout */
    grid-column: auto;
}

ul.sp-list-posts li::before {
    content: '\203A';
    position: absolute;
    left: 4px;
    color: #4466fb;
    font-weight: 700;
}

ul.sp-list-posts li a {
    color: #322e9c;
    text-decoration: none;
}
ul.sp-list-posts li a:hover {
    color: #4466fb;
    text-decoration: underline;
}

/* Nested children lists */
ul.sp-list-posts ul.children {
    list-style: none;
    padding: 4px 0 0 0;
    margin: 4px 0 0 0;
    display: block;
}

ul.sp-list-posts ul.children li {
    border-bottom: none;
    padding: 3px 0 3px 18px;
    font-size: 0.82rem;
}

ul.sp-list-posts ul.children li::before {
    content: '–';
    left: 2px;
    color: #4466fb;
    font-size: 0.75rem;
}

/* Second-level nesting */
ul.sp-list-posts ul.children ul.children li {
    padding-left: 16px;
    font-size: 0.80rem;
    color: #444;
}
ul.sp-list-posts ul.children ul.children li::before {
    content: '·';
}

.sp-wrap-cats { margin-top: 10px; }
.sp-wrap-cat { margin-bottom: 24px; }
