/* Páginas do blog · mesma identidade do site */
:root {
  --navy: #10213F; --navy-deep: #0A1730; --blue: #1768B2; --blue-hover: #125596; --blue-soft: #8DB8EA;
  --bg: #F7F8FA; --gray: #EDF1F4; --white: #FFFFFF; --muted: #566274; --line: rgba(16, 33, 63, 0.14);
  --font-title: "Montserrat", Arial, sans-serif; --font-body: "Inter", Arial, sans-serif;
  --wrap: 1240px; --pad: 64px; --ease: cubic-bezier(0.22, 0.7, 0.2, 1); --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 24px 48px -32px rgba(16, 33, 63, 0.5);
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--navy); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-title); color: var(--navy); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: max(var(--pad), env(safe-area-inset-left, 0px)) max(var(--pad), env(safe-area-inset-right, 0px)); }
.i { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Cabeçalho */
.b-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.b-header .row { height: 72px; display: flex; align-items: center; gap: 24px; padding-inline: max(28px, env(safe-area-inset-left, 0px)) max(28px, env(safe-area-inset-right, 0px)); }
.b-header .brand img { height: 48px; width: auto; mix-blend-mode: multiply; }
.b-nav { display: flex; gap: 22px; margin-left: 20px; }
.b-nav a { font-family: var(--font-title); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.b-nav a:hover, .b-nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 12px; background: var(--blue); color: var(--white); font-family: var(--font-title); font-size: 0.875rem; font-weight: 600; text-decoration: none; box-shadow: 0 12px 26px -16px rgba(23, 104, 178, 0.8); transition: background-color 0.3s ease, transform 0.3s var(--ease); }
.btn:hover { background: var(--blue-hover); color: var(--white); transform: translateY(-2px); }
.b-header .btn { margin-left: auto; min-height: 42px; padding: 9px 18px; font-size: 0.8125rem; }

/* Topo da página */
.b-hero { position: relative; overflow: hidden; padding-block: 88px 72px; background: linear-gradient(160deg, #EEF2F6 0%, #E3E9EF 60%, #D9E1EA 100%); }
.b-hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(23, 104, 178, 0.18); box-shadow: 0 0 0 60px rgba(23, 104, 178, 0.04), 0 0 0 120px rgba(23, 104, 178, 0.025); pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px; font-family: var(--font-title); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.b-hero h1 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.025em; max-width: 22ch; }
.b-hero .sub { margin-top: 16px; color: var(--muted); max-width: 58ch; font-size: 1.125rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; font-size: 0.875rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* Lista de artigos */
.b-list { padding-block: 72px 112px; }
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 30px 28px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); color: var(--navy); text-decoration: none; overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease; animation: rise-in 0.6s var(--ease-out) both; animation-delay: var(--d, 0ms); }
.post::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--blue-soft)); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.post:hover, .post:focus-visible { transform: translateY(-4px); border-color: rgba(23, 104, 178, 0.4); box-shadow: var(--shadow); }
.post:hover::after, .post:focus-visible::after { transform: scaleX(1); }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.chip { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(23, 104, 178, 0.1); color: var(--blue); font-family: var(--font-title); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.post h2, .post h3 { font-size: 1.25rem; line-height: 1.3; }
.post p { color: var(--muted); font-size: 0.975rem; flex: 1; }
.post .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--muted); }
.post .more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-title); font-weight: 600; color: var(--blue); }
.post .more .i { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.post:hover .more .i { transform: translateX(4px); }

/* Artigo */
.article { padding-block: 64px 112px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 72px; align-items: start; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: var(--muted); font-size: 0.9375rem; }
.meta-line span { display: inline-flex; align-items: center; gap: 8px; }
.meta-line .i { width: 16px; height: 16px; color: var(--blue); }
.prose { font-size: 1.125rem; color: #2C384B; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: 1.5rem; margin-top: 40px; padding-top: 4px; }
.prose ul { padding: 0; list-style: none; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.prose .lead-p { font-size: 1.25rem; color: var(--navy); }
.notice { display: flex; gap: 12px; margin-top: 40px; padding: 18px 20px; border-radius: 14px; background: rgba(23, 104, 178, 0.07); color: var(--navy); font-size: 0.9375rem; }
.notice .i { color: var(--blue); margin-top: 3px; }
.aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.aside-card { padding: 26px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.aside-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.aside-card p { color: var(--muted); font-size: 0.9375rem; margin-bottom: 16px; }
.aside-card .btn { width: 100%; }
.aside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.aside-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--font-title); font-weight: 600; font-size: 0.9375rem; color: var(--navy); text-decoration: none; }
.aside-list a:hover { color: var(--blue); }
.back { display: inline-flex; align-items: center; gap: 8px; margin-top: 48px; font-family: var(--font-title); font-weight: 600; color: var(--blue); text-decoration: none; }
.back .i { transform: rotate(180deg); width: 16px; height: 16px; }
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 3px; background: linear-gradient(90deg, var(--blue), var(--blue-soft)); transform-origin: left; transform: scaleX(0); }

/* Rodapé */
.b-footer { background: var(--navy-deep); color: #B5C2D6; padding-block: 40px; font-size: 0.875rem; }
.b-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.b-footer a { color: #B5C2D6; text-decoration: none; }
.b-footer a:hover { color: var(--white); }

@media (max-width: 960px) {
  :root { --pad: 32px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .aside { position: static; }
  .b-nav { display: none; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; }
  .posts { grid-template-columns: minmax(0, 1fr); }
  .b-hero { padding-block: 56px 48px; }
  .b-list, .article { padding-block: 48px 72px; }
  .b-header .row { padding-inline: 16px; }
  .b-header .brand img { height: 42px; }
  .prose { font-size: 1.0625rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
