/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a{
  text-decoration-thickness: 1px !important;
  text-underline-offset: .1em;
}

/* =========================================================
   Variáveis globais
   ========================================================= */

:root{
  --color-title: #24437c;
  --color-meta:  #4D5C63;
  --bd-logo-blue:#355565;
}

/* =========================================================
   PAGES (body.page)
   ========================================================= */

/* Título da página (quando existe) */
body.page .wp-block-post-title,
body.page .bd-page__title{
  color: var(--color-title);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1.2rem 0;
  font-weight: 600;
}

/* Conteúdo base (Pages + Archives) */
body.page .wp-block-post-content,
body.page .bd-page__content,
body.page .bd-archive__content,
body.page .entry-content{
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--bd-logo-blue);
}

/* Parágrafos */
body.page .wp-block-post-content p,
body.page .bd-page__content p,
body.page .bd-archive__content p,
body.page .entry-content p{
  margin: 0 0 1.1rem 0;
}

/* Links */
body.page .wp-block-post-content a,
body.page .bd-page__content a,
body.page .bd-archive__content a,
body.page .entry-content a{
  color: var(--color-title);
  text-decoration: underline;
}
body.page .wp-block-post-content a:hover,
body.page .bd-page__content a:hover,
body.page .bd-archive__content a:hover,
body.page .entry-content a:hover{
  text-decoration: none;
}

/* =========================================================
   LISTAS
   ========================================================= */

/* Editorial (Pages normais) */
body.page .wp-block-post-content ul,
body.page .wp-block-post-content ol,
body.page .bd-page__content ul,
body.page .bd-page__content ol,
body.page .entry-content ul,
body.page .entry-content ol{
  margin: 0 0 1.2rem 1.25rem;
}

body.page .wp-block-post-content li,
body.page .bd-page__content li,
body.page .entry-content li{
  margin-bottom: .4rem;
}

/* ✅ FIX: Listagens (Publications / Conferences) — SEM indentação */
body.page .bd-archive__content ul,
body.page .bd-archive__content ol{
  margin: 0 0 1.2rem 0;
  padding-left: 0;
}

/* =========================================================
   HEADINGS — Pages + Archives
   ========================================================= */

body.page .wp-block-post-content h2,
body.page .wp-block-post-content h2.wp-block-heading,
body.page .bd-page__content h2,
body.page .bd-page__content h2.wp-block-heading,
body.page .bd-archive__content h2,
body.page .bd-archive__content h2.wp-block-heading,
body.page .entry-content h2,
body.page .entry-content h2.wp-block-heading{
  color: var(--color-title);
  font-weight: 600;
  line-height: 1.28;
  font-size: clamp(1.2rem, 1.05rem + 0.45vw, 1.45rem);
  margin: 2rem 0 .75rem;
}

body.page .wp-block-post-content h3,
body.page .wp-block-post-content h3.wp-block-heading,
body.page .bd-page__content h3,
body.page .bd-page__content h3.wp-block-heading,
body.page .bd-archive__content h3,
body.page .bd-archive__content h3.wp-block-heading,
body.page .entry-content h3,
body.page .entry-content h3.wp-block-heading{
  color: var(--color-title);
  font-weight: 600;
  line-height: 1.28;
  font-size: 1.15rem;
  margin: 1.75rem 0 .65rem;
}

/* Links dentro dos headings */
body.page h2 a,
body.page h3 a{
  color: inherit;
  text-decoration: none;
}
body.page h2 a:hover,
body.page h3 a:hover{
  text-decoration: underline;
}

/* =========================================================
   SINGLES (posts + CPTs)
   ========================================================= */

body.single .wp-block-post-title{
  color: var(--color-title);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 1.2rem 0;
  font-weight: 600;
}

body.single .wp-block-post-content,
body.single .entry-content{
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--bd-logo-blue);
}

body.single .wp-block-post-content p,
body.single .entry-content p{
  margin: 0 0 1.1rem 0;
}

body.single .wp-block-post-content a,
body.single .entry-content a{
  color: var(--color-title);
  text-decoration: underline;
}
body.single .wp-block-post-content a:hover,
body.single .entry-content a:hover{
  text-decoration: none;
}

/* =========================================================
   Layout spacing
   ========================================================= */
/*
.bd-page__inner{
  padding: 2.5rem 1rem;
}
  */

/* =========================================================
   SINGLE PUBLICATION and CONFERENCE
   H1 semântico com aparência de H2 editorial
   ========================================================= */

body.single-publication .wp-block-post-title,
body.single-conference .wp-block-post-title{
  color: var(--color-title);
  font-weight: 600;
  line-height: 1.28;
  font-size: clamp(1.2rem, 1.05rem + 0.45vw, 1.45rem);
  margin: 2rem 0 .75rem;
}


/* =========================================================
   REMOVE OUTLINE EM TODA A PAGINS
   
   ========================================================= */

/* Remove focus ring do logo quando clicado com rato */
header.wp-block-template-part a:focus{
  outline: none;
}

/* Mantém foco visível apenas para teclado */
header.wp-block-template-part a:focus-visible{
  outline: 2px solid var(--wp--preset--color--accent-1);
  outline-offset: 4px;
}
