/*
 * Layout, artigos, secções e páginas — o que a Revista de Vinhos tem em
 * ajustes-rv.css e _section.scss e a blue Travel ainda não tinha (trazido a
 * 25/9/2026). Cores da blue Travel: var(--primary-color / --accent-color, #00B1EB).
 */

/* Saltar para o conteúdo (layouts/app.blade.php)
 *
 * Quem navega por teclado tinha de passar o menu todo em cada página só para
 * chegar ao artigo. Primeiro elemento focável da página, escondido fora do
 * ecrã até receber foco por Tab; nessa altura aparece no canto superior
 * esquerdo, acima do cabeçalho (que usa z-index:2000).
 */
.rv-skip-link {
    position: absolute;
    top: -999px;
    left: 0;
    z-index: 999999;
    padding: 14px 22px;
    background: #14110c;
    color: #fff !important;
    font-family: var(--secondary-font, sans-serif);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    border: 2px solid var(--accent-color, #00B1EB);
    border-radius: 0 0 4px 0;
    /* O tema tem `a{transition:all .3s ease-in}` global, que ia animar o
       "top" e atrasar o aparecimento ao receber foco. */
    transition: none !important;
}

.rv-skip-link:focus {
    top: 0;
    left: 0;
}

/* Enquanto o ScrollReveal não pega, os elementos que ele anima ficam
 * escondidos — sem tinta, mas com o espaço reservado, para nada saltar. A
 * classe é posta na cabeça do documento (layouts/app.blade.php) e cai sozinha
 * se o script falhar. Na RV esta regra está em _styleguide.scss. */
.sr-espera .title_animation {
    visibility: hidden;
}

/* Menu hambúrguer por teclado (sections/header.blade.php): o <li> ganhou
 * tabindex/role; aqui só se garante que o anel de foco também aparece nele. */
li.menu-icon:focus-visible {
    outline: 2px solid #14110c !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 4px var(--accent-color, #00B1EB) !important;
    border-radius: 2px;
}

/* Títulos que existem para o Google e para os leitores de ecrã, mas não se
 * vêem (ex.: o h1 dos Contactos quando o banner não tem título) */
.rv-so-leitores {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* O link para o arquivo de uma secção, por baixo do "Ver mais"
 * (template-area e template-area-child) */
body .rv-arquivo-ligacao {
    margin: 18px 0 48px;
    font-family: var(--secondary-font, inherit);
    text-align: center;
    font-size: 14px;
}
body .rv-arquivo-ligacao a {
    color: var(--primary-color, #00B1EB);
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* Página do autor (/autor/<nome>, taxonomy-autor.blade.php). O cabeçalho
 * reaproveita o das subcategorias; aqui só se junta a foto ao lado do nome. */
.autor-cabecalho {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: left;
}
.autor-foto {
    width: 112px;
    height: 112px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
}
.autor-identidade h1 {
    margin: 6px 0 4px;
}
.autor-contagem {
    margin: 0;
    opacity: .7;
}
.autor-bio {
    margin: 0 auto 32px;
    font-size: 1.05rem;
    line-height: 1.6;
}
.autor-paginas ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}
.autor-paginas a,
.autor-paginas span {
    display: inline-block;
    min-width: 40px;
    padding: 8px 12px;
    border: 1px solid currentColor;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
}
.autor-paginas .current {
    background: var(--primary-color, #00B1EB);
    border-color: var(--primary-color, #00B1EB);
    color: #fff;
}
@media (max-width: 575px) {
    .autor-cabecalho {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        text-align: center;
    }
    .autor-foto {
        width: 88px;
        height: 88px;
    }
}

/* Artigo com um só bloco de texto a toda a largura (components/flexible-content,
 * classe unique-block): o texto ocupa a coluna toda e alinha à esquerda */
.news-text-with-logo.unique-block .text-with-logo {
    max-width: unset;
}
.news-text-with-logo.unique-block .text-with-logo img {
    max-width: 100%;
}
.news-text-with-logo.unique-block .text-with-logo p {
    text-align: left;
    margin-bottom: 1rem;
}
.news-text-with-logo.unique-block .text-with-logo p:has(img) {
    text-align: center;
}
.news-text-with-logo.unique-block .text-with-logo ul li {
    text-align: left;
    margin-bottom: 1rem;
    color: var(--dark);
}
.news-text-with-logo.unique-block .text-with-logo ul li:has(img) {
    text-align: center;
}
