/* ============================================================
   Site Map  (css/sitemap.css)
   Scoped under .sitemap — clean multi-column grouped layout.
   Palette: gold #B8860B (accent/hover), silver #e8eaed/#d8dade/#b0b4ba
   (structure), slate #212529/#495057/#6c757d (text), teal #00897b.
   NO blue. Mobile-first responsive grid (1 / 2 / 3-4 columns).
   ============================================================ */

.sitemap {
    --sm-gold: #B8860B;
    --sm-silver-1: #e8eaed;
    --sm-silver-2: #d8dade;
    --sm-silver-3: #b0b4ba;
    --sm-slate-1: #212529;
    --sm-slate-2: #495057;
    --sm-slate-3: #6c757d;
    --sm-teal: #00897b;
    display: block;
    color: var(--sm-slate-2);
    font-size: 14px;
    line-height: 1.5;
}

/* Responsive grid: 1 col (phones) -> 2 (>=576) -> 3 (>=768) -> 4 (>=1100) */
.sitemap .sitemap-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 576px) {
    .sitemap .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .sitemap .sitemap-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
    .sitemap .sitemap-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Each section = a card */
.sitemap .sitemap-col {
    background: #fff;
    border: 1px solid var(--sm-silver-2);
    border-top: 3px solid var(--sm-gold);
    border-radius: 6px;
    padding: 14px 16px 12px;
    box-shadow: 0 1px 2px rgba(33, 37, 41, 0.05);
    min-width: 0; /* prevent overflow / horizontal scroll */
}

/* Section heading */
.sitemap .sitemap-heading {
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--sm-silver-1);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--sm-slate-1);
    text-transform: uppercase;
}

.sitemap .sitemap-heading a {
    color: var(--sm-slate-1);
    text-decoration: none;
}

.sitemap .sitemap-heading a:hover,
.sitemap .sitemap-heading a:focus {
    color: var(--sm-gold);
}

/* Link list */
.sitemap .sitemap-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sitemap .sitemap-links li {
    margin: 0;
    padding: 0;
}

.sitemap .sitemap-links li a,
.sitemap .sitemap-links li svg + a {
    display: block;
    padding: 5px 8px 5px 16px;
    position: relative;
    color: var(--sm-slate-2);
    text-decoration: none;
    border-radius: 4px;
    word-break: break-word;
    overflow-wrap: anywhere;
    transition: color .12s ease, background-color .12s ease, padding-left .12s ease;
}

/* Bullet marker — teal, sparingly used as a structural accent */
.sitemap .sitemap-links li a::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: var(--sm-teal);
    transition: background-color .12s ease;
}

/* Gold hover treatment */
.sitemap .sitemap-links li a:hover,
.sitemap .sitemap-links li a:focus {
    color: var(--sm-gold);
    background: var(--sm-silver-1);
    padding-left: 19px;
    outline: none;
}

.sitemap .sitemap-links li a:hover::before,
.sitemap .sitemap-links li a:focus::before {
    background: var(--sm-gold);
}

/* External links get a small marker */
.sitemap .sitemap-links li a.sitemap-ext::after {
    content: "\f08e"; /* FA4 external-link — works with the FontAwesome webfont */
    font-family: "FontAwesome";
    font-size: 10px;
    margin-left: 6px;
    color: var(--sm-silver-3);
}

.sitemap .sitemap-links li a.sitemap-ext:hover::after,
.sitemap .sitemap-links li a.sitemap-ext:focus::after {
    color: var(--sm-gold);
}

/* Modal title icon tint */
#siteMapModal .modal-title .fa,
#siteMapModal .modal-title svg {
    color: var(--sm-gold, #B8860B);
    margin-right: 6px;
}
