/* ══ Public SITE MAP — menu tree as a map/graph. Theme-token driven (light/dark auto). ══ */
.smap-intro {
    max-width: 68ch;
    color: var(--pub-mut);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 30px;
}

/* Responsive grid of section columns; each column is a mini connected tree. */
.smap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
    align-items: start;
}

.smap-col {
    background: var(--pub-card);
    border: 1px solid var(--pub-line);
    border-radius: var(--pub-radius);
    padding: 18px 18px 20px;
    box-shadow: var(--pub-shadow);
}

/* section header (top-level menu item) */
.smap-col__head {
    display: flex;
    align-items: center;
    gap: 11px;
}
.smap-col__ic {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--brand-navy) 12%, transparent);
    color: var(--brand-navy);
    flex: 0 0 auto;
}
.smap-col__ic svg { width: 19px; height: 19px; }
.smap-col__t {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--pub-ink);
    text-decoration: none;
    line-height: 1.2;
}
a.smap-col__t:hover { color: var(--brand-red); }
.smap-col__count {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--pub-mut);
    background: var(--pub-soft);
    border: 1px solid var(--pub-line);
    border-radius: 999px;
    padding: 3px 9px;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* the connected tree (elbow connectors drawn with pseudo-elements) */
.smap-branch {
    list-style: none;
    margin: 0;
    padding: 0 0 0 8px;
}
.smap-branch--root {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--pub-line);
}
.smap-node {
    position: relative;
    padding: 0 0 0 20px;
}
/* vertical trunk line running through the siblings */
.smap-node::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 0;
    bottom: 0;
    border-left: 2px solid var(--pub-line);
}
/* last sibling: stop the trunk at its own elbow */
.smap-node:last-child::before { bottom: auto; height: 17px; }
/* horizontal elbow into the leaf */
.smap-node::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 17px;
    width: 13px;
    border-top: 2px solid var(--pub-line);
}

.smap-leaf {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}
.smap-leaf__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-red);
    flex: 0 0 auto;
}
.smap-leaf a {
    color: var(--pub-ink);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}
.smap-leaf a:hover { color: var(--brand-red); text-decoration: underline; }
.smap-leaf__t {
    color: var(--pub-ink);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

/* deeper levels (grandchildren): navy dots, tighter */
.smap-branch .smap-branch { padding-left: 6px; }
.smap-branch .smap-branch .smap-leaf__dot { background: var(--brand-navy); }
.smap-branch .smap-branch .smap-leaf a,
.smap-branch .smap-branch .smap-leaf__t { font-weight: 500; font-size: 0.9rem; }

@media (max-width: 520px) {
    .smap-grid { grid-template-columns: 1fr; gap: 16px; }
}
