/*
Theme Name: MandatoControl Blog
Theme URI: https://blog.mandatocontrol.com.br
Author: MAA Labs
Author URI: https://mandatocontrol.com.br
Description: Tema minimalista do blog MandatoControl — GovTech para campanhas e mandatos.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
License: GNU General Public License v2 or later
Text Domain: mandatocontrol
*/

:root {
  --mc-primary: #0F3D4C;
  --mc-green: #2A8C4A;
  --mc-yellow: #F2C94C;
  --mc-bg: #f8fafb;
  --mc-text: #1a2e35;
  --mc-muted: #5a7179;
  --mc-max-width: 720px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--mc-text);
  background: var(--mc-bg);
}

a {
  color: var(--mc-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--mc-primary);
}

.site-header {
  background: var(--mc-primary);
  color: #fff;
  padding: 1.25rem 1.5rem;
}

.site-header a {
  color: #fff;
  text-decoration: none;
}

.site-header a:hover {
  color: var(--mc-yellow);
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-description {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  opacity: 0.85;
}

.site-main {
  max-width: var(--mc-max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

article {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #dde4e7;
}

article:last-child {
  border-bottom: none;
}

.entry-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  line-height: 1.3;
}

.entry-title a {
  color: var(--mc-primary);
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--mc-green);
}

.entry-meta {
  font-size: 0.8125rem;
  color: var(--mc-muted);
  margin-bottom: 1rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8125rem;
  color: var(--mc-muted);
  border-top: 1px solid #dde4e7;
}

.site-footer a {
  color: var(--mc-primary);
}

/* CTA de conversão ao fim de cada post (blog → app) */
.mc-cta {
  margin: 2.5rem 0 0.5rem;
  padding: 1.5rem;
  background: var(--mc-primary);
  color: #fff;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  justify-content: space-between;
}

.mc-cta__title {
  display: block;
  font-size: 1.125rem;
  line-height: 1.35;
}

.mc-cta__text {
  margin: 0.4rem 0 0;
  font-size: 0.9375rem;
  opacity: 0.9;
}

.mc-cta__body {
  flex: 1 1 320px;
}

.mc-cta__btn {
  flex: 0 0 auto;
  display: inline-block;
  background: var(--mc-yellow);
  color: var(--mc-primary) !important;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  white-space: nowrap;
}

.mc-cta__btn:hover {
  background: #ffd968;
  color: var(--mc-primary) !important;
}
