/* ==========================================================================
   Amapa Digital PREMIUM - Paginas especiais
   Simbolos/Dados/Mapas | Artigos | Articulistas
   ========================================================================== */

/* Botoes pequenos no topo (Artigos, Articulistas, Simbolos/Dados) */
.p-nav-menu .p-nav-cta { margin-left: 0; }
.p-nav-menu li.p-nav-cta--start { margin-left: auto; }
.p-nav-cta--sm a {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-2) !important;
    font-family: var(--sans); font-weight: 700; font-size: .68rem;
    text-transform: uppercase; letter-spacing: .07em;
    padding: 6px 12px; border-radius: 999px;
}
.p-nav-cta--sm a:hover { color: var(--gold) !important; border-color: var(--gold); background: var(--surface-3); }

/* Sub-navegacao por acores (jump links) */
.p-jump { position: sticky; top: 0; z-index: 44; background: rgba(11, 15, 20, .93); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-soft); padding: 10px 0; }
.p-jump-list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 0; padding: 0; list-style: none; }
.p-jump-list a { font-family: var(--sans); font-weight: 700; font-size: .74rem; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 14px; text-decoration: none; letter-spacing: .03em; white-space: nowrap; }
.p-jump-list a:hover { color: var(--gold); border-color: var(--gold); }
html[data-theme="light"] .p-jump { background: rgba(244, 246, 250, .94); }

/* Fatos rapidos */
.p-facts-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.p-fact { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); padding: 18px 16px; }
.p-fact b { display: block; font-family: var(--sans); font-size: 1.45rem; letter-spacing: -.02em; color: var(--gold); line-height: 1.2; }
.p-fact span { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.p-fact small { display: block; color: var(--muted); font-size: .7rem; margin-top: 4px; }

/* Secoes da pagina de dados */
.p-sd-sect { padding: 36px 0 8px; scroll-margin-top: 64px; }
.p-sd-sect h2 { font-family: var(--sans); font-size: 1.55rem; margin: 0 0 16px; display: flex; align-items: center; gap: 11px; }
.p-sd-sect h2 .p-sd-num { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #b8121f); color: #fff; font-size: .95rem; padding: 0 9px; }
.p-sd-sect h3 { font-family: var(--sans); margin: 22px 0 10px; font-size: 1.12rem; }

/* Simbolos */
.p-sym-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.p-sym-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.p-sym-media { background: var(--bg-2); min-height: 220px; display: flex; align-items: center; justify-content: center; padding: 18px; }
.p-sym-media img { max-width: 100%; max-height: 300px; border-radius: 8px; display: block; margin: 0 auto; }
.p-sym-body { padding: 20px; }
.p-sym-body h3 { font-family: var(--sans); font-size: 1.25rem; margin: 0 0 8px; }
.p-sym-body p { color: var(--muted); font-size: .92rem; line-height: 1.65; margin: 0; }

/* Hino */
.p-hino-wrap { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 24px 26px; }

/* Pill generico (links e paginacao) */
.p-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 10px; font-weight: 700; font-size: .9rem; color: var(--text-2); padding: 0 14px; text-decoration: none; }
.p-pill:hover { background: var(--accent); color: #fff; }
.p-hino { column-count: 2; column-gap: 44px; margin: 0; }
.p-hino p { break-inside: avoid; margin: 0 0 14px; line-height: 1.75; }
.p-hino small { display: block; color: var(--muted); margin-bottom: 12px; }
.p-hino h4 { font-family: var(--sans); margin: 0 0 4px; }

/* Linha do tempo */
.p-timeline { position: relative; margin: 18px 0 8px; padding-left: 24px; }
.p-timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--gold)); }
.p-tl-item { position: relative; margin-bottom: 18px; }
.p-tl-item::before { content: ""; position: absolute; left: -23px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bg); }
.p-tl-item b { display: block; font-family: var(--sans); color: var(--gold); letter-spacing: .04em; font-size: .94rem; }
.p-tl-item p { margin: 3px 0 0; color: var(--text-2); font-size: .94rem; }

/* Tabelas de dados */
.p-dtable-wrap { overflow-x: auto; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--surface); margin: 14px 0; }
.p-dtable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.p-dtable th, .p-dtable td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
.p-dtable thead th { background: var(--surface-2); font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: var(--text-2); }
.p-dtable tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.p-dtable tbody tr:hover { background: var(--accent-soft); }
.p-dtable td.num, .p-dtable th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Cores da bandeira */
.p-color-dots { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.p-color-dots li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: .92rem; line-height: 1.55; }
.p-dot { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }

/* Mapas */
.p-map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.p-map-frame { border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.p-map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }
.p-map-frame figcaption { padding: 10px 14px; font-size: .8rem; color: var(--muted); }
.p-map-frame figcaption a { color: var(--gold); }

/* Cards de articulistas */
.p-col-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.p-col-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 22px 18px; text-align: center; transition: transform .2s, border-color .2s; }
.p-col-card:hover { transform: translateY(-3px); border-color: var(--border); }
.p-col-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; border: 2px solid var(--border); margin-bottom: 12px; display: inline-block; }
.p-col-card img.p-no-photo { opacity: .35; }
.p-col-card h3 { font-family: var(--sans); font-size: 1.03rem; margin: 0 0 4px; }
.p-col-card .p-col-bio { color: var(--muted); font-size: .8rem; display: block; margin-bottom: 10px; }
.p-col-card .p-col-link { font-family: var(--sans); font-weight: 700; font-size: .78rem; color: var(--gold); text-decoration: none; }
.p-col-card .p-col-link:hover { text-decoration: underline; }

/* Perfil articulista */
.p-col-profile { display: flex; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px; margin: 30px 0 10px; }
.p-col-profile img { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; border: 3px solid var(--border); }
.p-col-profile h2 { font-family: var(--sans); font-size: 1.7rem; margin: 0 0 6px; }
.p-col-profile p { color: var(--muted); margin: 0; line-height: 1.65; }
.p-col-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.p-col-social a { font-family: var(--sans); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; border: 1px solid var(--border); color: var(--text-2); border-radius: 999px; padding: 4px 11px; text-decoration: none; }
.p-col-social a:hover { color: var(--gold); border-color: var(--gold); }

/* Artigo (view) */
.p-article-view { max-width: 840px; margin: 30px auto; }
.p-article-view h1 { font-family: var(--sans); font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; margin: 0 0 18px; }
.p-article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: .84rem; margin-bottom: 20px; }
.p-article-view img.p-article-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border-soft); margin-bottom: 22px; }
.p-article-body { font-size: 1.04rem; line-height: 1.85; color: var(--text); }
.p-article-body p { margin: 0 0 18px; }
.p-article-body h2, .p-article-body h3 { font-family: var(--sans); margin: 26px 0 12px; }
.p-article-body img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* Notas e fontes */
.p-note { background: var(--surface-2); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 14px 18px; color: var(--text-2); font-size: .9rem; line-height: 1.6; margin: 22px 0; }
.p-sources { color: var(--muted); font-size: .78rem; line-height: 1.7; border-top: 1px solid var(--border-soft); margin-top: 34px; padding-top: 16px; }
.p-sources a { color: var(--gold); }

/* Responsivo */
@media (max-width: 1080px) {
    .p-facts-grid { grid-template-columns: repeat(3, 1fr); }
    .p-sym-grid { grid-template-columns: 1fr; }
    .p-col-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
    .p-map-grid { grid-template-columns: 1fr; }
    .p-col-grid { grid-template-columns: repeat(2, 1fr); }
    .p-facts-grid { grid-template-columns: repeat(2, 1fr); }
    .p-col-profile { flex-direction: column; text-align: center; }
    .p-hino { column-count: 1; }
}
@media (max-width: 480px) {
    .p-col-grid { grid-template-columns: 1fr; }
    .p-facts-grid { grid-template-columns: 1fr; }
}