/* Inter 4.1, self-hosted under the SIL Open Font License. */
@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
}

:root {
  --font-sans: "InterVariable", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-label: .75rem;
  --text-meta: .875rem;
  --text-card: 1rem;
  --text-body-mobile: 1.125rem;
  --text-body-desktop: 1.25rem;
  --text-lead-mobile: 1.125rem;
  --text-lead-desktop: 1.25rem;
  --leading-body: 1.6;
  --leading-ui: 1.55;
  --color-accent: #1769d2;
  --color-accent-strong: #0f56bf;
  --color-text: #18243a;
  --color-text-muted: #5f6f85;
  --color-line: #e4eaf2;
  --blue: #1769d2;
  --blue-dark: #0f56bf;
  --blue-soft: #edf5ff;
  --blue-faint: #f7fbff;
  --ink: var(--color-text);
  --muted: var(--color-text-muted);
  --line: var(--color-line);
}

.logo img,
.mobile-panel-head img,
.footer-brand img {
  height: auto;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.footer-social-link {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  color: #dce6f2;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.footer-social-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.footer-social-link:hover {
  border-color: rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  transform: translateY(-1px);
}

.footer-social-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-color: transparent;
  color: #fff;
}

.site-footer .footer-col > a {
  color: #c9d5e3;
  background-color: #16263f;
}

.search-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 84px 20px 24px;
  background: rgba(21, 34, 54, .38);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.live-search {
  width: min(680px, 100%);
  max-height: min(650px, calc(100vh - 108px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .76);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(17, 34, 61, .24);
  transform: translateY(-8px) scale(.992);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.search-overlay.open .live-search {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.live-search-top {
  min-height: 54px;
  padding: 0 16px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #edf1f6;
}

.live-search-label {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.close-search {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.close-search:hover { background: #f3f6fa; color: var(--ink); }

.live-search-field {
  margin: 16px 18px 0;
  min-height: 52px;
  padding: 0 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid #dce4ee;
  border-radius: 13px;
  background: #fff;
}

.live-search-field:focus-within {
  border-color: #91b4e7;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, .08);
}

.live-search-field input {
  min-width: 0;
  height: 50px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.live-search-body {
  max-height: 500px;
  overflow: auto;
  padding: 0 18px 15px;
}

.search-hint {
  padding: 14px 3px 8px;
  color: #8995a5;
  font-size: var(--text-label);
  font-weight: 700;
}

.quick-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 4px;
}

.quick-searches button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #637185;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.live-results { display: grid; }

.live-result {
  width: 100%;
  min-height: 68px;
  padding: 11px 8px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #edf1f6;
  color: inherit;
  text-decoration: none;
}

.live-result:hover,
.live-result:focus-visible { background: #f8fafc; }

.live-result-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eef5ff;
  color: var(--blue);
}

.live-result small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: var(--text-label);
  font-weight: 650;
}

.live-result strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 760;
}

.live-result-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
}

.live-empty {
  display: none;
  padding: 28px 8px 22px;
  text-align: center;
  color: var(--muted);
  font-size: var(--text-meta);
}

.view-all {
  display: none;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 11px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: var(--text-meta);
  font-weight: 800;
  text-decoration: none;
}

body.mcg-modal-open { overflow: hidden; }

.card-link { display: contents; color: inherit; text-decoration: none; }

.mcg-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.popular-link {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #637185;
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
}

a.suggest-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.form-error {
  margin: 14px 0 0;
  color: #b42318;
  font-size: 13px;
}

/* Links editoriais seguem o mesmo padrão visual dos artigos. */
:where(.article-content, .page-content) p a:not([class]),
:where(.article-content, .page-content) blockquote a:not([class]),
:where(.article-content, .page-content) :where(ul, ol):not(.mcg-sources-list) a:not([class]) {
  color: var(--blue);
  text-decoration-line: underline;
  text-decoration-color: rgba(23, 105, 210, .48);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
  text-decoration-skip-ink: auto;
  transition: color .16s ease, text-decoration-color .16s ease, text-decoration-thickness .16s ease;
}

:where(.article-content, .page-content) p a:not([class]):hover,
:where(.article-content, .page-content) p a:not([class]):focus-visible,
:where(.article-content, .page-content) blockquote a:not([class]):hover,
:where(.article-content, .page-content) blockquote a:not([class]):focus-visible,
:where(.article-content, .page-content) :where(ul, ol):not(.mcg-sources-list) a:not([class]):hover,
:where(.article-content, .page-content) :where(ul, ol):not(.mcg-sources-list) a:not([class]):focus-visible {
  color: var(--blue-dark);
  text-decoration-color: currentColor;
  text-decoration-thickness: .12em;
}

:where(.article-content, .page-content) p a:not([class]):focus-visible,
:where(.article-content, .page-content) blockquote a:not([class]):focus-visible,
:where(.article-content, .page-content) :where(ul, ol):not(.mcg-sources-list) a:not([class]):focus-visible {
  outline: 3px solid rgba(23, 105, 224, .24);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Card editorial compartilhado pela Home e pelo diretório de temas. */
.topic-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce6f1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 13px 32px rgba(28, 53, 91, .07);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: #b9cee6;
  box-shadow: 0 20px 42px rgba(28, 53, 91, .12);
}

.topic-card > a {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.topic-card > a:focus-visible {
  outline: 4px solid var(--color-accent, #1769d2);
  outline-offset: -4px;
  border-radius: 22px;
}

.topic-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #e7f0fd, #bed4ef);
}

.topic-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(9, 24, 45, .12));
}

.topic-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.topic-card:hover .topic-card-media img {
  transform: scale(1.035);
}

.topic-card-media--fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, .65), transparent 25%),
    linear-gradient(145deg, #e2edff, #8cb5ee);
}

.topic-card-media--fallback svg {
  width: 42%;
  fill: none;
  stroke: rgba(16, 72, 145, .72);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-card-body {
  flex: 1;
  padding: 20px 21px 21px;
  display: flex;
  flex-direction: column;
}

.topic-card h3 {
  margin: 0;
  color: var(--color-text, #172338);
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -.03em;
}

.topic-card p {
  margin: 9px 0 19px;
  color: var(--color-text-muted, #5f6f85);
  font-size: 14px;
  line-height: 1.62;
}

.topic-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-accent, #1769d2);
  font-size: var(--text-meta, 14px);
  font-weight: 850;
}

.topic-card-link span {
  transition: transform .18s ease;
}

.topic-card:hover .topic-card-link span {
  transform: translateX(3px);
}

.mcg-needs-mobile-menu .menu-button { display: none; }

.mcg-needs-mobile-menu .mobile-panel {
  position: fixed;
  z-index: 80;
  inset: 0 0 0 auto;
  width: min(360px, 88vw);
  height: 100vh;
  padding: 23px;
  background: #fff;
  box-shadow: -18px 0 55px rgba(15, 32, 59, .16);
  transform: translateX(105%);
  transition: transform .2s ease;
}

.mcg-needs-mobile-menu .mobile-panel.open { transform: translateX(0); }

.mcg-needs-mobile-menu .mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mcg-needs-mobile-menu .mobile-panel-head img { width: 153px; height: auto; }

.mcg-needs-mobile-menu .mobile-panel nav {
  display: grid;
  margin-top: 30px;
}

.mcg-needs-mobile-menu .mobile-panel nav a {
  padding: 14px 3px;
  border-bottom: 1px solid var(--line);
  color: #425168;
  font-weight: 800;
  text-decoration: none;
}

.mcg-needs-mobile-menu .backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(16, 29, 50, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.mcg-needs-mobile-menu .backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 720px) {
  .search-overlay { padding: 76px 10px 10px; }
  .live-search { max-height: calc(100vh - 86px); border-radius: 18px; }
  .live-search-top { min-height: 52px; padding: 0 11px 0 16px; }
  .live-search-field { margin: 13px 12px 0; }
  .live-search-body { padding: 0 12px 13px; }
}

@media (max-width: 1000px) {
  .mcg-needs-mobile-menu .main-nav { display: none; }
  .mcg-needs-mobile-menu .menu-button { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
