/* ===== Breadcrumb ===== */
.st-breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.st-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--t);
}
.st-breadcrumb a:hover { color: var(--accent); }
.st-breadcrumb .sep { color: var(--text-muted); }

/* ===== Hub ===== */
.st-hub-disclaimer {
    background: rgba(255,235,59,0.06);
    border: 1px solid rgba(255,235,59,0.25);
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
    padding: 0.85rem 1.1rem;
    font-size: 0.85rem;
    line-height: 1.55;
    margin-bottom: 2rem;
}
.st-hub-disclaimer strong { color: var(--yellow); }

.st-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.st-card {
    display: flex; flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: all var(--t);
    position: relative;
    overflow: hidden;
}
.st-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}
.st-card-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-xs);
    margin-bottom: 1rem;
    background: var(--accent-soft);
    border: 1px solid rgba(23,141,154,0.25);
    color: var(--accent);
}
.st-card-icon svg { width: 28px; height: 28px; }

.st-card-tag {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.st-card h3 {
    font-size: 1.1rem; font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
}
.st-card p {
    font-size: 0.9rem; color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
}
.st-pills {
    display: flex; gap: 0.4rem; flex-wrap: wrap;
    margin-bottom: 1rem;
}
.st-pill {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 50px;
    font-size: 0.7rem; font-weight: 600;
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.st-card-cta {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: auto;
}
.st-card-cta svg { width: 14px; height: 14px; }

/* ===== Sub-page anchor nav (tabs) ===== */
.st-anchor-nav {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0.6rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 70px;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(20,20,20,0.85);
}
.st-anchor-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all var(--t);
}
.st-anchor-nav a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border-color: var(--border);
}

/* ===== Section ===== */
.st-section {
    margin-bottom: 3rem;
    scroll-margin-top: 140px;
}
.st-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.st-section h2 svg {
    width: 20px; height: 20px;
    color: var(--accent);
}
.st-section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text);
}
.st-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1rem;
}
.st-section p strong { color: var(--text); font-weight: 600; }
.st-section a {
    color: var(--accent);
    text-decoration: none;
}
.st-section a:hover { text-decoration: underline; }

/* ===== Risk list ===== */
.st-risk-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.st-risk-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    border-radius: var(--radius-xs);
    padding: 0.9rem 1.1rem;
}
.st-risk-item .st-risk-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    display: block;
}
.st-risk-item .st-risk-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ===== Bases legais table ===== */
.st-bases-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    overflow: hidden;
    font-size: 0.88rem;
}
.st-bases-table thead {
    background: rgba(255,255,255,0.03);
}
.st-bases-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
}
.st-bases-table td {
    padding: 0.85rem 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    line-height: 1.5;
    vertical-align: top;
}
.st-bases-table tr:last-child td { border-bottom: 0; }
.st-bases-table .base-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(23,141,154,0.25);
    white-space: nowrap;
}
@media (max-width: 720px) {
    .st-bases-table { font-size: 0.8rem; }
    .st-bases-table th, .st-bases-table td { padding: 0.6rem 0.6rem; }
}

/* ===== Checklist ===== */
.st-checklist-bar {
    display: flex; align-items: center; gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0.85rem 1.1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.st-checklist-progress {
    flex-grow: 1;
    min-width: 160px;
}
.st-checklist-progress-track {
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 50px;
    overflow: hidden;
    margin-top: 4px;
}
.st-checklist-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--green));
    border-radius: 50px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.32, 1);
}
.st-checklist-counter {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}
.st-checklist-counter strong {
    color: var(--text);
    font-weight: 700;
}
.st-btn-clear {
    padding: 6px 14px;
    border-radius: 50px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--t);
}
.st-btn-clear:hover {
    color: var(--red);
    border-color: rgba(239,68,68,0.4);
}

.st-checklist {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.st-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all var(--t);
    user-select: none;
}
.st-check-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}
.st-check-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border: 2px solid var(--border-hover);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
    transition: all var(--t);
    position: relative;
}
.st-check-item input[type="checkbox"]:checked {
    background: var(--green);
    border-color: var(--green);
}
.st-check-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px; top: 0px;
    width: 5px; height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.st-check-item-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}
.st-check-item input:checked ~ .st-check-item-text {
    color: var(--text-muted);
    text-decoration: line-through;
}

/* ===== Doc list ===== */
.st-docs-list {
    list-style: none;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}
.st-doc-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: all var(--t);
}
.st-doc-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}
.st-doc-item.is-link:hover {
    border-color: rgba(23,141,154,0.4);
}
.st-doc-icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent);
}
.st-doc-icon svg { width: 16px; height: 16px; }
.st-doc-body { flex-grow: 1; min-width: 0; }
.st-doc-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
    line-height: 1.3;
}
.st-doc-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}
.st-doc-link-arrow {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 4px;
}
.st-doc-link-arrow svg { width: 14px; height: 14px; }

/* ===== References list ===== */
.st-refs {
    list-style: none;
    padding: 0; margin: 0;
}
.st-refs li {
    padding: 0.5rem 0 0.5rem 1.4rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    border-bottom: 1px solid var(--border);
}
.st-refs li:last-child { border-bottom: 0; }
.st-refs li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.95rem;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.st-refs li strong { color: var(--text); font-weight: 600; }
.st-refs li a { color: var(--accent); text-decoration: none; }
.st-refs li a:hover { text-decoration: underline; }

/* ===== Disclaimer footer ===== */
.st-final-disclaimer {
    background: rgba(239,68,68,0.06);
    border: 1px solid rgba(239,68,68,0.25);
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
    padding: 0.95rem 1.1rem;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.st-final-disclaimer strong { color: var(--red); }

/* ===== Responsive sub-page ===== */
@media (max-width: 720px) {
    .st-anchor-nav {
        position: relative;
        top: 0;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .st-anchor-nav a { white-space: nowrap; }
    .st-section h2 { font-size: 1.25rem; }
}
