/* Tema de guiaservicosbr: guia do consumidor em formato de editoria de jornal.
   Página branca, texto quase preto, um azul só. Títulos e corpo do texto em serifa,
   interface em sans do sistema. Classes e blocos: ver pages.js. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.5; color: #1a1a1a; background: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: #0f4c8a; }
a:hover { color: #0a3361; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #0f4c8a; outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
time { white-space: nowrap; }

/* Largura comum */
.site-header-inner, .site-nav-list, .site-body, .site-footer-inner { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }

/* Cabeçalho */
.site-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 14px; padding-bottom: 12px; }
.site-brand { min-width: 0; }
.site-name { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: #1a1a1a; text-decoration: none; }
.site-name:hover { color: #1a1a1a; }
.site-mark { display: inline-block; width: 1.1em; height: 1.1em; margin-right: 0.32em; vertical-align: -0.18em; }
.site-tagline { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; font-size: 13px; font-weight: 400; line-height: 1.3; color: #5c5c5c; }
.site-search, .search-form { display: flex; }
.site-search { flex: 1 1 100%; }
.site-search-input, .search-form-input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; font: inherit; font-size: 15px; color: #1a1a1a; background: #fff; border: 1px solid #767676; border-right: 0; border-radius: 2px 0 0 2px; -webkit-appearance: none; appearance: none; }
.site-search-button, .search-form-button { height: 34px; padding: 0 14px; font: inherit; font-size: 14px; font-weight: 600; color: #1a1a1a; background: #fff; border: 1px solid #767676; border-radius: 0 2px 2px 0; cursor: pointer; }
.site-search-button:hover, .search-form-button:hover { background: #f2f2f2; }
.site-nav { border-top: 1px solid #dcdcdc; border-bottom: 1px solid #1a1a1a; }
.site-nav-list { display: flex; flex-wrap: wrap; gap: 0 10px; margin-top: 0; margin-bottom: 0; list-style: none; white-space: nowrap; }
.site-nav-item:last-child { display: none; }
.site-nav-item a { display: block; padding: 9px 0 7px; font-size: 13px; font-weight: 600; color: #1a1a1a; text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav-item a:hover { color: #0f4c8a; }
.site-nav-item.is-current a { color: #0f4c8a; border-bottom-color: #0f4c8a; }

/* Corpo: uma coluna; duas quando há coluna lateral e espaço */
.site-body { flex: 1 0 auto; width: 100%; display: grid; align-content: start; gap: 40px; padding-top: 24px; padding-bottom: 48px; }
.site-main { min-width: 0; }

/* Chamada de post */
.entry { display: grid; align-content: start; gap: 12px 14px; padding: 16px 0; border-top: 1px solid #dcdcdc; }
.entry.has-thumb { grid-template-columns: 112px minmax(0, 1fr); align-items: start; }
.entry-list > .entry:first-child { border-top: 0; }
.entry-thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #ececec; }
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; }
.entry-category { display: inline-block; margin-bottom: 3px; font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: 0.04em; text-transform: uppercase; color: #0f4c8a; text-decoration: none; }
.entry-category:hover { text-decoration: underline; }
.entry-title { font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 700; line-height: 1.25; }
.entry-title a { color: #1a1a1a; text-decoration: none; }
.entry-title a:hover { color: #0f4c8a; text-decoration: underline; }
.entry-excerpt { display: none; margin: 6px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.45; color: #333; }
.entry-meta { margin-top: 6px; font-size: 13px; line-height: 1.3; color: #5c5c5c; }

/* Página inicial */
.section-title { margin-bottom: 0; padding-top: 10px; font-size: 18px; font-weight: 700; border-top: 2px solid #1a1a1a; }
.home-featured, .home-latest { margin-bottom: 32px; }
.home-featured-lead .entry { grid-template-columns: minmax(0, 1fr); padding: 0 0 20px; border-top: 0; }
.home-featured-lead .entry-title { font-size: 27px; line-height: 1.15; }
.home-featured-lead .entry-excerpt { display: block; font-size: 16px; }
.home-featured-secondary { border-top: 1px solid #dcdcdc; }
.home-featured-secondary .entry:first-child { border-top: 0; }

/* Paginação, trilha, cabeçalho de página */
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 0; font-size: 15px; border-top: 1px solid #dcdcdc; border-bottom: 1px solid #dcdcdc; }
.pagination a { font-weight: 600; text-decoration: none; }
.pagination a:hover { text-decoration: underline; }
.pagination-prev { grid-column: 1; }
.pagination-status { grid-column: 2; color: #5c5c5c; }
.pagination-next { grid-column: 3; text-align: right; }
.breadcrumb-list { display: flex; flex-wrap: wrap; margin: 0 0 12px; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; color: #5c5c5c; }
.breadcrumb-item + .breadcrumb-item::before { content: "›"; margin: 0 8px; color: #8c8c8c; }
.breadcrumb-item a { text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.page-header { margin-bottom: 8px; padding-bottom: 16px; border-bottom: 2px solid #1a1a1a; }
.page-title { font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 700; }
.page-description { max-width: 680px; margin: 8px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; color: #333; }
.search-form { max-width: 520px; margin-top: 14px; }
.search-status { margin: 14px 0 0; font-size: 15px; color: #5c5c5c; }
.empty-state { padding: 24px 0; color: #5c5c5c; }
.page-search .entry-list, .page-search .page-header { max-width: 804px; }

/* Post e página fixa */
.post, .static-page, .post-related { max-width: 720px; }
.static-page .page-header { margin-bottom: 24px; }
.post-header .breadcrumb-item[aria-current] { display: none; }
.post-title { font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -0.005em; }
.post-excerpt { margin: 12px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.5; color: #333; }
.post-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 18px 0 20px; padding: 10px 0; font-size: 13px; line-height: 1.5; color: #5c5c5c; border-top: 1px solid #dcdcdc; border-bottom: 1px solid #dcdcdc; }
.post-author { flex-basis: 100%; font-weight: 700; color: #1a1a1a; }
.post-cover { margin: 0 0 24px; }
.post-cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #ececec; }
.post-cover-caption, .post-content figcaption { margin-top: 8px; padding-bottom: 8px; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 13px; line-height: 1.4; color: #5c5c5c; border-bottom: 1px solid #dcdcdc; }
.post-toc { margin-bottom: 28px; padding: 14px 18px 16px; border: 1px solid #c9c9c9; }
.post-toc-title { margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.post-toc-list { margin: 0; padding-left: 1.3rem; font-size: 15px; line-height: 1.4; }
.post-toc-list li { padding: 3px 0; }
.post-toc-list a { text-decoration: none; }
.post-toc-list a:hover { text-decoration: underline; }

.post-content { font-family: Georgia, "Times New Roman", serif; font-size: 18px; line-height: 1.65; color: #1a1a1a; overflow-wrap: break-word; }
.post-content p { margin: 0 0 1em; }
.post-content a { text-decoration: underline; text-underline-offset: 2px; }
.post-content h2 { margin: 40px 0 10px; font-size: 23px; line-height: 1.2; }
.post-content h3 { margin: 28px 0 6px; font-size: 19px; line-height: 1.25; }
.post-content ul, .post-content ol { margin: 0 0 1em; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.3rem; }
.post-content figure { margin: 1.75rem 0; }
.post-content figure img { width: 100%; }
.post-content blockquote { margin: 1.75rem 0; padding: 2px 0 2px 18px; border-left: 3px solid #1a1a1a; color: #3d3d3d; }
.post-content blockquote p { margin: 0 0 0.75rem; }
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content code { padding: 1px 4px; font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 0.85em; background: #f2f2f2; border-radius: 2px; }
.post-content pre { margin: 1.5rem 0; padding: 14px 16px; overflow-x: auto; font-size: 15px; line-height: 1.5; background: #f2f2f2; border-radius: 2px; }
.post-content pre code { padding: 0; font-size: inherit; background: none; }
.post-content hr { margin: 2.25rem 0; border: 0; border-top: 1px solid #c9c9c9; }
.post-table { margin: 1.75rem 0; overflow-x: auto; }
.post-table table { width: 100%; border-collapse: collapse; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.4; color: #1a1a1a; }
.post-table th, .post-table td { padding: 9px 12px 9px 0; text-align: left; vertical-align: top; border-bottom: 1px solid #dcdcdc; }
.post-table th:nth-child(n+2), .post-table td:nth-child(n+2) { white-space: nowrap; }
.post-table th:last-child, .post-table td:last-child { padding-right: 0; }
.post-table th { font-weight: 700; border-bottom: 2px solid #1a1a1a; }

.post-footer { margin-top: 32px; }
.post-tags { margin: 0; padding: 12px 0; font-size: 13px; color: #5c5c5c; border-top: 1px solid #dcdcdc; }
.post-tags a { color: #1a1a1a; text-decoration: none; }
.post-tags a:hover { text-decoration: underline; }
.post-author-box { padding: 16px 0; font-size: 15px; border-top: 1px solid #1a1a1a; }
.post-author-box-name { margin-bottom: 4px; font-weight: 700; }
.post-author-box-text { margin-bottom: 6px; color: #3d3d3d; }
.post-author-box-link { font-weight: 600; }
.page-post .widget-about { display: none; }
.post-nav { display: grid; gap: 14px 0; padding: 16px 0; border-top: 1px solid #dcdcdc; border-bottom: 1px solid #dcdcdc; }
.post-nav a { display: block; text-decoration: none; }
.post-nav-label { display: block; margin-bottom: 2px; font-size: 13px; color: #5c5c5c; }
.post-nav-title { font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-weight: 700; line-height: 1.25; color: #1a1a1a; }
.post-nav a:hover .post-nav-title { color: #0f4c8a; text-decoration: underline; }
.post-related { margin-top: 36px; }

/* Coluna lateral */
.widget { margin-bottom: 32px; padding-top: 10px; border-top: 2px solid #1a1a1a; }
.widget-title { margin-bottom: 6px; font-size: 16px; font-weight: 700; }
.widget-list { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.35; }
.widget-list li { padding: 9px 0; border-top: 1px solid #dcdcdc; }
.widget-list li:first-child { border-top: 0; }
.widget-list a { color: #1a1a1a; text-decoration: none; }
.widget-list a:hover { color: #0f4c8a; text-decoration: underline; }
.widget-list time { display: block; margin-top: 3px; font-size: 13px; color: #5c5c5c; }
.widget-categories li { display: flex; justify-content: space-between; gap: 12px; }
.widget-categories a { font-weight: 600; }
.widget-count { font-size: 13px; font-weight: 400; color: #5c5c5c; }
.widget-list a:visited { color: #1a1a1a; }
.page-home:has(.home-featured) .widget-recent { display: none; }
.widget-recent a { font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 700; }
.widget-text { margin: 8px 0 8px; font-size: 15px; color: #3d3d3d; }
.widget-more { font-size: 15px; font-weight: 600; }

/* Página não encontrada */
.notfound { max-width: 720px; padding: 24px 0 56px; }
.notfound-title { margin-bottom: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 28px; }
.notfound-text { color: #3d3d3d; }
.notfound-link { font-weight: 600; }

/* Rodapé */
.site-footer { font-size: 14px; border-top: 1px solid #1a1a1a; }
.site-footer-inner { display: grid; gap: 20px; padding-top: 24px; padding-bottom: 20px; }
.site-footer-name { margin-bottom: 6px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 700; }
.site-footer-description { max-width: 440px; margin: 0; color: #3d3d3d; }
.site-footer-title { margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.site-footer-list { margin: 0; padding: 0; list-style: none; }
.site-footer-list li { padding: 3px 0; }
.site-footer-list a { color: #1a1a1a; text-decoration: none; }
.site-footer-list a:hover { color: #0f4c8a; text-decoration: underline; }
.site-footer-copyright { width: calc(100% - 32px); max-width: 1152px; margin: 0 auto; padding: 12px 0 16px; font-size: 13px; color: #5c5c5c; border-top: 1px solid #dcdcdc; }

@media (min-width: 600px) {
  .site-header-inner, .site-nav-list, .site-body, .site-footer-inner { padding-left: 24px; padding-right: 24px; }
  .site-header-inner { flex-wrap: nowrap; padding-top: 12px; padding-bottom: 10px; }
  .site-name { font-size: 30px; }
  .site-tagline { position: static; width: auto; height: auto; margin-top: 3px; clip-path: none; }
  .site-search { flex: 0 0 280px; }
  .site-nav-list { gap: 0 22px; }
  .site-nav-item:last-child { display: block; }
  .site-nav-item a { padding: 10px 0 8px; font-size: 14px; }
  .entry { gap: 12px 20px; padding: 18px 0; }
  .entry.has-thumb { grid-template-columns: 180px minmax(0, 1fr); }
  .entry-title { font-size: 20px; }
  .entry-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  .home-featured-lead .entry.has-thumb { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .home-featured-lead .entry-title { font-size: 36px; }
  .home-featured-lead .entry-excerpt { display: block; margin-top: 12px; font-size: 17px; line-height: 1.5; }
  .home-featured-secondary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; padding-top: 20px; }
  .home-featured-secondary .entry, .home-featured-secondary .entry.has-thumb { display: flex; flex-direction: column; gap: 10px; padding: 0 0 20px; border-top: 0; }
  .home-featured-secondary .entry-body { flex: 1; display: flex; flex-direction: column; }
  .home-featured-secondary .entry-category { align-self: flex-start; }
  .home-featured-secondary .entry-title { font-size: 17px; }
  .home-featured-secondary .entry-excerpt { display: none; }
  .home-featured-secondary .entry-meta { margin-top: auto; padding-top: 6px; }
  .page-title { font-size: 34px; }
  .post-title { font-size: 38px; }
  .post-excerpt { font-size: 20px; }
  .post-author { flex-basis: auto; }
  .post-content { font-size: 19px; }
  .post-content h2 { font-size: 24px; }
  .post-content h3 { font-size: 20px; }
  .post-table table { font-size: 16px; }
  .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-nav-prev { padding-right: 32px; }
  .post-nav-next { grid-column: 2; padding-left: 32px; border-left: 1px solid #dcdcdc; }
  .site-footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 28px; padding-bottom: 20px; }
  .site-footer-copyright { width: calc(100% - 48px); }
}

/* Coluna lateral ao lado: o último bloco visível acompanha a leitura */
@media (min-width: 1000px) {
  .site-body { padding-top: 28px; }
  .has-sidebar .site-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  .site-sidebar { display: flex; flex-direction: column; }
  .widget-recent { order: 1; }
  .widget-recent, .page-home:has(.home-featured) .widget-about { position: sticky; top: 20px; }
}

@media (min-width: 1160px) {
  .home-featured-secondary { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; }
  .home-featured-secondary .entry-title { font-size: 16px; }
}
