/*
Theme Name: Blog do Pedro Jorge
Author: JOERI
Description: Tema WordPress desenvolvido exclusivamente para o Blog do Pedro Jorge por Eudes Ribeiro / JOERI
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: blog-do-pedro-jorge
*/

:root {
  --bpj-navy: #0a2859;
  --bpj-blue: #1552a2;
  --bpj-blue-2: #1e67bd;
  --bpj-gold: #d4a83f;
  --bpj-gold-soft: #f0d98a;
  --bpj-bg: #f4f6f9;
  --bpj-surface: #ffffff;
  --bpj-text: #172033;
  --bpj-muted: #687286;
  --bpj-border: #e4e8ef;
  --bpj-shadow: 0 12px 35px rgba(10, 40, 89, .08);
  --bpj-radius: 18px;
  --bpj-container: 1240px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body { width: 100%; max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  color: var(--bpj-text);
  background: var(--bpj-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-nav { top: 46px; } }

img { max-width: 100%; height: auto; }
a { color: var(--bpj-blue); text-decoration: none; }
a:hover, a:focus { color: var(--bpj-navy); }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  top: 8px; left: 8px;
  z-index: 99999;
  width: auto; height: auto;
  padding: 10px 14px;
  clip: auto;
  background: #fff;
  color: #111;
  border-radius: 8px;
  box-shadow: var(--bpj-shadow);
}

.site-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 30%, rgba(212,168,63,.17), transparent 28%),
    radial-gradient(circle at 18% 12%, rgba(30,103,189,.26), transparent 25%),
    linear-gradient(135deg, #071b3d 0%, var(--bpj-navy) 52%, #0f3c78 100%);
  border-bottom: 3px solid var(--bpj-gold);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--bpj-container);
  margin: 0 auto;
  min-height: 238px;
  padding: 14px 24px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.branding { width: 100%; }
.custom-logo-link, .default-logo-link { display: inline-block; line-height: 0; }
.custom-logo, .default-logo {
  display: block;
  width: min(800px, 92vw);
  max-height: 210px;
  object-fit: contain;
}
.site-title-text {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}
.site-description {
  margin: 8px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 15px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(7, 27, 61, .97);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(7,27,61,.12);
}
.nav-inner {
  max-width: var(--bpj-container);
  margin: 0 auto;
  min-height: 58px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.primary-menu,
.primary-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
}
.primary-menu li { position: relative; }
.primary-menu > li > a {
  display: block;
  padding: 18px 13px;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: .2s ease;
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
  color: #fff;
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 -3px 0 var(--bpj-gold);
}
.primary-menu .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  display: none;
  background: #fff;
  border: 1px solid var(--bpj-border);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--bpj-shadow);
  overflow: hidden;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { display: block; }
.primary-menu .sub-menu a {
  display: block;
  padding: 11px 14px;
  color: var(--bpj-text);
  border-bottom: 1px solid var(--bpj-border);
}
.primary-menu .sub-menu a:hover { background: #f7f9fc; color: var(--bpj-blue); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.header-social { display: flex; gap: 7px; }
.social-link, .share-link {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.10);
  transition: transform .18s ease, background .18s ease;
}
.social-link:hover, .share-link:hover { color: #fff; transform: translateY(-2px); background: var(--bpj-blue-2); }
.social-link svg, .share-link svg { width: 17px; height: 17px; fill: currentColor; }

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 10px;
  padding: 9px 11px;
  background: rgba(255,255,255,.10);
  color: #fff;
  cursor: pointer;
}
.menu-toggle span {
  width: 23px; height: 2px;
  display: block;
  margin: 4px 0;
  background: currentColor;
}

/* Área de widgets opcional abaixo da barra de menu.
   Se a área estiver vazia, o HTML nem é renderizado. */
.top-banner {
  width: 100%;
  max-width: 100%;
}
.top-banner-inner {
  width: 100%;
  max-width: var(--bpj-container);
  margin: 0 auto;
  padding: 22px 24px 0;
  text-align: center;
}
.top-banner-widget {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.top-banner-widget + .top-banner-widget {
  margin-top: 16px;
}
.top-banner-widget-title {
  margin: 0 0 12px;
}
.top-banner-widget img,
.top-banner-widget picture,
.top-banner-widget figure,
.top-banner-widget .wp-block-image {
  max-width: 100%;
}
.top-banner-widget img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}
.top-banner-widget figure,
.top-banner-widget .wp-block-image {
  margin-left: auto;
  margin-right: auto;
}
.top-banner-widget iframe,
.top-banner-widget video,
.top-banner-widget embed,
.top-banner-widget object {
  max-width: 100%;
}

.site-main-wrap {
  max-width: var(--bpj-container);
  margin: 0 auto;
  padding: 34px 24px 54px;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  align-items: start;
}
.content-grid.no-sidebar { grid-template-columns: minmax(0, 1fr); }

.page-header {
  margin-bottom: 22px;
  padding: 22px 26px;
  border-radius: var(--bpj-radius);
  background: linear-gradient(135deg, #fff, #f8fbff);
  border: 1px solid var(--bpj-border);
  box-shadow: 0 8px 25px rgba(10,40,89,.05);
}
.page-title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.15; }
.archive-description { margin-top: 8px; color: var(--bpj-muted); }
.archive-description p:last-child { margin-bottom: 0; }

.post-card,
.single-article,
.page-article {
  margin: 0 0 28px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--bpj-surface);
  border: 1px solid var(--bpj-border);
  border-radius: var(--bpj-radius);
  box-shadow: var(--bpj-shadow);
}
.post-card:last-child { margin-bottom: 0; }
.entry-header { margin-bottom: 22px; }
.entry-title {
  margin: 0 0 11px;
  color: var(--bpj-navy);
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}
.entry-title a { color: inherit; }
.entry-title a:hover { color: var(--bpj-blue); }
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 15px;
  align-items: center;
  color: var(--bpj-muted);
  font-size: 13px;
  font-weight: 600;
}
.entry-meta span { display: inline-flex; align-items: center; gap: 6px; }
.entry-meta svg { width: 14px; height: 14px; fill: var(--bpj-gold); }
.entry-meta a { color: inherit; }
.entry-meta a:hover { color: var(--bpj-blue); }

.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
}
.share-label { margin-right: 3px; color: var(--bpj-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.share-link { border-radius: 9px; background: var(--bpj-navy); }
.share-link.whatsapp { background: #158a55; }
.share-link.facebook { background: #1877f2; }
.share-link.x { background: #111; }
.share-link.telegram { background: #229ed9; }

.entry-content {
  color: #293246;
  font-size: 1.025rem;
}
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 1.35em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
  margin: 1.6em 0 .62em;
  color: var(--bpj-navy);
  line-height: 1.22;
  letter-spacing: -.015em;
}
.entry-content h2 { font-size: 1.65em; }
.entry-content h3 { font-size: 1.35em; }
.entry-content h4 { font-size: 1.13em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em 1.4em; padding: 0; }
.entry-content li { margin-bottom: .45em; }
.entry-content blockquote {
  margin: 1.8em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--bpj-gold);
  background: #f8f9fc;
  color: #33405a;
  border-radius: 0 12px 12px 0;
}
.entry-content img,
.entry-content .wp-block-image img {
  border-radius: 10px;
}
.entry-content figure { max-width: 100%; }

/* Respeita o alinhamento escolhido no editor do WordPress (Clássico e Gutenberg). */
.entry-content .alignleft,
.entry-content img.alignleft,
.entry-content figure.alignleft,
.entry-content .wp-caption.alignleft,
.entry-content .wp-block-image.alignleft {
  float: left;
  width: auto;
  max-width: 100%;
  margin: .35em 1.5em 1em 0;
}

.entry-content .alignright,
.entry-content img.alignright,
.entry-content figure.alignright,
.entry-content .wp-caption.alignright,
.entry-content .wp-block-image.alignright {
  float: right;
  width: auto;
  max-width: 100%;
  margin: .35em 0 1em 1.5em;
}

.entry-content .aligncenter,
.entry-content img.aligncenter,
.entry-content figure.aligncenter,
.entry-content .wp-caption.aligncenter,
.entry-content .wp-block-image.aligncenter {
  float: none;
  display: block;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.entry-content img.alignnone,
.entry-content figure.alignnone,
.entry-content .wp-caption.alignnone,
.entry-content .wp-block-image.alignnone {
  float: none;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.entry-content .wp-block-image.alignleft > img,
.entry-content .wp-block-image.alignright > img,
.entry-content .wp-block-image.aligncenter > img,
.entry-content .wp-block-image.alignnone > img,
.entry-content .wp-caption > img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.entry-content iframe,
.entry-content video { max-width: 100%; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  display: block;
  overflow-x: auto;
}
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--bpj-border); text-align: left; }
.entry-content th { background: #f4f7fb; }
.entry-content .alignwide { margin-left: min(-4vw, -28px); margin-right: min(-4vw, -28px); max-width: none; }
.entry-content .alignfull { width: auto; max-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text, .blocks-gallery-caption, .wp-element-caption { color: var(--bpj-muted); font-size: 13px; text-align: center; }

.entry-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--bpj-border);
  color: var(--bpj-muted);
  font-size: 13px;
}
.entry-footer a { font-weight: 700; }
.tags-links a {
  display: inline-block;
  margin: 4px 4px 0 0;
  padding: 5px 9px;
  background: #f1f4f8;
  border-radius: 999px;
  color: #536078;
  font-size: 12px;
}

.sidebar { position: sticky; top: 84px; }
.widget {
  margin-bottom: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--bpj-border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(10,40,89,.055);
}
.widget:last-child { margin-bottom: 0; }
.widget-title {
  margin: 0;
  padding: 12px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--bpj-navy), var(--bpj-blue));
  border-bottom: 3px solid var(--bpj-gold);
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .045em;
}
.widget > ul, .widget > ol, .widget .menu, .widget .wp-block-list {
  list-style: none;
  margin: 0;
  padding: 7px 16px 13px;
}
.widget li { margin: 0; border-bottom: 1px solid var(--bpj-border); }
.widget li:last-child { border-bottom: 0; }
.widget li a { display: block; padding: 9px 0; color: #44506a; font-size: 14px; }
.widget li a:hover { color: var(--bpj-blue); }
.widget p, .widget .textwidget { padding: 0 16px; }
.widget select { width: calc(100% - 32px); margin: 14px 16px; padding: 10px 12px; border: 1px solid var(--bpj-border); border-radius: 8px; background: #fff; }

.search-form {
  display: flex;
  gap: 7px;
  padding: 14px;
}
.search-form label { flex: 1; }
.search-field {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #d8deea;
  border-radius: 9px;
  outline: none;
  background: #fff;
}
.search-field:focus { border-color: var(--bpj-blue); box-shadow: 0 0 0 3px rgba(21,82,162,.10); }
.search-submit,
.button,
button[type="submit"],
input[type="submit"] {
  border: 0;
  border-radius: 9px;
  padding: 10px 15px;
  background: var(--bpj-navy);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.search-submit:hover, .button:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: var(--bpj-blue); }

.pagination, .posts-navigation, .post-navigation { margin: 28px 0 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nav-links .page-numbers,
.post-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--bpj-border);
  border-radius: 9px;
  background: #fff;
  color: var(--bpj-navy);
  font-weight: 700;
}
.nav-links .current, .nav-links a:hover, .post-navigation a:hover { background: var(--bpj-navy); color: #fff; }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation .nav-previous, .post-navigation .nav-next { max-width: 48%; }

.comments-area {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 36px);
  background: #fff;
  border: 1px solid var(--bpj-border);
  border-radius: var(--bpj-radius);
  box-shadow: var(--bpj-shadow);
}
.comments-title, .comment-reply-title { margin-top: 0; color: var(--bpj-navy); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--bpj-border); }
.comment-meta { font-size: 13px; color: var(--bpj-muted); }
.comment-content { margin-top: 8px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #d8deea; border-radius: 9px;
}

.no-results,
.error-404 {
  padding: 46px 30px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--bpj-border);
  border-radius: var(--bpj-radius);
  box-shadow: var(--bpj-shadow);
}
.error-404 .page-title { font-size: clamp(2rem, 6vw, 4rem); }

.site-footer {
  color: rgba(255,255,255,.79);
  background: #061a3a;
  border-top: 3px solid var(--bpj-gold);
}
.footer-inner {
  max-width: var(--bpj-container);
  margin: 0 auto;
  padding: 30px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: 13px;
}
.footer-inner a { color: #fff; }
.footer-inner a:hover { color: var(--bpj-gold-soft); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.developer-credit { white-space: nowrap; }

@media (max-width: 1020px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 285px; gap: 22px; }
  .site-main-wrap { padding-left: 18px; padding-right: 18px; }
  .top-banner-inner { padding-left: 18px; padding-right: 18px; }
  .nav-inner { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 820px) {
  .header-inner { min-height: 170px; padding: 12px 16px; }
  .custom-logo, .default-logo { width: min(620px, 96vw); max-height: 150px; }
  .nav-inner { min-height: 54px; padding: 0 14px; }
  .menu-toggle { display: block; }
  .nav-menu-wrap {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    background: #071b3d;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 14px 30px rgba(0,0,0,.18);
  }
  .nav-menu-wrap.is-open { display: block; }
  .primary-menu { display: block; padding: 8px 14px 14px; }
  .primary-menu > li > a { padding: 11px 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-menu > li > a:hover, .primary-menu > li.current-menu-item > a { box-shadow: none; background: rgba(255,255,255,.07); }
  .primary-menu .sub-menu { position: static; min-width: 0; display: block; margin: 0 0 5px 14px; background: transparent; border: 0; box-shadow: none; }
  .primary-menu .sub-menu a { color: rgba(255,255,255,.82); border-color: rgba(255,255,255,.08); }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .post-card, .single-article, .page-article { padding: 25px 21px; border-radius: 15px; }
  .entry-title { font-size: clamp(1.48rem, 6vw, 2rem); }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .site-header { border-bottom-width: 2px; }
  .header-inner { min-height: 128px; padding: 8px 10px; }
  .custom-logo, .default-logo { width: min(430px, 97vw); max-height: 115px; }
  .site-main-wrap { padding: 20px 11px 36px; }
  .top-banner-inner { padding: 14px 11px 0; }
  .post-card, .single-article, .page-article { margin-bottom: 18px; padding: 20px 16px; border-radius: 12px; }
  .page-header { padding: 18px 17px; border-radius: 12px; }
  .entry-header { margin-bottom: 18px; }
  .entry-meta { gap: 6px 11px; font-size: 12px; }
  .share-row { margin-bottom: 19px; }
  .share-label { width: 100%; }
  .share-link { width: 36px; height: 36px; }
  .entry-content { font-size: 1rem; }
  .entry-content h2 { font-size: 1.45em; }
  .widget { border-radius: 12px; }
  .header-social { gap: 5px; }
  .social-link { width: 32px; height: 32px; }
  .post-navigation .nav-links { flex-direction: column; }
  .post-navigation .nav-previous, .post-navigation .nav-next { max-width: 100%; }
}


/* Ajustes de responsividade e prevenção de estouro horizontal */
.site-header,
.site-nav,
.site-main-wrap,
.content-grid,
.primary-content,
.single-article,
.post-card,
.page-article,
.entry-header,
.entry-content,
.sidebar {
  min-width: 0;
  max-width: 100%;
}

.entry-title,
.entry-content,
.entry-content p,
.entry-content li,
.entry-content a,
.entry-meta,
.widget,
.widget a {
  overflow-wrap: anywhere;
  word-break: normal;
}

.entry-content img,
.entry-content video,
.entry-content audio,
.entry-content iframe,
.entry-content embed,
.entry-content object,
.entry-content svg,
.entry-content canvas,
.wp-block-image,
.wp-block-image img,
.wp-block-video,
.wp-block-video video,
.wp-block-embed,
.wp-block-embed__wrapper,
.wp-block-gallery,
.wp-block-media-text,
figure {
  max-width: 100%;
}

.entry-content iframe,
.entry-content embed,
.entry-content object {
  width: 100%;
}

.entry-content pre,
.entry-content code {
  max-width: 100%;
}

.entry-content pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content .wp-block-table,
.entry-content .wp-block-table table {
  max-width: 100%;
}

@media (max-width: 820px) {
  .site-main-wrap,
  .content-grid,
  .primary-content {
    width: 100%;
    max-width: 100%;
  }

  .content-grid {
    display: block;
  }

  .sidebar {
    width: 100%;
    margin-top: 22px;
  }

  .entry-content .alignwide,
  .entry-content .alignfull,
  .entry-content > .alignwide,
  .entry-content > .alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Mantém no mobile o alinhamento definido pelo administrador,
     reduzindo apenas quando a imagem ultrapassar a largura disponível. */
  .entry-content .alignleft,
  .entry-content img.alignleft,
  .entry-content figure.alignleft,
  .entry-content .wp-caption.alignleft,
  .entry-content .wp-block-image.alignleft {
    float: left;
    width: auto;
    max-width: 100%;
    margin: .3em 1em .8em 0;
  }

  .entry-content .alignright,
  .entry-content img.alignright,
  .entry-content figure.alignright,
  .entry-content .wp-caption.alignright,
  .entry-content .wp-block-image.alignright {
    float: right;
    width: auto;
    max-width: 100%;
    margin: .3em 0 .8em 1em;
  }

  .entry-content .aligncenter,
  .entry-content img.aligncenter,
  .entry-content figure.aligncenter,
  .entry-content .wp-caption.aligncenter,
  .entry-content .wp-block-image.aligncenter {
    float: none;
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .header-inner {
    width: 100%;
    min-height: 0;
    padding: 8px 8px;
  }

  .branding,
  .custom-logo-link,
  .default-logo-link {
    width: 100%;
    max-width: 100%;
  }

  .custom-logo,
  .default-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
  }

  .nav-inner {
    width: 100%;
    max-width: 100%;
    padding: 6px 10px;
  }

  .nav-menu-wrap {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .site-main-wrap {
    width: 100%;
    padding: 18px 7px 32px;
  }

  .top-banner-inner {
    width: 100%;
    padding: 12px 7px 0;
  }

  .post-card,
  .single-article,
  .page-article {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 18px 13px;
  }

  .entry-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(1.22rem, 5.2vw, 1.55rem);
    line-height: 1.2;
    letter-spacing: -.018em;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .entry-meta {
    width: 100%;
    align-items: flex-start;
    row-gap: 8px;
  }

  .entry-meta span {
    max-width: 100%;
  }

  .share-row {
    width: 100%;
  }

  .entry-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    font-size: .98rem;
    line-height: 1.68;
  }

  .entry-content img,
  .entry-content .wp-block-image img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Blocos de imagem preservam esquerda, centro, direita ou sem alinhamento.
     Os demais blocos de mídia continuam ocupando apenas a largura disponível. */
  .entry-content .wp-block-gallery,
  .entry-content .wp-block-video,
  .entry-content .wp-block-embed {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .entry-content figure.wp-block-image,
  .entry-content .wp-caption {
    max-width: 100% !important;
  }

  .entry-content figure.wp-block-image.aligncenter,
  .entry-content .wp-caption.aligncenter {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .entry-content figure.wp-block-image.alignleft,
  .entry-content .wp-caption.alignleft {
    margin-left: 0 !important;
    margin-right: 1em !important;
  }

  .entry-content figure.wp-block-image.alignright,
  .entry-content .wp-caption.alignright {
    margin-left: 1em !important;
    margin-right: 0 !important;
  }

  .entry-content table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .entry-content input,
  .entry-content textarea,
  .entry-content select,
  .entry-content button {
    max-width: 100%;
  }

  .comments-area {
    width: 100%;
    max-width: 100%;
    padding: 20px 14px;
  }

  .footer-inner {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .developer-credit {
    white-space: normal;
  }
}

@media (max-width: 380px) {
  .site-main-wrap { padding-left: 5px; padding-right: 5px; }
  .top-banner-inner { padding-left: 5px; padding-right: 5px; }
  .post-card, .single-article, .page-article { padding: 16px 11px; }
  .entry-title { font-size: 1.18rem; }
  .entry-meta { font-size: 11.5px; }
  .share-link { width: 34px; height: 34px; }
}