/*
 * MA Media — LP Base : CSS mínimo do esqueleto.
 * Propositadamente leve e ESCOPADO a .site-header / .site-main / .site-footer,
 * para não afetar o design das landings (que trazem o seu próprio CSS) mesmo
 * que este ficheiro carregue com a opção wp_head/wp_footer ligada.
 */

:root {
  --mm-ink: #14141a;
  --mm-bg: #ffffff;
  --mm-muted: #6b6b73;
  --mm-border: #e6e6e2;
  --mm-max: 1080px;
}
body.mode-dark {
  --mm-ink: #f0efe8;
  --mm-bg: #0d0d0f;
  --mm-muted: #a0a0a0;
  --mm-border: #26262a;
}

/* Só aplicamos base ao corpo quando NÃO é uma landing autónoma. */
body:not(.mamedia-landing) {
  margin: 0;
  background: var(--mm-bg);
  color: var(--mm-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.mm { max-width: var(--mm-max); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--mm-ink); color: var(--mm-bg);
  padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

.site-header {
  border-bottom: 1px solid var(--mm-border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 64px;
}
.site-title { font-weight: 600; text-decoration: none; color: inherit; }
.custom-logo { max-height: 44px; width: auto; height: auto; }

.site-nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: inherit; }
.site-nav a:hover { color: var(--mm-muted); }

.site-main { min-height: 40vh; }
.content-flow { padding-block: 40px; }
.content-flow img { max-width: 100%; height: auto; }
.entry-title { line-height: 1.15; }

.site-footer {
  border-top: 1px solid var(--mm-border);
  padding-block: 28px;
  color: var(--mm-muted);
  font-size: 14px;
}
.site-footer__inner { display: flex; flex-direction: column; gap: 12px; }
.footer-legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; }
.footer-legal a { color: inherit; text-decoration: none; }
.footer-legal a:hover { color: var(--mm-ink); }
.site-credit { margin: 0; }
.site-credit a { color: inherit; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
