/* Linha Direta — pixinfo.click | research-publication, purple + mint, flat compact */
:root {
  --purple: #7C3AED;
  --purple-dark: #6D28D9;
  --purple-soft: #EDE9FE;
  --mint: #D1FAE5;
  --mint-dark: #A7F3D0;
  --navy: #1E1B4B;
  --navy-mid: #312E81;
  --text: #1E1B4B;
  --text-muted: #4B5563;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --read: 42rem;
  --max: 72rem;
  --topbar-h: 3rem;
  --transition: 0.15s ease;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy-mid);
}

/* Compact topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  border-bottom: 2px solid var(--purple);
  height: var(--topbar-h);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo span {
  color: var(--mint);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.topbar-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 3px;
}

.topbar-nav a:hover,
.topbar-nav a[aria-current="page"] {
  color: var(--navy);
  background: var(--mint);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}

/* Main layout */
main {
  flex: 1;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero — compact */
.hero-compact {
  background: var(--mint);
  border-bottom: 1px solid var(--border);
}

.hero-compact-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 1.25rem;
  align-items: center;
}

.hero-compact img {
  border-radius: 4px;
  border: 1px solid var(--border);
}

.hero-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
  margin-bottom: 0.35rem;
}

.hero-compact h1 {
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.hero-compact h1 a {
  color: inherit;
  text-decoration: none;
}

.hero-compact h1 a:hover {
  color: var(--purple);
}

.hero-deck {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Editorial intro — narrow reading */
.editorial-intro {
  max-width: var(--read);
  margin: 0 auto;
  padding: 1.75rem 1rem 1rem;
}

.editorial-intro h2 {
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.editorial-intro p {
  font-size: 0.9375rem;
  margin-bottom: 0.85rem;
  color: var(--text);
}

.editorial-intro p:last-child {
  margin-bottom: 0;
}

/* Article stream — compact news */
.stream-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

.stream-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}

.stream-header h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
}

.stream-header a {
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.article-stream {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stream-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.stream-item:first-child {
  border-top: 1px solid var(--border);
}

.stream-thumb {
  width: 7rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.stream-category {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--purple);
  margin-bottom: 0.2rem;
}

.stream-item h3 {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.stream-item h3 a {
  color: var(--navy);
  text-decoration: none;
}

.stream-item h3 a:hover {
  color: var(--purple);
}

.stream-excerpt {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.stream-meta {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* Sidebar picks */
.layout-with-aside {
  display: grid;
  grid-template-columns: 1fr 16rem;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.aside-block {
  padding-top: 0.5rem;
}

.aside-block h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  border-bottom: 2px solid var(--purple);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}

.aside-list {
  list-style: none;
}

.aside-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.aside-list a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}

.aside-list a:hover {
  color: var(--purple);
}

.aside-list .aside-meta {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Page header */
.page-header {
  background: var(--purple-soft);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1rem;
}

.page-header-inner {
  max-width: var(--read);
  margin: 0 auto;
}

.page-header h1 {
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.page-header p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Narrow reading — articles & legal */
.reading {
  max-width: var(--read);
  margin: 0 auto;
  padding: 1.75rem 1rem 2.5rem;
}

.reading h2 {
  font-size: 1.125rem;
  color: var(--navy);
  margin: 1.5rem 0 0.6rem;
  font-weight: 700;
}

.reading h3 {
  font-size: 1rem;
  color: var(--navy);
  margin: 1.25rem 0 0.5rem;
  font-weight: 600;
}

.reading p,
.reading li {
  font-size: 0.9375rem;
  margin-bottom: 0.85rem;
}

.reading ul,
.reading ol {
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}

.reading li {
  margin-bottom: 0.35rem;
}

/* Article page */
.article-header {
  max-width: var(--read);
  margin: 0 auto;
  padding: 1.75rem 1rem 0;
}

.article-category {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--purple);
  margin-bottom: 0.4rem;
}

.article-header h1 {
  font-size: 1.625rem;
  line-height: 1.25;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.article-deck {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.article-byline img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.byline-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.byline-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.byline-dates {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

.article-figure {
  max-width: var(--read);
  margin: 0 auto 1.25rem;
  padding: 0 1rem;
}

.article-figure img {
  border-radius: 4px;
  border: 1px solid var(--border);
  width: 100%;
}

.article-figure figcaption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

.article-body {
  max-width: var(--read);
  margin: 0 auto;
  padding: 0 1rem 2rem;
}

.article-body p {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.article-body h2 {
  font-size: 1.125rem;
  color: var(--navy);
  margin: 1.75rem 0 0.65rem;
  font-weight: 700;
}

.article-body blockquote {
  border-left: 3px solid var(--purple);
  padding: 0.5rem 0 0.5rem 1rem;
  margin: 1.25rem 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.related-strip {
  background: var(--mint);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1rem;
}

.related-strip-inner {
  max-width: var(--read);
  margin: 0 auto;
}

.related-strip h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.related-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.related-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}

.related-links a:hover {
  color: var(--purple);
}

/* Contact */
.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.contact-block dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--purple);
  margin-bottom: 0.2rem;
}

.contact-block dd {
  font-size: 0.9375rem;
  margin-bottom: 0.85rem;
}

.contact-block dd:last-child {
  margin-bottom: 0;
}

.contact-block a {
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  margin-top: auto;
  padding: 1.5rem 1rem;
  font-size: 0.8125rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand .site-logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mint);
  margin-bottom: 0.5rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.3rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.8125rem;
}

.footer-nav a:hover {
  color: var(--mint);
}

.footer-bottom {
  max-width: var(--max);
  margin: 1.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Cookie notice */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  border-top: 2px solid var(--purple);
}

.cookie-notice.is-visible {
  transform: translateY(0);
}

.cookie-notice-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-notice p {
  font-size: 0.8125rem;
  flex: 1;
  min-width: 14rem;
}

.cookie-notice a {
  color: var(--mint);
}

.cookie-notice__btn {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.cookie-notice__btn:hover {
  background: var(--purple-dark);
}

/* Articles listing page */
.articles-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
}

.articles-grid .article-stream {
  gap: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .topbar-nav {
    display: none;
    position: absolute;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 0.5rem;
    border-bottom: 2px solid var(--purple);
  }

  .topbar-nav.is-open {
    display: flex;
  }

  .topbar-nav a {
    display: block;
    width: 100%;
    padding: 0.6rem 0.75rem;
  }

  .topbar-inner {
    position: relative;
  }

  .hero-compact-inner {
    grid-template-columns: 1fr;
  }

  .layout-with-aside {
    grid-template-columns: 1fr;
  }

  .stream-item {
    grid-template-columns: 5rem 1fr;
  }

  .stream-thumb {
    width: 5rem;
    height: 3.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .article-byline {
    flex-wrap: wrap;
  }

  .byline-dates {
    margin-left: 0;
    width: 100%;
    text-align: left;
    padding-top: 0.25rem;
  }
}
