:root {
  --whj-bg: #F9F8F5;
  --whj-surface: #FFFFFF;
  --whj-muted: #F2F0EC;
  --whj-border: #E4E2DC;
  --whj-border-light: #EDEAE4;
  --whj-text-dark: #1A1916;
  --whj-text-body: #3A3A37;
  --whj-text-muted: #767672;
  --whj-text-hint: #A8A8A4;
  --whj-slate: #2B3A4A;
  --whj-slate-dark: #1A242F;
  --whj-gold: #A67C2E;
  --whj-gold-bg: #FBF5E6;
  --whj-gold-border: #E8D49A;
  --whj-font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --whj-font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--whj-bg);
  color: var(--whj-text-body);
}

.wp-block-template-part[class*="header"],
header.wp-block-template-part,
.site-header,
#masthead {
  background: var(--whj-surface);
  border-bottom: 1px solid var(--whj-border);
}

.wp-block-site-title a,
.site-title a,
.site-title {
  font-family: var(--whj-font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--whj-text-dark);
  text-decoration: none;
}

.wp-block-site-title a:hover,
.site-title a:hover {
  color: var(--whj-slate);
}

.wp-block-site-tagline,
.site-description {
  font-family: var(--whj-font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--whj-text-muted);
}

.wp-block-navigation a,
.wp-block-navigation-item a,
.main-navigation a,
.nav-menu a {
  font-family: var(--whj-font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--whj-text-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

.wp-block-navigation a:hover,
.wp-block-navigation-item a:hover,
.main-navigation a:hover,
.nav-menu a:hover {
  color: var(--whj-slate);
}

.wp-block-navigation__submenu-container,
.main-navigation .sub-menu {
  background: var(--whj-surface);
  border: 1px solid var(--whj-border);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
  padding: 6px 0;
}

.wp-block-navigation__submenu-container a,
.main-navigation .sub-menu a {
  padding: 8px 18px;
  font-size: 0.78rem;
  display: block;
}

.wp-block-navigation__submenu-container a:hover,
.main-navigation .sub-menu a:hover {
  background: var(--whj-muted);
}

h1, h2, h3,
.wp-block-post-title,
.entry-title,
.wp-block-heading {
  font-family: var(--whj-font-serif);
  font-weight: 400;
  color: var(--whj-text-dark);
  letter-spacing: -0.02em;
  line-height: 1.22;
}

.entry-content h2,
.wp-block-post-content h2 {
  margin-top: 2.8rem;
  margin-bottom: 0.7rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--whj-border-light);
}

.entry-content h3,
.wp-block-post-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.home .entry-content,
.blog .entry-content,
.archive .entry-content,
.home .wp-block-post-content,
.blog .wp-block-post-content,
.archive .wp-block-post-content {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 8.5em;
  position: relative;
  font-size: 0.95rem;
  color: var(--whj-text-muted);
  line-height: 1.65;
  font-family: var(--whj-font-sans);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.home article,
.blog article,
.archive article,
.wp-block-query .wp-block-post {
  background: var(--whj-surface);
  border: 1px solid var(--whj-border);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: box-shadow 0.22s ease, transform 0.15s ease;
}

.home article:hover,
.blog article:hover,
.archive article:hover,
.wp-block-query .wp-block-post:hover {
  box-shadow: 0 6px 28px rgba(43, 58, 74, 0.1);
  transform: translateY(-2px);
}

.post-thumbnail,
.wp-block-post-featured-image {
  overflow: hidden;
}

.post-thumbnail img,
.wp-block-post-featured-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.home article:hover .post-thumbnail img,
.blog article:hover .post-thumbnail img,
.home article:hover .wp-block-post-featured-image img,
.blog article:hover .wp-block-post-featured-image img {
  transform: scale(1.04);
}

.home .entry-header,
.blog .entry-header,
.archive .entry-header {
  padding: 1.4rem 1.6rem 0.4rem;
}

.home .entry-content,
.blog .entry-content,
.archive .entry-content {
  padding: 0 1.6rem 1.4rem;
}

.home .entry-title,
.blog .entry-title,
.archive .entry-title {
  font-size: 1.2rem;
  margin: 0 0 0.3rem;
}

.home .entry-title a,
.blog .entry-title a,
.archive .entry-title a {
  color: var(--whj-text-dark);
  text-decoration: none;
  transition: color 0.15s;
}

.home .entry-title a:hover,
.blog .entry-title a:hover {
  color: var(--whj-slate);
}

.entry-meta,
.wp-block-post-date,
.posted-on,
.byline {
  font-family: var(--whj-font-sans);
  font-size: 0.73rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--whj-text-muted);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cat-links a,
.wp-block-post-terms a,
.entry-meta .cat-links a {
  background: var(--whj-gold-bg);
  color: var(--whj-gold);
  border: 1px solid var(--whj-gold-border);
  padding: 3px 10px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.15s, color 0.15s;
}

.cat-links a:hover,
.wp-block-post-terms a:hover {
  background: var(--whj-gold);
  color: #fff;
}

.more-link,
.wp-block-read-more,
.wp-block-post-excerpt__more-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 8px 22px;
  background: transparent;
  border: 1.5px solid var(--whj-slate);
  border-radius: 3px;
  font-family: var(--whj-font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--whj-slate);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.more-link:hover,
.wp-block-read-more:hover,
.wp-block-post-excerpt__more-link:hover {
  background: var(--whj-slate);
  color: #fff;
}

.single .entry-content,
.single .wp-block-post-content,
.page .entry-content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--whj-font-sans);
  font-size: 1.05rem;
  line-height: 1.82;
  color: var(--whj-text-body);
  font-weight: 400;
}

.single .entry-header {
  max-width: 780px;
  margin: 0 auto 2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--whj-border);
}

.single h1.entry-title,
.single .wp-block-post-title {
  line-height: 1.18;
  margin-bottom: 0.8rem;
}

.entry-content p,
.wp-block-post-content p {
  margin-bottom: 1.5em;
}

.entry-content a,
.wp-block-post-content a {
  color: var(--whj-slate);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(43, 58, 74, 0.35);
  transition: text-decoration-color 0.18s;
}

.entry-content a:hover,
.wp-block-post-content a:hover {
  text-decoration-color: var(--whj-slate);
}

.entry-content blockquote,
.wp-block-post-content blockquote,
.wp-block-quote {
  background: var(--whj-muted);
  border-left: 3px solid var(--whj-gold);
  border-radius: 0 4px 4px 0;
  margin: 2rem 0;
  padding: 1.2rem 1.6rem;
  font-family: var(--whj-font-serif);
  font-size: 1.15rem;
  color: var(--whj-text-dark);
  font-style: italic;
}

.wp-block-quote cite,
.entry-content blockquote cite {
  font-family: var(--whj-font-sans);
  font-size: 0.78rem;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--whj-text-muted);
  display: block;
  margin-top: 0.6rem;
}

.entry-content img,
.wp-block-post-content img,
.wp-block-image img {
  border-radius: 4px;
  max-width: 100%;
  height: auto;
}

.wp-block-image figcaption,
.entry-content figcaption {
  font-family: var(--whj-font-sans);
  font-size: 0.78rem;
  color: var(--whj-text-muted);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

.entry-content iframe[src*="youtube"],
.wp-block-post-content iframe[src*="youtube"],
.entry-content .wp-block-embed__wrapper iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 5px;
  border: none;
}

.entry-content hr,
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--whj-border);
  margin: 2.5rem 0;
}

.sharedaddy .sd-content ul:nth-of-type(2) {
  display: none;
}

.sharedaddy,
.sd-block.sd-social {
  max-width: 720px;
  margin: 3rem auto 2rem;
  padding: 1.8rem 0 1.5rem;
  border-top: 1px solid var(--whj-border);
  border-bottom: none;
}

.sharedaddy .sd-title,
.sd-block.sd-social .sd-title {
  font-family: var(--whj-font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--whj-text-hint);
  margin-bottom: 1rem;
}

.sd-content ul li a,
.sd-social-icon .sd-content a,
.sd-social-icon-text .sd-content a {
  border-radius: 3px;
  transition: opacity 0.15s, transform 0.1s;
}

.sd-content ul li a:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.wp-block-template-part[class*="footer"],
footer.wp-block-template-part,
.site-footer,
#colophon {
  background: var(--whj-text-dark);
  border-top: none;
  padding: 3rem 0 2rem;
}

.site-footer *,
#colophon *,
.wp-block-template-part[class*="footer"] * {
  color: #9A9A96;
  font-family: var(--whj-font-sans);
  font-size: 0.8rem;
}

.site-footer a:hover,
#colophon a:hover {
  color: var(--whj-gold);
}

@media (max-width: 768px) {
  .single .entry-content,
  .single .wp-block-post-content {
    font-size: 1rem;
    line-height: 1.78;
  }
  .home .entry-header,
  .blog .entry-header,
  .archive .entry-header {
    padding: 1rem 1.1rem 0.3rem;
  }
  .home .entry-content,
  .blog .entry-content,
  .archive .entry-content {
    padding: 0 1.1rem 1rem;
  }
  .post-thumbnail img,
  .wp-block-post-featured-image img {
    height: 180px;
  }
  .entry-content blockquote,
  .wp-block-quote {
    padding: 1rem 1.2rem;
  }
}
/* Botão de pesquisa — harmonizar com a paleta do site */
.wp-block-search__button {
  background-color: var(--whj-slate) !important;
  border-radius: 4px !important;
  width: auto !important;
  height: auto !important;
  padding: 8px 12px !important;
}

.wp-block-search__button svg {
  width: 16px !important;
  height: 16px !important;
}