/* Blog Yuha! — tokens do canvas "Yuha — Novo Layout" (Manuais 01–04), os mesmos da Capa. */
:root {
  --navy-900: #0b1f3a;
  --navy-700: #0d3a7a;
  --navy-glass: rgba(11, 31, 58, 0.72);
  --blue: #004aad;
  --blue-dark: #002c6a;
  --blue-50: #e6f0ff;
  --sky: #7cc4ff;
  --orange: #fa6101;
  --orange-50: #fff1e6;
  --orange-ink: #a34000;
  --green: #0f7a4a;
  --green-50: #e3f6ec;
  --live: #3ddc84;

  --ink: #13293d;
  --text: #3b4a5a;
  --muted: #5a646e;
  --subtle: #8a95a3;
  --line: #e3e8f0;
  --line-strong: #d6dde8;
  --track: #eef1f6;
  --surface: #f3f5f9;
  --surface-2: #f5f7fb;
  --white: #ffffff;

  --on-dark: #dbe6f5;
  --on-dark-muted: #b8c7dc;
  --on-dark-soft: #9fb0c8;
  --on-dark-faint: #8ea3bf;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-line: rgba(255, 255, 255, 0.16);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-float: 0 18px 48px rgba(11, 31, 58, 0.28);
  --shadow-menu: 0 18px 48px rgba(11, 31, 58, 0.18);

  /* --gutter: respiro do header e do rodapé; --page-pad: margem lateral do conteúdo */
  --gutter: 40px;
  --page-pad: 80px;
  --section-gap: 72px;
  --header-top: 16px;
  --header-h: 72px;
  --max: 1440px;

  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
}

@media (max-width: 1100px) {
  :root {
    --gutter: 24px;
    --page-pad: 40px;
    --section-gap: 56px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --page-pad: 16px;
    --section-gap: 44px;
    --header-top: 12px;
    --header-h: 64px;
  }
}

/* ---------- Base ---------- */

.ez-toc-js-icon-con {
  display: none !important;
}

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

/* clip impede que qualquer vazamento alargue o viewport no celular */
html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-dark);
}

img {
  max-width: 100%;
  height: auto;
}

svg {
  flex-shrink: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

/* Âncoras não ficam escondidas atrás do header fixo */
[id] {
  scroll-margin-top: 104px;
}

@media (max-width: 640px) {
  [id] {
    scroll-margin-top: 88px;
  }
}

/* Barra de rolagem igual à da Capa e da dash (sliders, tabelas, menus) */
@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--line-strong);
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* Animação de entrada, como na Capa: data-reveal entra ao aparecer na tela (main.js);
   data-reveal="load" (primeira dobra) anima só com CSS ao abrir a página.
   A classe js-reveal é posta no <html> por um script no <head>: sem JS, nada fica escondido. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js-reveal [data-reveal="load"] {
  opacity: 1;
  transform: none;
  transition: none;
  animation: reveal-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1)
    var(--reveal-delay, 0ms) both;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
}

.skip-link:focus {
  top: 8px;
}

/* ---------- Peças pequenas ---------- */

.btn {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn--lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
}

.btn--ghost:hover {
  background: var(--glass);
  color: var(--white);
}

.btn--outline {
  flex-shrink: 0;
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink);
}

.btn--outline svg {
  color: var(--blue);
}

.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--glass);
  color: var(--on-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--sm {
  font-size: 11px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.badge--orange {
  background: var(--orange-50);
  color: var(--orange-ink);
}

.badge--glass {
  background: var(--glass);
  color: var(--on-dark);
}

a.badge--glass:hover {
  color: var(--white);
}

.badge--human svg {
  color: var(--live);
}

.read-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.chips__label {
  margin-right: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark-soft);
}

.chips__label--light {
  color: var(--muted);
}

.chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--on-dark);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.chip:hover {
  border-color: var(--white);
  color: var(--white);
}

.chip.is-active {
  border-color: var(--white);
  background: var(--white);
  color: var(--navy-900);
}

.chip--light {
  border-color: var(--line-strong);
  color: var(--ink);
}

.chip--light:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Quadro usado quando o post não tem imagem destacada */
.thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--blue);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--white);
}

.thumb-ph--1 {
  background-color: var(--navy-900);
  color: var(--sky);
}

.thumb-ph--2 {
  background-color: var(--blue-50);
  background-image:
    linear-gradient(rgba(0, 74, 173, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 74, 173, 0.08) 1px, transparent 1px);
  color: var(--blue);
}

/* ---------- Busca ---------- */

.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
}

.searchbox input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}

/* Header e menu do celular: botão de lupa dentro do campo */
.searchbox--dark {
  width: 300px;
  height: 44px;
  padding: 0 6px 0 14px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  background: var(--glass);
}

.searchbox--dark:focus-within,
.searchbox--light:focus-within {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.searchbox--dark input {
  color: var(--white);
}

.searchbox--dark input::placeholder {
  color: var(--on-dark-soft);
}

.searchbox--dark button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.searchbox--dark button:hover {
  background: var(--glass);
  color: var(--white);
}

/* Faixa escura (hero): campo branco com o botão dentro; no celular o botão desce (ver @media do hero) */
.searchbox--light {
  width: 100%;
  max-width: 600px;
  height: 56px;
  padding: 0 6px 0 18px;
  border-radius: 14px;
  background: var(--white);
  gap: 12px;
  color: var(--muted);
}

.searchbox__field {
  display: contents;
}

.searchbox--light input {
  color: var(--ink);
  font-size: 15px;
}

.searchbox--light input::placeholder {
  color: var(--subtle);
}

.searchbox--light button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.searchbox--light button:hover {
  background: var(--blue-dark);
}

/* ---------- Header (fixo no topo, como na Capa) ---------- */

.site-header {
  position: fixed;
  top: var(--header-top);
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 var(--gutter);
  pointer-events: none;
}

.site-header__bar {
  position: relative;
  max-width: calc(var(--max) - 80px);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 16px 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: var(--navy-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: auto;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Depois de rolar a página o header escurece e ganha sombra (main.js) */
.site-header.is-scrolled .site-header__bar {
  background: rgba(11, 31, 58, 0.92);
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.28);
}

.site-header__left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header__right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  display: block;
  width: auto;
  height: 26px;
  filter: brightness(0) invert(1);
}

.brand__badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--on-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__item {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.nav__item:hover {
  color: var(--white);
}

.nav__item[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.nav__item svg {
  transition: transform 0.2s ease;
}

.nav__item[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  display: flex;
}

.menu-toggle__open {
  display: flex;
}

/* Menu de categorias (desktop) */
.catmenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 130px;
  width: 760px;
  max-width: calc(100% - 146px);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-menu);
  color: var(--ink);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  animation: menu-in 0.16s ease-out;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.catmenu__list {
  max-height: min(70vh, 520px);
  padding: 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.catmenu__label {
  padding: 4px 12px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.catmenu__cat {
  width: 100%;
  min-height: 44px;
  flex-shrink: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.catmenu__name {
  flex: 1;
  min-width: 0;
}

.catmenu__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--track);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.catmenu__cat.is-active {
  background: var(--blue-50);
  color: var(--blue);
  font-weight: 700;
}

.catmenu__cat.is-active .catmenu__icon {
  background: var(--blue);
  color: var(--white);
}

.catmenu__pane {
  padding: 24px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.catmenu__intro {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.catmenu__intro b {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.4px;
}

.catmenu__intro span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.catmenu__subs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catmenu__subs a {
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.catmenu__subs a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.catmenu__all {
  margin-top: auto;
  align-self: flex-start;
  white-space: normal;
}

/* Menu do celular: painel escuro abaixo do header, como na Capa */
.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-top) - var(--header-h) - 26px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: var(--navy-900);
  box-shadow: var(--shadow-float);
  color: var(--on-dark);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu .searchbox--dark {
  width: 100%;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.mobile-menu__label {
  padding: 12px 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

.mobile-menu__link,
.mobile-menu__cat summary {
  min-height: 44px;
  flex-shrink: 0;
  color: var(--on-dark);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.mobile-menu__link:hover,
.mobile-menu__cat summary:hover,
.mobile-menu__cat[open] summary {
  color: var(--white);
}

.mobile-menu__cat summary::-webkit-details-marker {
  display: none;
}

.mobile-menu__cat summary svg {
  transition: transform 0.2s ease;
}

.mobile-menu__cat[open] summary svg {
  transform: rotate(180deg);
}

.mobile-menu__cat a {
  min-height: 40px;
  padding-left: 16px;
  color: var(--on-dark-muted);
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.mobile-menu__cat a:hover {
  color: var(--white);
}

.mobile-menu__cat a.mobile-menu__all {
  color: var(--sky);
  font-weight: 700;
}

.mobile-menu__actions {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 1240px) {
  .site-header__left {
    gap: 20px;
  }

  .nav__item {
    font-size: 14px;
  }

  .searchbox--dark {
    width: 240px;
  }
}

@media (min-width: 1101px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .nav,
  .site-header__right,
  .catmenu {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .site-header__bar {
    padding: 0 10px 0 16px;
  }
}

/* ---------- Faixa escura e hero ---------- */

.band {
  --hero-gap: 56px;
  position: relative;
  padding: calc(var(--header-top) + var(--header-h) + var(--hero-gap)) 0 72px;
  background: radial-gradient(
    90% 90% at 85% 0%,
    var(--navy-700) 0%,
    var(--navy-900) 60%
  );
  color: var(--white);
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.band--tall {
  --hero-gap: 72px;
}

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.hero__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark-soft);
}

.breadcrumb a {
  color: var(--on-dark);
}

.breadcrumb a:hover {
  color: var(--white);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--white);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero__title--xl {
  font-size: clamp(48px, 6.4vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero__title--md {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
}

.hero__title--article {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.hero__title--sm {
  max-width: 860px;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero__title .muted {
  color: var(--on-dark-muted);
}

.hero__title .accent {
  color: var(--sky);
}

.hero__lead {
  max-width: 820px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.hero__lead--sm {
  font-size: clamp(15px, 1.4vw, 18px);
}

.hero__lead b {
  color: var(--white);
}

/* Página inicial */
.hero--home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  align-items: center;
  gap: 72px;
}

.hero--home .hero__text {
  gap: 22px;
}

.hero--home .hero__lead {
  max-width: 600px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}

.featured {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.featured__thumb {
  display: block;
  height: 230px;
  flex-shrink: 0;
}

.featured__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.featured__title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.featured__title a,
.featured__title a:hover {
  color: var(--white);
}

.featured__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.featured__foot {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.featured .read-time {
  font-size: 13px;
  color: var(--on-dark-soft);
}

.featured .link-arrow,
.featured .link-arrow:hover {
  color: var(--sky);
}

/* Categoria */
.hero--split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.hero--split .hero__text {
  max-width: 820px;
}

.hero__badge {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 28px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Autor */
.author-hero {
  display: flex;
  align-items: center;
  gap: 32px;
}

.author-hero__avatar {
  width: 136px;
  height: 136px;
  flex-shrink: 0;
  border: 4px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--white);
  background-clip: padding-box;
  object-fit: cover;
}

.author-hero__info {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.social-btn {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-btn:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Artigo */
.hero--article {
  gap: 20px;
}

.hero--article > * {
  max-width: 920px;
}

.post-author {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-author img {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  object-fit: cover;
}

.post-author__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-author__name,
.post-author__name:hover {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.post-author__dates {
  font-size: 13px;
  color: var(--on-dark-soft);
}

/* 404 e estados sem resultado */
.hero--center {
  align-items: center;
  gap: 20px;
  text-align: center;
}

.hero--center .hero__lead {
  max-width: 680px;
}

.hero--center .searchbox {
  max-width: 640px;
  margin-top: 12px;
  text-align: left;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(96px, 14vw, 180px);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
}

.error-code span {
  color: var(--orange);
}

.empty-icon {
  width: 104px;
  height: 104px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: var(--glass);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-link,
.back-link:hover {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sky);
}

.tiles {
  position: relative;
  max-width: var(--max);
  margin: 64px auto 0;
  padding: 0 var(--page-pad);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 14px;
}

.tile:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.tile__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tile__text b {
  font-size: 16px;
}

.tile__text span {
  font-size: 13px;
  color: var(--on-dark-muted);
}

.tile > svg {
  color: var(--sky);
}

@media (max-width: 1100px) {
  .hero--home {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .featured {
    max-width: 640px;
  }
}

@media (max-width: 1024px) {
  .hero__badge {
    display: none;
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .band {
    --hero-gap: 36px;
    padding-bottom: 48px;
  }

  .band--tall {
    --hero-gap: 40px;
  }

  /* Busca do hero: o botão desce para baixo do campo, com 100% da largura */
  .searchbox--light {
    height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .searchbox--light:focus-within {
    outline: 0;
  }

  .searchbox__field {
    height: 52px;
    padding: 0 14px;
    border-radius: 14px;
    background: var(--white);
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .searchbox__field:focus-within {
    outline: 2px solid var(--sky);
    outline-offset: 2px;
  }

  .searchbox--light button {
    width: 100%;
    min-height: 48px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }

  .featured__thumb {
    height: 190px;
  }

  .featured__body {
    padding: 18px;
  }

  .featured__title {
    font-size: 22px;
  }

  .author-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .author-hero__avatar {
    width: 96px;
    height: 96px;
  }

  .tiles {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
    gap: 10px;
  }

  .tile {
    padding: 14px;
  }
}

/* ---------- Seções e cards ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-gap) var(--page-pad) 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section--last {
  padding-bottom: var(--section-gap);
}

.section-bg {
  margin-bottom: var(--section-gap);
  background: var(--surface);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.section__titles {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.section__aside {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 14px;
  color: var(--muted);
}

.section__aside b {
  color: var(--ink);
}

.no-posts {
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 20px;
}

.cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.latest {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card__thumb {
  display: block;
  height: 200px;
  flex-shrink: 0;
  background: var(--surface);
}

.card--lg .card__thumb {
  height: 280px;
}

.card__thumb img,
.featured__thumb img,
.row__thumb img,
.side-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card--lg .card__body {
  padding: 24px;
}

.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.card__title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.card--lg .card__title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.card__title a {
  color: var(--ink);
  transition: color 0.2s ease;
}

.card__title a:hover {
  color: var(--blue);
}

.card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.card--lg .card__excerpt {
  font-size: 15px;
}

.card__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--track);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card--lg .card__foot {
  padding-top: 16px;
}

.card__foot--end {
  justify-content: flex-end;
}

.byline {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.byline img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

/* Chamada para a Yuha! */
.cta {
  padding: 40px 48px;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    80% 120% at 100% 0%,
    var(--navy-700) 0%,
    var(--navy-900) 65%
  );
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta__text {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta__eyebrow,
.newsletter__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--on-dark-soft);
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.cta__text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.cta__actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Filtro de categoria da página inicial: o Select da Capa (visual do Select da dash) */
.select {
  position: relative;
  width: 300px;
  max-width: 100%;
}

.select__trigger {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.select__trigger:hover {
  border-color: var(--blue);
}

.select__trigger:focus-visible,
.select__trigger[aria-expanded="true"] {
  outline: 0;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-50);
}

.select__label {
  font-size: 12px;
  font-weight: 600;
}

.select__value {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.select__arrow {
  display: flex;
  transition: transform 0.2s ease;
}

.select__trigger[aria-expanded="true"] .select__arrow {
  transform: rotate(180deg);
}

.select__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 280px;
  margin: 0;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-menu);
  list-style: none;
  overflow-y: auto;
  animation: menu-in 0.16s ease-out;
}

.select__list a {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.select__list a:hover,
.select__list a:focus-visible {
  outline: 0;
  background: var(--surface-2);
}

.select__list a[aria-current="true"] {
  background: var(--blue-50);
  color: var(--blue);
  font-weight: 600;
}

/* Paginação */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination .page-numbers {
  min-width: 32px;
  height: 32px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination a.page-numbers:hover {
  background: var(--surface);
}

.pagination .page-numbers.current {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 700;
}

.pagination .page-numbers.dots {
  color: var(--muted);
}

/* Lista numerada da busca */
.rows {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.row {
  padding: 20px 24px;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 20px;
}

.row + .row {
  border-top: 1px solid var(--line);
}

.row__num {
  width: 44px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
}

.row:first-child .row__num {
  color: var(--orange);
}

.row__thumb {
  display: block;
  width: 160px;
  height: 104px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.row__thumb .thumb-ph {
  background-size: 24px 24px;
}

.row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.row__title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

.row__title a {
  color: var(--ink);
}

.row__title a:hover {
  color: var(--blue);
}

.row__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .cta {
    padding: 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

@media (max-width: 1024px) {
  .cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Slider do tablet e do celular, no padrão da Capa: rolagem horizontal com snap,
     encostada nas bordas da tela, com a barra de rolagem global */
  .slider {
    margin: 0 calc(-1 * var(--page-pad));
    padding: 4px var(--page-pad) 12px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--page-pad);
    overscroll-behavior-x: contain;
  }

  .slider .cards {
    display: contents;
  }

  .slider .card {
    flex: 0 0 min(300px, 84%);
    scroll-snap-align: start;
  }

  /* Dentro do slider a entrada é só fade */
  .slider [data-reveal][data-reveal] {
    transform: none;
  }

  .slider .card--lg .card__thumb {
    height: 200px;
  }

  .slider .card--lg .card__body {
    padding: 20px;
  }

  .slider .card--lg .card__title {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: 0;
  }

  .slider .card--lg .card__excerpt {
    font-size: 14px;
  }

  .row__thumb {
    width: 120px;
    height: 84px;
  }
}

@media (max-width: 800px) {
  .row {
    flex-wrap: wrap;
  }

  .row__num {
    width: auto;
  }

  .row__body {
    flex-basis: calc(100% - 200px);
  }
}

@media (max-width: 640px) {
  .cards--2,
  .cards--3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .card--lg .card__thumb {
    height: 200px;
  }

  .card--lg .card__body {
    padding: 20px;
  }

  .card--lg .card__title {
    font-size: 22px;
  }

  .cta {
    padding: 24px;
  }

  .cta__actions,
  .cta__actions .btn {
    width: 100%;
  }

  .select {
    width: 100%;
  }

  .pagination .page-numbers {
    min-width: 40px;
    height: 40px;
  }

  .row {
    padding: 16px;
    gap: 12px;
  }

  .row__thumb {
    display: none;
  }

  .row__body {
    flex-basis: calc(100% - 60px);
  }

  .row .btn {
    width: 100%;
  }
}

/* ---------- Artigo ---------- */

.article {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-gap) var(--page-pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 64px;
}

.article--page {
  grid-template-columns: minmax(0, 860px);
}

.article__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article__aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Conteúdo vindo do editor do WordPress */
.entry-content {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  overflow-wrap: break-word;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 0;
}

.entry-content > * + * {
  margin-top: 24px;
}

.entry-content > p:first-child {
  font-size: 20px;
  line-height: 1.7;
  color: var(--ink);
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--ink);
  font-weight: 700;
}

.entry-content h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.entry-content h3 {
  font-size: 22px;
  line-height: 1.3;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-size: 18px;
  line-height: 1.4;
}

.entry-content > * + h2 {
  margin-top: 40px;
}

.entry-content > * + h3,
.entry-content > * + h4 {
  margin-top: 32px;
}

.entry-content b,
.entry-content strong {
  color: var(--ink);
}

.entry-content a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 24px;
}

.entry-content li + li {
  margin-top: 12px;
}

.entry-content li::marker {
  color: var(--blue);
  font-weight: 700;
}

.entry-content blockquote {
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--blue);
  color: var(--ink);
  font-size: 20px;
}

.entry-content img {
  border-radius: var(--radius-md);
}

.entry-content figure {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.entry-content figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.entry-content iframe,
.entry-content video {
  max-width: 100%;
}

.entry-content .wp-block-table {
  overflow-x: auto;
}

.entry-content table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
}

.entry-content th,
.entry-content td {
  padding: 14px 18px;
  border: 0;
  text-align: left;
  vertical-align: top;
}

.entry-content tr + tr > *,
.entry-content thead + tbody > tr:first-child > * {
  border-top: 1px solid var(--track);
}

.entry-content th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* Sumário (plugin Easy Table of Contents) */
.entry-content #ez-toc-container {
  width: 100%;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  box-shadow: none;
}

.entry-content #ez-toc-container .ez-toc-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.entry-content #ez-toc-container a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.entry-content #ez-toc-container a:hover {
  color: var(--blue);
}

.entry-content #ez-toc-container ul {
  padding-left: 0;
}

.entry-content #ez-toc-container ul ul {
  padding-left: 24px;
}

.entry-content #ez-toc-container ul ul a {
  font-size: 14px;
  font-weight: 500;
}

.entry-content #ez-toc-container li + li {
  margin-top: 8px;
}

/* Tags, compartilhamento e autor */
.post-foot {
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.share {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share__btn {
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.share__btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.share__btn.is-copied {
  padding: 0 12px;
  border-color: var(--green);
  background: var(--green-50);
  color: var(--green);
}

.author-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.author-box img {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.author-box__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.author-box__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.author-box__text p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.author-box .link-arrow {
  margin-top: 4px;
}

/* Newsletter ([form_rd]): na lateral fica em coluna; dentro do conteúdo, em linha */
.newsletter {
  padding: 24px;
  border-radius: var(--radius-md);
  background: radial-gradient(
    120% 90% at 100% 0%,
    var(--navy-700) 0%,
    var(--navy-900) 65%
  );
  color: var(--white);
  font-size: 14px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.newsletter .newsletter__eyebrow {
  font-size: 11px;
}

.newsletter .newsletter__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--white);
}

.newsletter .newsletter__text {
  margin: 0;
  font-size: 14px;
  color: var(--on-dark-muted);
}

.newsletter__form,
.newsletter__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark);
}

.newsletter input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
}

.newsletter input::placeholder {
  color: var(--subtle);
}

.newsletter .btn {
  min-height: 46px;
  margin-top: 4px;
}

.newsletter .btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.newsletter .newsletter__msg {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.newsletter .newsletter__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--on-dark-soft);
}

.newsletter .newsletter__note a {
  color: var(--on-dark);
  font-weight: 700;
  text-decoration: none;
}

.entry-content .newsletter {
  padding: 28px;
  gap: 16px;
}

@media (min-width: 900px) {
  .entry-content .newsletter__fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
  }

  .entry-content .newsletter .btn {
    margin-top: 0;
  }
}

/* Últimos artigos (lateral) */
.side-list {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-list__title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
}

.side-item {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.side-item + .side-item {
  border-top: 1px solid var(--track);
}

.side-item__thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.side-item__thumb .thumb-ph {
  background-size: 18px 18px;
}

.side-item__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-item__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--blue);
}

.side-item__title {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}

.side-item:hover .side-item__title {
  color: var(--blue);
}

@media (max-width: 1100px) {
  .article {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .entry-content {
    font-size: 17px;
  }

  .entry-content > p:first-child {
    font-size: 18px;
  }

  .entry-content th,
  .entry-content td {
    padding: 12px 14px;
  }

  .author-box {
    padding: 20px;
    gap: 14px;
  }

  .author-box img {
    width: 48px;
    height: 48px;
  }
}

/* ---------- Rodapé ---------- */

/* O respiro acima do rodapé vem da última seção de cada página */
.site-footer {
  padding: 0 var(--gutter) var(--gutter);
}

.site-footer__box {
  max-width: calc(var(--max) - 80px);
  margin: 0 auto;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr);
  gap: 48px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
}

.site-footer__col:first-child {
  gap: 16px;
}

.site-footer__logo {
  display: block;
  width: auto;
  height: 30px;
  filter: brightness(0) invert(1);
}

.site-footer__col p {
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.site-footer__col a {
  color: var(--on-dark);
}

.site-footer__col a:hover {
  color: var(--white);
}

.site-footer__social {
  display: flex;
  gap: 8px;
}

.site-footer__social a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.site-footer__social a:hover {
  background: var(--glass);
  color: var(--white);
}

.site-footer__bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--on-dark-faint);
}

@media (max-width: 1100px) {
  .site-footer__box {
    padding: 36px;
  }
}

@media (max-width: 1000px) {
  .site-footer__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .site-footer__box {
    padding: 24px;
    border-radius: var(--radius-md);
  }

  .site-footer__cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
