/**
 * FlowMap public sitemap styles
 *
 * Intentionally minimal — inherits the site template's typography and
 * colors. Adds structure: the sections grid (tier 1) and the directory
 * filter bar + list (tier 2).
 */

.flowmap-sitemap h1 {
    margin-bottom: 1.5rem;
}

.flowmap-tier {
    margin-bottom: 2.5rem;
}

/* ── Tier 1: sections (one per menu) ── */

.flowmap-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1.5rem 2rem;
}

.flowmap-section-title {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.flowmap-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.flowmap-item {
    margin-bottom: 0.2rem;
}

.flowmap-item a {
    display: inline-block;
    padding: 0.15rem 0;
}

.flowmap-depth-1 > a { font-weight: 600; }
.flowmap-depth-2 { padding-left: 1rem; }
.flowmap-depth-3 { padding-left: 2rem; }
.flowmap-depth-4 { padding-left: 3rem; }

/* ── Tier 2: the directory ── */

.flowmap-directory-title {
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(128, 128, 128, 0.25);
}

.flowmap-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.flowmap-filters select,
.flowmap-filters input[type="search"] {
    padding: 0.35rem 0.5rem;
    max-width: 100%;
}

.flowmap-filter-clear {
    font-size: 0.9rem;
}

/* Wave 2: sort / filter / search as distinct control groups */
.flowmap-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}

.flowmap-group {
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 6px;
    padding: 0.35rem 0.6rem 0.55rem;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    min-width: 0;
}

.flowmap-group-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.65;
    padding: 0 0.25rem;
}

.flowmap-group select,
.flowmap-group input[type="search"] {
    padding: 0.35rem 0.5rem;
    max-width: 100%;
}

.flowmap-group-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding-bottom: 0.35rem;
}

.flowmap-letter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
}

.flowmap-letter-strip a {
    display: inline-block;
    min-width: 1.8rem;
    padding: 0.2rem 0.4rem;
    text-align: center;
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
}

.flowmap-letter-strip a.active {
    font-weight: 700;
    border-color: currentColor;
}

.flowmap-section-count {
    font-size: 0.75em;
    font-weight: 400;
    opacity: 0.6;
}

.flowmap-directory-count {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.flowmap-directory-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.5rem;
}

.flowmap-directory-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    align-items: baseline;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(128, 128, 128, 0.12);
}

.flowmap-directory-meta {
    font-size: 0.85rem;
    opacity: 0.75;
    display: inline-flex;
    gap: 0.5rem;
    align-items: baseline;
}

.flowmap-chip {
    display: inline-block;
    padding: 0.05rem 0.5rem;
    border: 1px solid rgba(128, 128, 128, 0.35);
    border-radius: 1rem;
    font-size: 0.78rem;
    white-space: nowrap;
}

.flowmap-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    padding-left: 0;
}
