/* ===========================================
   MEU SUMÁRIO v4.0 — style.css
   =========================================== */

/* ── Container ── */
.ms-nav {
    max-width: 640px;
    margin: 28px 0 32px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.09);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
}

/* ── Cabeçalho vermelho ── */
.ms-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #c0392b;
    padding: 12px 20px;
}

.ms-ico {
    display: inline-block;
    width: 15px;
    height: 11px;
    flex-shrink: 0;
    background:
        linear-gradient(#fff,#fff) 0 0   / 15px 2px no-repeat,
        linear-gradient(#fff,#fff) 0 5px / 15px 2px no-repeat,
        linear-gradient(#fff,#fff) 0 10px/ 15px 2px no-repeat;
    opacity: .9;
}

.ms-titulo {
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* ── Lista raiz ── */
.ms-root {
    list-style: none !important;
    margin:  0 !important;
    padding: 6px 0 !important;
    background: #fff;
    border: 1px solid #e8e0e0;
    border-top: none;
}

/* ── Linhas ── */
.ms-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-left: 2px solid transparent;
    transition: border-color .18s, background .18s;
}

/* Hover sofisticado: linha vermelha lateral + fundo suave */
.ms-row:hover {
    border-left-color: #c0392b;
    background: #fdf6f6;
}

.ms-row3 {
    padding-left: 48px;
}
.ms-row3:hover {
    border-left-color: transparent;
    background: #fdf6f6;
}

/* ── Links ── */
.ms-a {
    text-decoration: none !important;
    flex: 1;
    transition: color .18s;
}
.ms-a:visited { color: inherit; }
.ms-a2 {
    color: #1c1c1c;
    font-weight: 700;
    font-size: .94rem;
}
.ms-a3 {
    color: #555;
    font-size: .86rem;
}
.ms-row:hover .ms-a2,
.ms-row:hover .ms-a3 {
    color: #c0392b;
}

/* ══════════════════════════════════════════
   ÍCONE 1 — Seta animada (tem filhos)
══════════════════════════════════════════ */
.ms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Remove hover de sombra — só a linha lateral do .ms-row faz o efeito */
.ms-btn:focus-visible {
    outline: 2px solid #c0392b;
    border-radius: 2px;
}

/* Seta chevron com bordas (mais sofisticada que triângulo) */
.ms-arrow-icon {
    display: block;
    width:  7px;
    height: 7px;
    border-right: 2px solid #c0392b;
    border-bottom: 2px solid #c0392b;
    transform: rotate(-45deg);           /* aponta para direita → */
    transition: transform .25s ease;
    margin-left: 2px;                    /* compensa rotação visual */
    flex-shrink: 0;
}

/* Quando expandido: gira para apontar para baixo ↓ */
.ms-btn-arrow.aberto .ms-arrow-icon {
    transform: rotate(45deg);
    margin-left: 0;
    margin-top: -3px;
}

/* ══════════════════════════════════════════
   ÍCONE 2 — Quadrado pequeno (sem filhos)
══════════════════════════════════════════ */
.ms-btn-dot {
    cursor: default;                     /* não é clicável */
}

.ms-square-icon {
    display: block;
    width:  6px;
    height: 6px;
    border: 2px solid #c0392b;
    border-radius: 1px;
    flex-shrink: 0;
    opacity: .65;
}

/* ── Sub-lista — OCULTA por padrão ── */
.ms-sub {
    display: none !important;
    list-style: none !important;
    margin:  0 !important;
    padding: 2px 0 4px !important;
    border-top: 1px solid #f5eded;
}
.ms-sub.ms-open {
    display: block !important;
}

/* ── Traço para H3 ── */
.ms-dash {
    display: inline-block;
    width: 10px;
    height: 1.5px;
    background: #c0392b;
    opacity: .4;
    flex-shrink: 0;
    border-radius: 1px;
}

/* ── Separador entre grupos H2 ── */
.ms-li2 + .ms-li2 {
    border-top: 1px solid #f3eded;
}

/* ── Responsivo ── */
@media (max-width: 600px) {
    .ms-nav  { max-width: 100%; }
    .ms-a2   { font-size: .90rem; }
    .ms-a3   { font-size: .83rem; }
    .ms-row  { padding: 8px 14px; }
}
