/*
Theme Name: Humantech Blog
Theme URI: https://www.humantech.com.br/blog/
Author: Humantech Gestão do Conhecimento
Description: Tema do blog da Humantech em /blog/. Reaproveita o CSS e o JS do site institucional (/css/base.css e /js/site.js).
Version: 0.2.3
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: humantech-blog
*/

/* Ajustes que só existem no blog. O resto vem de /css/base.css. */

.post__corpo > * + * {
  margin-top: 1em;
}

.post__corpo img {
  max-width: 100%;
  height: auto;
}

.post__corpo figure {
  margin: 32px 0;
}

.post__corpo figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--texto-suave);
}

.paginacao {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 13px;
}

.paginacao .current {
  color: var(--acento);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Texto só para leitores de tela, usado pelo WordPress */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.busca-blog {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  max-width: 480px;
}

.busca-blog input[type="search"] {
  flex: 1;
}

/* Tabelas no corpo do post (mesmo desenho da .tabela do site) */
.post__corpo table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.post__corpo th,
.post__corpo td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--linha-forte);
  text-align: left;
  vertical-align: top;
}

.post__corpo th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--texto-suave);
}

@media (max-width: 720px) {
  .post__corpo table {
    display: block;
    overflow-x: auto;
  }

  .post__corpo th,
  .post__corpo td {
    min-width: 9em;
  }
}
