/* ===== Agenda – estilos do bloco ===== */
:root {
    --agenda-bg: #ffffff;
    --agenda-border: #e6e8ec;
    --agenda-shadow: 0 8px 30px rgba(0, 0, 0, .06);
    --agenda-radius: 16px;
    --agenda-pad: 28px;
    --agenda-text: #1f2937;
    --agenda-muted: #6b7280;
    --agenda-primary: #0fc690;
    /* mantém a identidade do site */
    --agenda-code-bg: #0f172a;
    /* slate-950 */
    --agenda-code-text: #e5e7eb;
    /* gray-200 */
    --agenda-code-border: #1f2937;
    /* slate-800 */
}

/* Card da Agenda */
.agenda-card {
    max-width: 980px;
    margin: 28px auto 0;
    background: var(--agenda-bg);
    border: 1px solid var(--agenda-border);
    box-shadow: var(--agenda-shadow);
    border-radius: var(--agenda-radius);
    overflow: hidden;
}

.agenda-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    background: linear-gradient(180deg, #f8fafc, #f3f4f6);
    border-bottom: 1px solid var(--agenda-border);
}

.agenda-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--agenda-primary);
    box-shadow: 0 0 0 4px rgba(15, 198, 144, .12);
}

.agenda-header h3 {
    margin: 0;
    font-size: 18px;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: #111827;
}

/* Conteúdo vindo da API */
.agenda-content {
    padding: var(--agenda-pad);
    color: var(--agenda-text);
    line-height: 1.7;
    font-size: 16px;
    word-wrap: break-word;
}

/* Tipografia base dentro do #agenda */
.agenda-content h1,
.agenda-content h2,
.agenda-content h3 {
    margin-top: 1.2em;
    margin-bottom: .5em;
    line-height: 1.25;
    font-weight: 700;
}

.agenda-content h1 {
    font-size: 28px;
}

.agenda-content h2 {
    font-size: 22px;
}

.agenda-content h3 {
    font-size: 18px;
}

.agenda-content p {
    margin: .8em 0;
    color: var(--agenda-text);
}

.agenda-content small,
.agenda-content .muted {
    color: var(--agenda-muted);
}

.agenda-content ul,
.agenda-content ol {
    padding-left: 1.2rem;
    margin: .75rem 0;
}

.agenda-content li {
    margin: .25rem 0;
}

.agenda-content a {
    color: var(--agenda-primary);
    text-decoration: none;
    border-bottom: 1px dashed rgba(15, 198, 144, .35);
}

.agenda-content a:hover {
    opacity: .85;
    border-bottom-style: solid;
}

.agenda-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 10px auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

.agenda-content hr {
    border: 0;
    border-top: 1px dashed var(--agenda-border);
    margin: 20px 0;
}

.agenda-content blockquote {
    margin: 14px 0;
    padding: 14px 16px;
    background: #f8fafc;
    border-left: 4px solid var(--agenda-primary);
    color: #0f172a;
    border-radius: 8px;
}

/* ===== Estilo especial para BLOCOS DE CÓDIGO ===== */
.agenda-content pre,
.agenda-content code,
.agenda-content kbd,
.agenda-content samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.agenda-content pre {
    background: var(--agenda-code-bg);
    color: var(--agenda-code-text);
    padding: 16px 18px;
    border: 1px solid var(--agenda-code-border);
    border-radius: 12px;
    overflow: auto;
    line-height: 1.6;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
    position: relative;
}

/* Opcional: título sutil do bloco de código */
.agenda-content pre::before {
    content: "código";
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(229, 231, 235, .6);
}

/* Inline code */
.agenda-content :not(pre)>code {
    background: #111827;
    color: #e5e7eb;
    padding: .15em .45em;
    border-radius: 6px;
    border: 1px solid #1f2937;
    font-size: .95em;
}

/* Tabelas que vierem no conteúdo */
.agenda-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 15px;
}

.agenda-content th,
.agenda-content td {
    border: 1px solid var(--agenda-border);
    padding: 10px 12px;
    text-align: left;
}

.agenda-content thead th {
    background: #f3f4f6;
    font-weight: 600;
}

/* Estado de carregamento/falha */
#agenda:empty::after {
    content: "Carregando…";
    color: var(--agenda-muted);
}

.agenda-empty {
    color: var(--agenda-muted);
    text-align: center;
    padding: 22px;
}

/* Responsivo */
@media (max-width: 768px) {
    .agenda-card {
        margin-top: 18px;
        border-radius: 14px;
    }

    .agenda-content {
        padding: 20px;
        font-size: 15.5px;
    }
}

.agenda-content img {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.agenda-content img:hover {
    transform: scale(1.02);
}