/* ==========================================================================
   Harta HTML publica (/harta-site/) - mobile-first, responsive, sectiuni
   pliabile native (<details>/<summary>, fara JavaScript). Dark mode via
   body.dark-mode (comutatorul real de pe site).
   ========================================================================== */

.crd-sitemap-page .crd-sitemap-title {
    margin-bottom: 16px;
}

.crd-sitemap-map {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crd-sitemap-section {
    border: 1px solid #d8e5ef;
    border-radius: 8px;
    background: #fff;
    padding: 4px 16px;
}

.crd-sitemap-section > summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    padding: 12px 0;
}

.crd-sitemap-section__body {
    padding: 4px 0 16px;
}

.crd-sitemap-tree,
.crd-sitemap-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.crd-sitemap-tree .crd-sitemap-tree {
    margin-top: 6px;
    padding-left: 20px;
    border-left: 2px solid #eaeaea;
}

.crd-sitemap-tree li,
.crd-sitemap-list li {
    margin: 6px 0;
}

.crd-sitemap-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
}

@media (min-width: 768px) {
    .crd-sitemap-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .crd-sitemap-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.crd-sitemap-map a {
    text-decoration: none;
    color: #09233f;
}

.crd-sitemap-map a:hover,
.crd-sitemap-map a:focus-visible {
    text-decoration: underline;
    color: #00a98d;
}

body.dark-mode .crd-sitemap-section {
    background: #102943;
    border-color: rgba(0, 207, 166, .35);
}

body.dark-mode .crd-sitemap-map a {
    color: #f1f7ff;
}

body.dark-mode .crd-sitemap-map a:hover,
body.dark-mode .crd-sitemap-map a:focus-visible {
    color: #00d5ad;
}

body.dark-mode .crd-sitemap-tree .crd-sitemap-tree {
    border-left-color: #1c3a56;
}
