/**
 * Sitemap Stylesheet
 *
 * BEM naming: .wp-sitemap__[element]--[modifier]
 *
 * @package    AW_Theme
 * @subpackage Sitemap
 * @since      1.0.0
 */

/* ─── Wrapper ─────────────────────────────────────────────── */
.wp-sitemap {
    margin: 2rem 0;
    font-size: 0.9375rem; /* 15px */
    line-height: 1.6;
}

/* ─── Section (pages, or standalone CPT) ─────────────────── */
.wp-sitemap__section {
    margin-bottom: 2.5rem;
}

/* ─── Lists ───────────────────────────────────────────────── */
.wp-sitemap__list {
    list-style: disc;
    margin: 0.375rem 0 0 0;
    padding-left: 1.5rem;
}

/* Children of a page */
.wp-sitemap__list--children {
    list-style: circle;
}

/* Year grouping */
.wp-sitemap__list--year {
    list-style: none;
    padding-left: 1.25rem;
}

/* Month grouping */
.wp-sitemap__list--month {
    list-style: disc;
    padding-left: 1.5rem;
}

/* Category / taxonomy grouping */
.wp-sitemap__list--category,
.wp-sitemap__list--taxonomy {
    list-style: disc;
    padding-left: 1.5rem;
}

/* ─── Items ───────────────────────────────────────────────── */
.wp-sitemap__item {
    margin-bottom: 0.3rem;
}

/* ─── Group (year, month, category label rows) ────────────── */
.wp-sitemap__group {
    margin-bottom: 0.5rem;
    list-style: none;
}

.wp-sitemap__group-label {
    display: inline-block;
    font-weight: 600;
    color: inherit;
    margin-bottom: 0.2rem;
}

/* Year label slightly larger */
.wp-sitemap__group--year > .wp-sitemap__group-label {
    font-size: 1rem;
}

/* Month label slightly muted */
.wp-sitemap__group--month > .wp-sitemap__group-label {
    font-weight: 500;
    opacity: 0.85;
}

/* ─── Links ───────────────────────────────────────────────── */
.wp-sitemap__link {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wp-sitemap__link:hover,
.wp-sitemap__link:focus {
    text-decoration: none;
    outline-offset: 3px;
}

/* ─── Excerpt ─────────────────────────────────────────────── */
.wp-sitemap__excerpt {
    display: block;
    font-size: 0.8125rem; /* 13px */
    opacity: 0.7;
    margin-top: 0.15rem;
}
