
/* Estilos institucionais, sem páginas do WordPress e sem interferir com o Core. */
body.ap-access-page {
    --ap-blue: #315d7d;
    --ap-blue-dark: #19384f;
    --ap-bg: #f5f7f9;
    --ap-line: #dbe3e8;
    --ap-text: #263746;
    --ap-muted: #647482;
    --ap-gold: #b89552;
}
body.ap-access-page:has(.ap-access-brand) .entry-title,
body.ap-access-page:has(.ap-access-brand) .penci-entry-title,
body.ap-access-page:has(.ap-access-brand) .penci-page-title,
body.ap-access-page:has(.ap-access-brand) .post-title {
    display: none !important;
}
.ap-access,
.ap-access *,
.ap-login-warning,
.ap-login-warning * { box-sizing: border-box; }
.ap-access {
    --ap-blue: #315d7d; --ap-blue-dark: #19384f; --ap-bg: #f5f7f9;
    --ap-line: #dbe3e8; --ap-text: #263746; --ap-muted: #647482; --ap-gold: #b89552;
    width: min(100%, 730px);
    margin: 30px auto 70px;
    padding: clamp(25px, 5vw, 42px);
    background: #fff;
    color: var(--ap-text);
    border: 1px solid var(--ap-line);
    border-top: 4px solid var(--ap-blue);
    border-radius: 15px;
    box-shadow: 0 12px 32px rgba(30, 58, 77, .055);
    font-family: inherit;
}
.ap-access:before {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: var(--ap-gold);
    margin-bottom: 22px;
}
.ap-access-brand { color: var(--ap-blue-dark); font-weight: 760; letter-spacing: .055em; text-transform: uppercase; font-size: 14px; margin: 0 0 14px; }
.ap-access-brand .custom-logo-link { display: inline-block; }
.ap-access-brand img { display: block; max-width: 180px; max-height: 62px; width: auto; height: auto; }
.ap-access h1 { font-size: clamp(24px, 3vw, 35px); line-height: 1.15; letter-spacing: -.025em; color: var(--ap-blue-dark); margin: 0 0 12px; }
.ap-access p { font-size: 15px; line-height: 1.6; }
.ap-access-intro { color: var(--ap-muted); max-width: 600px; margin: 0 0 24px; }
.ap-access-card { border: 1px solid var(--ap-line); border-radius: 12px; padding: clamp(19px, 3vw, 26px); background: #fafcfd; }
.ap-access-card label { display: block; color: var(--ap-blue-dark); font-weight: 720; font-size: 15px; margin-bottom: 8px; }
.ap-access-card input[type=email] {
    display: block !important; width: 100% !important; max-width: 100%;
    height: 48px !important; min-height: 48px !important; padding: 10px 13px !important;
    font: inherit; font-size: 16px !important; color: var(--ap-text);
    background: #fff !important; border: 1px solid #bdc9d1 !important; border-radius: 9px !important;
}
.ap-access-card input:focus { outline: 2px solid var(--ap-blue); outline-offset: 1px; }
.ap-access-card button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; border: 1px solid var(--ap-blue) !important; border-radius: 9px;
    background: var(--ap-blue) !important; color: #fff !important; -webkit-text-fill-color: #fff !important;
    padding: 10px 17px; margin-top: 18px; font: inherit; font-weight: 700;
    cursor: pointer; box-shadow: none;
}
.ap-access-card button:hover, .ap-access-card button:focus { background: var(--ap-blue-dark) !important; border-color: var(--ap-blue-dark) !important; }
.ap-access-small { color: var(--ap-muted); font-size: 13px !important; margin: 12px 0 0; }
.ap-access-hp { position: absolute !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; left: -10000px; }
.ap-access-message { background: #edf4f8; border-left: 4px solid var(--ap-blue); padding: 14px 18px; margin: 0 0 19px; border-radius: 7px; }
.ap-access-message p { margin: 6px 0 0; }
.ap-access-error { background: #fff5ec; border-left-color: #a56c29; }
.ap-access-links { display: flex; flex-wrap: wrap; gap: 10px 28px; border-top: 1px solid var(--ap-line); margin-top: 24px; padding-top: 17px; }
.ap-access-links a, .ap-login-warning a { color: var(--ap-blue-dark) !important; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.ap-login-warning { max-width: 780px; margin: 0 auto 16px; padding: 16px 19px; border-left: 4px solid #b18a42; border-radius: 8px; background: #fff9ee; color: #534121; }
.ap-login-warning strong { display: block; font-size: 15px; }
.ap-login-warning p { margin: 7px 0 10px; line-height: 1.55; font-size: 14px; }
@media (max-width: 620px) { .ap-access { margin: 14px auto 40px; padding: 22px 18px; } .ap-access-links { flex-direction: column; gap: 12px; } .ap-access-card button { width: 100%; } }

/* Versão 1.0.2: formulários de autenticação não são páginas editoriais.
   Somente widgets de compartilhamento de posts/páginas; não ocultar
   links institucionais do footer nem botões sociais de OAuth. */
body.ap-access-context .penci-social-share,
body.ap-access-context .penci-post-share,
body.ap-access-context .penci-share-box,
body.ap-access-context .penci-social-buttons,
body.ap-access-context .penci-entry-share,
body.ap-access-context .penci-share-buttons,
body.ap-access-context .penci-post-social,
body.ap-access-context .penci-post-share-box,
body.ap-access-context .penci-social-share-footer,
body.ap-access-context .penci-social-buttons-footer,
body.ap-access-context .penci-post-share-footer,
body.ap-access-context .penci-post-sharing,
body.ap-access-context .penci-post-sharing-wrap,
body.ap-access-context .penci-social-sharing,
body.ap-access-context .penci-single-share,
body.ap-access-context .post-share,
body.ap-access-context .post-social,
body.ap-access-context .social-share,
body.ap-access-context .post-sharing,
body.ap-access-context .entry-share,
body.ap-access-context .share-box,
body.ap-access-context .share-post,
body.ap-access-context .sharedaddy { display: none !important; }
.ap-access-links-single { border-top: 0; padding-top: 2px; margin-top: 18px; }
/* v1.0.6 — padronização tipográfica restrita ao formulário de desbloqueio.
   O Soledad pode sobrepor aparência de botões e links: especificidade local + text-fill. */
.ap-access {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: normal;
}
.ap-access h1,
.ap-access p,
.ap-access label,
.ap-access strong,
.ap-access .ap-access-brand,
.ap-access input[type="email"],
.ap-access button,
.ap-access .ap-access-links a {
    font-family: inherit !important;
    letter-spacing: normal;
    text-transform: none;
}
.ap-access .ap-access-brand { font-size: 14px; line-height: 1.4; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.ap-access h1 { font-size: clamp(25px, 3vw, 32px); line-height: 1.24; font-weight: 730; }
.ap-access p, .ap-access-message p, .ap-access-intro { font-size: 16px !important; line-height: 1.65 !important; font-weight: 400; }
.ap-access strong, .ap-access label { font-size: 15px !important; line-height: 1.5; font-weight: 700; }
.ap-access .ap-access-small { font-size: 13px !important; line-height: 1.55 !important; }
.ap-access-card input[type="email"] { font-size: 16px !important; line-height: 1.4 !important; font-weight: 400 !important; }
.ap-access-card button { font-size: 15px !important; line-height: 1.35 !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: normal !important; }
/* Link-botão da confirmação: normalizar estados para impedir texto escuro do tema. */
.ap-access .ap-access-links a.ap-access-link-primary,
.ap-access .ap-access-links a.ap-access-link-primary:link,
.ap-access .ap-access-links a.ap-access-link-primary:visited,
.ap-access .ap-access-links a.ap-access-link-primary:hover,
.ap-access .ap-access-links a.ap-access-link-primary:focus,
.ap-access .ap-access-links a.ap-access-link-primary:active {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 19px !important;
    border: 1px solid #315d7d !important;
    border-radius: 9px !important;
    background: #315d7d !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
    opacity: 1 !important;
    text-decoration: none !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
.ap-access .ap-access-links a.ap-access-link-primary:hover,
.ap-access .ap-access-links a.ap-access-link-primary:focus {
    background: #19384f !important;
    border-color: #19384f !important;
}
.ap-access .ap-access-links a.ap-access-link-primary:focus-visible,
.ap-access .ap-access-links a.ap-access-link-secondary:focus-visible {
    outline: 3px solid #b89552 !important;
    outline-offset: 3px;
}
/* Link secundário aparece SOMENTE na confirmação de recebimento. */
.ap-access .ap-access-links a.ap-access-link-secondary,
.ap-access .ap-access-links a.ap-access-link-secondary:link,
.ap-access .ap-access-links a.ap-access-link-secondary:visited {
    display: inline-flex !important;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    color: #19384f !important;
    -webkit-text-fill-color: #19384f !important;
    background: transparent !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
    text-transform: none !important;
}
.ap-access .ap-access-links a.ap-access-link-secondary:hover,
.ap-access .ap-access-links a.ap-access-link-secondary:focus {
    color: #315d7d !important;
    -webkit-text-fill-color: #315d7d !important;
}
@media (max-width: 620px) {
    .ap-access .ap-access-links a.ap-access-link-primary { width: 100%; }
    .ap-access h1 { font-size: 26px; }
}
