/* Layout 06 — Tabela Responsiva */

/* ── Base ─────────────────────────────────────────────── */
.lp6-body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}

/* ── Wrapper ──────────────────────────────────────────── */
.lp6-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ──────────────────────────────────────────── */
.lp6-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    color: #334155;
    overflow-y: auto;
    z-index: 300;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
    transition: transform 0.3s ease;
}

.lp6-sidebar::-webkit-scrollbar { width: 4px; }
.lp6-sidebar::-webkit-scrollbar-track { background: transparent; }
.lp6-sidebar::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

/* Back link */
.lp6-back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s;
}
.lp6-back-link:hover { color: #64748b; }

/* Brand */
.lp6-brand {
    padding: 24px 20px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.lp6-brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: contain;
    background: #f8fafc;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}

.lp6-brand-initials {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    flex-shrink: 0;
    letter-spacing: -0.03em;
}

.lp6-brand-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}

.lp6-brand-sigla {
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Nav */
.lp6-nav {
    padding: 16px 12px;
    flex: 1;
}

.lp6-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 4px;
    transition: background 0.2s, color 0.2s;
}

.lp6-nav a:hover {
    background: #f8fafc;
    color: #334155;
}

.lp6-nav a.is-active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

.lp6-nav a i {
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.83rem;
}

/* Meta */
.lp6-meta {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lp6-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.45;
}

.lp6-meta-item i {
    width: 14px;
    text-align: center;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 0.76rem;
}

.lp6-meta-item strong { color: #334155; font-weight: 600; }

/* User section */
.lp6-sidebar-user {
    padding: 12px 14px 16px;
    border-top: 1px solid #f1f5f9;
}

.lp6-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.lp6-user-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: #94a3b8;
    flex-shrink: 0;
    overflow: hidden;
}

.lp6-user-av img { width: 100%; height: 100%; object-fit: cover; }

.lp6-user-display {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lp6-user-links { display: flex; flex-direction: column; gap: 2px; }

.lp6-user-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.78rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.lp6-user-links a:hover { background: #f8fafc; color: #1e293b; }
.lp6-user-links a i { width: 13px; text-align: center; font-size: 0.72rem; color: #94a3b8; }

.lp6-btn-entrar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 8px 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.lp6-btn-entrar:hover { background: #dbeafe; }

/* ── Main content ─────────────────────────────────────── */
.lp6-main {
    margin-left: 260px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ── Cover Hero ───────────────────────────────────────── */
.lp6-hero {
    height: 320px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
}

/* overlay só aparece quando não há banner (fundo escuro de fallback) */
.lp6-hero.no-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,41,59,0.7) 0%, rgba(15,23,42,0.85) 100%);
}

/* Banner via componente compartilhado (partial evento-banner.ejs → <picture>,
   responsivo por viewport). Preenche o hero como o background-image fazia. */
.lp6-hero .ev-banner { position: absolute; inset: 0; z-index: 0; }

/* Faixa widescreen calibrada (desktop): banner proporcional, sem o corte
   agressivo da altura fixa. Mobile (≤768px) mantém o banner completo. */
.lp6-hero--banner { height: auto; aspect-ratio: auto; max-height: none; }
.lp6-hero--banner .ev-banner { position: relative; inset: auto; width: 100%; }
/* A imagem do banner aparece por completo (sem zoom/corte): proporção natural. */
.lp6-hero--banner .ev-banner-img { height: auto; object-fit: contain; object-position: center; }

.lp6-hero-sigla-art {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.04;
    pointer-events: none;
}

.lp6-hero-sigla-art span {
    font-size: clamp(5rem, 14vw, 11rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.06em;
}

.lp6-hero-content {
    position: relative;
    z-index: 1;
    padding: 24px 40px 28px;
    width: 100%;
    color: #fff;
}

.lp6-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59,130,246,0.22);
    border: 1px solid rgba(59,130,246,0.4);
    border-radius: 999px;
    padding: 3px 12px;
    color: #93c5fd;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.lp6-hero-title {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.lp6-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}

.lp6-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.72);
}

.lp6-hero-meta-item i {
    font-size: 0.74rem;
    color: #60a5fa;
    width: 12px;
    text-align: center;
    flex-shrink: 0;
}

/* ── Sections ─────────────────────────────────────────── */
.lp6-section {
    padding: 36px 40px;
}

/* Blocos de Informação + Comissão Científica — alinhar/justificar com as seções do layout */
#blocos-informacao, #comissao-cientifica { padding: 0; }
#blocos-informacao .container, #comissao-cientifica .container { max-width: none; width: 100%; margin: 0; padding: 36px 40px; }
@media (max-width: 768px) {
    #blocos-informacao .container, #comissao-cientifica .container { padding: 28px 18px; }
}

.lp6-section-header {
    margin-bottom: 24px;
}

.lp6-section-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2563eb;
    margin-bottom: 5px;
}

.lp6-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.lp6-section-sub {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
}

/* Sobre */
.lp6-sobre-section { background: #fff; border-bottom: 1px solid #e2e8f0; }

.lp6-sobre-text {
    font-size: 0.98rem;
    line-height: 1.78;
    color: #374151;
    max-width: 800px;
}

/* ── Programação — Tabela ─────────────────────────────── */
.lp6-programacao-section { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }

.lp6-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.lp6-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.87rem;
}

/* Table header */
.lp6-table thead th {
    padding: 12px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
    text-align: left;
}

.lp6-table thead th:first-child { padding-left: 20px; border-radius: 12px 0 0 0; }
.lp6-table thead th:last-child  { padding-right: 20px; border-radius: 0 12px 0 0; }

/* Date group header row */
.lp6-date-row td {
    padding: 8px 20px;
    background: #eff6ff;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1d4ed8;
    border-top: 2px solid #dbeafe;
    border-bottom: 1px solid #dbeafe;
    letter-spacing: 0.02em;
}

.lp6-date-row:first-child td { border-top: none; }

/* Activity rows */
.lp6-table tbody tr.lp6-act-row {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.lp6-table tbody tr.lp6-act-row:hover { background: #f8fafc; }

.lp6-table tbody tr.lp6-act-row.is-encerrada {
    filter: grayscale(1);
    opacity: 0.55;
}

/* Cells */
.lp6-table td {
    padding: 14px 16px;
    vertical-align: middle;
    color: #334155;
}

.lp6-table td:first-child { padding-left: 20px; }
.lp6-table td:last-child  { padding-right: 20px; }

/* Horário cell */
.lp6-td-time {
    white-space: nowrap;
    min-width: 80px;
}

.lp6-time-start {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0369a1;
    line-height: 1;
}

.lp6-time-end {
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 3px;
}

/* Tipo cell */
.lp6-td-tipo { min-width: 100px; }

.lp6-tipo-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.69rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Atividade cell */
.lp6-td-atividade { min-width: 200px; }

.lp6-act-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
    line-height: 1.35;
    margin-bottom: 4px;
}

.lp6-act-desc {
    font-size: 0.78rem;
    color: #1e293b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Local cell */
.lp6-td-local {
    min-width: 120px;
    font-size: 0.82rem;
    color: #64748b;
    white-space: nowrap;
}

/* Responsável cell */
.lp6-td-resp { min-width: 140px; }

.lp6-resp-chips { display: flex; flex-wrap: wrap; gap: 4px; }

.lp6-resp-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 2px 8px 2px 3px;
    font-size: 0.72rem;
    color: #475569;
    white-space: nowrap;
}

.lp6-resp-av {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.48rem;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}

img.lp6-resp-av { object-fit: cover; font-size: 0; }

/* Ação cell */
.lp6-td-acao {
    min-width: 120px;
    text-align: right;
}

.lp6-vagas-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 600;
    background: #dcfce7;
    color: #166534;
    margin-bottom: 6px;
}

.lp6-vagas-badge.is-esgotada { background: #fee2e2; color: #991b1b; }

.lp6-table .btn-inscrever-atividade-public {
    font-size: 0.78rem;
    padding: 5px 13px;
    min-height: 28px;
    border-radius: 7px;
    white-space: nowrap;
}

.lp6-table .btn-inscrever-atividade-public.is-inscrito {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.lp6-table .btn-inscrever-atividade-public.is-bloqueado {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

/* Empty state */
.lp6-empty {
    text-align: center;
    padding: 56px 24px;
    color: #94a3b8;
}

.lp6-empty i { font-size: 2.2rem; margin-bottom: 12px; display: block; opacity: 0.5; }
.lp6-empty p { margin: 0; font-size: 0.9rem; }

/* ── Inscrição section ────────────────────────────────── */
.lp6-inscricao-section { background: #fff; border-top: 1px solid #e2e8f0; }

.lp6-inscricao-box {
    background: linear-gradient(135deg, #1e293b 0%, #1e3a5f 100%);
    color: #fff;
    border-radius: 16px;
    padding: 40px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 8px 32px rgba(37,99,235,0.18);
    border: 1px solid rgba(59,130,246,0.16);
    position: relative;
    overflow: hidden;
    max-width: 880px;
}

.lp6-inscricao-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(59,130,246,0.2) 0%, transparent 60%);
    pointer-events: none;
}

.lp6-inscricao-box > * { position: relative; }

.lp6-inscricao-box h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.lp6-inscricao-box p { color: rgba(255,255,255,0.6); margin: 0; font-size: 0.9rem; }

.lp6-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 22px;
    font-size: 0.87rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
    flex-shrink: 0;
}

.lp6-cta:hover { background: #1d4ed8; transform: translateY(-1px); color: #fff; }

/* ── Footer ───────────────────────────────────────────── */
.lp6-footer {
    background: #f1f5f9;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.lp6-footer a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.lp6-footer a:hover { color: #64748b; }

/* ── Login modal field ────────────────────────────────── */
.el-field {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.el-field:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }

/* ── Mobile bottom nav ────────────────────────────────── */
.lp6-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: #1e293b;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 400;
    align-items: stretch;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.22);
}

.lp6-mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    position: relative;
}

.lp6-mobile-nav-item i {
    font-size: 1rem;
    transition: color 0.2s;
}

.lp6-mobile-nav-item:hover,
.lp6-mobile-nav-item.is-active {
    color: #93c5fd;
}

.lp6-mobile-nav-item.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: #3b82f6;
    border-radius: 0 0 3px 3px;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
    .lp6-sidebar { transform: translateX(-260px); }
    .lp6-main {
        margin-left: 0;
        padding-bottom: 58px; /* espaço para o bottom nav */
    }
    .lp6-mobile-nav { display: flex; }

    .lp6-hero { height: 220px; }
    .lp6-hero-content { padding: 18px 18px 22px; }
    .lp6-hero-title { font-size: 1.3rem; }

    /* Banner mobile por completo (sem corte): a imagem define a altura do hero
       e o fundo fica branco no lugar do recorte (object-fit:cover). */
    .lp6-hero--banner { height: auto; aspect-ratio: auto; display: block; background: #fff; }
    .lp6-hero--banner .ev-banner { position: static; }
    .lp6-hero--banner .ev-banner-img { height: auto; }

    .lp6-section { padding: 24px 16px; }
    .lp6-inscricao-box { padding: 26px 20px; }
    .lp6-inscricao-box h2 { font-size: 1.25rem; }

    /* Tabela responsiva: cada linha vira bloco */
    .lp6-table thead { display: none; }

    .lp6-table tbody tr.lp6-date-row {
        display: block;
    }

    .lp6-table tbody tr.lp6-act-row {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    }

    .lp6-table tbody tr.lp6-act-row td {
        display: flex;
        padding: 8px 14px;
        border-bottom: 1px solid #f1f5f9;
        align-items: flex-start;
        gap: 10px;
    }

    .lp6-table tbody tr.lp6-act-row td:last-child { border-bottom: none; }

    .lp6-table tbody tr.lp6-act-row td::before {
        content: attr(data-label);
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #94a3b8;
        min-width: 70px;
        flex-shrink: 0;
        margin-top: 2px;
    }

    .lp6-table tbody tr.lp6-act-row td[data-label=""] { display: none; }

    .lp6-td-acao { justify-content: flex-start; }

    .lp6-table-wrap {
        border: none;
        box-shadow: none;
        border-radius: 0;
        overflow: visible;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .lp6-sidebar { width: 220px; }
    .lp6-main { margin-left: 220px; }
    .lp6-section { padding: 32px 28px; }
}

/* ── Contador de inscrições ──────────────────────────────── */
.lp6-insc-counter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding: 6px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    color: #e2e8f0;
    font-size: 0.82rem;
    font-weight: 600;
}
.lp6-insc-counter-icon { font-size: 0.85rem; opacity: .8; }
.lp6-insc-counter-num  { font-size: 1.05rem; font-weight: 800; color: #fff; }

/* ── Alerta de prazo de inscrição ── */
.lp6-inscricao-alert {
    font-size: .82rem; font-weight: 600; color: #fde68a;
    min-height: 1.2em; margin-bottom: 8px;
}

/* ── Submissões com o design do layout-06 ─────────────────────────
   Sobrepõe o estilo autocontido (evsub-*) com as cores/fontes do 06: título
   como section-title, cards brancos, header azul-claro, botão e links em
   #2563eb. O prefixo #submissoes vence o <style> inline do partial. */
#submissoes .evsub-wrap { max-width: none; padding: 36px 40px; }
#submissoes .evsub-title { font-size: 1.5rem; font-weight: 800; color: #0f172a; }
#submissoes .evsub-title i { color: #2563eb; }
#submissoes .evsub-card {
    border: 1px solid #e2e8f0; border-radius: 14px;
    box-shadow: 0 4px 18px rgba(37,99,235,0.06);
}
#submissoes .evsub-head {
    background: #eff6ff; color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}
#submissoes .evsub-card-title { color: #0f172a; }
#submissoes .evsub-btn { background: #2563eb; border-radius: 9px; }
#submissoes .evsub-btn:hover { background: #1d4ed8; }
#submissoes .evsub-btn--off,
#submissoes .evsub-btn:disabled { background: #e2e8f0; color: #94a3b8; }
#submissoes .evsub-tpls a { color: #2563eb; }
@media (max-width: 768px) {
    #submissoes .evsub-wrap { padding: 24px 16px; }
}
