/* Trimestral BR — business-digest / professional-editorial */
:root {
  --primary: #5E548E;
  --accent: #9F86C0;
  --bg: #F2ECF4;
  --text: #231942;
  --muted: #8A7BA8;
  --white: #ffffff;
  --slate-100: #e8e4ed;
  --slate-200: #d4cede;
  --slate-300: #b8afc8;
  --shadow-sm: 0 2px 8px rgba(35, 25, 66, 0.08);
  --shadow-md: 0 4px 16px rgba(35, 25, 66, 0.12);
  --shadow-lg: 0 8px 32px rgba(35, 25, 66, 0.16);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --container: 1140px;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Georgia", serif;
  --header-height: 120px;
  --header-height-shrink: 72px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

a:hover {
  color: var(--accent);
}

ul, ol {
  list-style: none;
}

/* Typography — mixed-newsroom */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: var(--space-sm);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Layout — 12-col-classic, container 1140px */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-md);
}

.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-12 { grid-column: span 12; }

main {
  flex: 1;
  padding: var(--space-lg) 0 var(--space-xl);
}

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

/* Header — double-row-nav, sticky-shrink-on-scroll */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--transition);
}

.site-header.is-shrunk {
  box-shadow: var(--shadow-md);
}

.header-top {
  background: var(--primary);
  color: var(--white);
  font-size: 0.8125rem;
  padding: var(--space-xs) 0;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top a {
  color: var(--white);
  opacity: 0.9;
}

.header-top a:hover {
  opacity: 1;
  color: var(--white);
}

.header-date {
  font-variant-numeric: tabular-nums;
}

.header-main {
  padding: var(--space-sm) 0;
  transition: padding var(--transition);
}

.site-header.is-shrunk .header-main {
  padding: var(--space-xs) 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

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

.logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  transition: font-size var(--transition);
}

.site-header.is-shrunk .logo-text {
  font-size: 1.375rem;
}

.logo-tagline {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  transition: opacity var(--transition), height var(--transition);
}

.site-header.is-shrunk .logo-tagline {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--primary);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: var(--transition);
}

.main-nav ul {
  display: flex;
  gap: var(--space-md);
}

.main-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.header-nav-row {
  border-top: 1px solid var(--slate-100);
  padding: var(--space-xs) 0;
}

.header-nav-row .container {
  display: flex;
  justify-content: center;
}

.secondary-nav ul {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
}

.secondary-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.secondary-nav a:hover {
  color: var(--primary);
}

/* Hero — carousel-single, no autoplay */
.hero-carousel {
  position: relative;
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  display: none;
  position: relative;
}

.hero-slide.is-active {
  display: block;
}

.hero-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--slate-200);
}

.hero-image img,
.hero-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg);
  background: linear-gradient(transparent, rgba(35, 25, 66, 0.85));
  color: var(--white);
}

.hero-content h2 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: var(--space-xs);
}

.hero-content h2 a {
  color: var(--white);
}

.hero-content h2 a:hover {
  color: var(--accent);
}

.hero-content .meta {
  font-size: 0.875rem;
  opacity: 0.85;
}

.hero-controls {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  display: flex;
  gap: var(--space-xs);
  z-index: 2;
}

.hero-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.hero-btn:hover {
  background: var(--accent);
}

.hero-dots {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  padding: var(--space-sm);
  background: var(--white);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--slate-200);
  cursor: pointer;
  transition: background var(--transition);
}

.hero-dot.is-active {
  background: var(--primary);
}

/* Tags — uppercase-small */
.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--slate-100);
  padding: 3px var(--space-xs);
  border-radius: var(--radius-sm);
  margin-right: var(--space-xs);
  margin-bottom: var(--space-xs);
}

/* Cards — shadowed */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Article list — horizontal-rows */
.article-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-md);
  padding: var(--space-md);
  border-bottom: 1px solid var(--slate-100);
  align-items: start;
}

.article-row:last-child {
  border-bottom: none;
}

.article-row-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--slate-200);
}

.article-row-thumb img,
.article-row-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-row-body h3 {
  margin-bottom: var(--space-xs);
}

.article-row-body h3 a {
  color: var(--text);
}

.article-row-body h3 a:hover {
  color: var(--primary);
}

.article-row-excerpt {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: var(--space-xs);
}

/* Author — inline-byline */
.byline {
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.byline-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.byline-avatar img,
.byline-avatar svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.byline-author {
  font-weight: 600;
  color: var(--text);
}

.byline-sep {
  color: var(--slate-300);
}

/* Homepage — editorial-columns */
.editorial-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-lg);
}

.editorial-main .section-title {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 3px solid var(--primary);
}

/* Sidebar — right-rail */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
}

.sidebar-widget h3 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--accent);
}

.sidebar-list li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.875rem;
}

.sidebar-list li:last-child {
  border-bottom: none;
}

.sidebar-list a {
  color: var(--text);
  font-weight: 500;
}

.sidebar-list a:hover {
  color: var(--primary);
}

.sidebar-list .date {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.sidebar-text {
  font-size: 0.875rem;
  margin-bottom: var(--space-sm);
}

/* Article page — split-content-rail */
.article-header {
  margin-bottom: var(--space-lg);
}

.article-header h1 {
  font-size: 2.5rem;
  margin: var(--space-sm) 0;
}

.article-hero-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.article-hero-image img,
.article-hero-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-xl);
  align-items: start;
}

.article-content {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: var(--space-lg) 0 var(--space-sm);
}

.article-content h3 {
  font-size: 1.2rem;
  margin: var(--space-md) 0 var(--space-xs);
}

.article-content ul,
.article-content ol {
  margin: var(--space-sm) 0 var(--space-sm) var(--space-md);
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: var(--space-xs);
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--slate-100);
  font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-rail {
  position: sticky;
  top: calc(var(--header-height-shrink) + var(--space-md));
}

.rail-box {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.rail-box h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.rail-stat {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.875rem;
}

.rail-stat:last-child {
  border-bottom: none;
}

.rail-stat .label {
  color: var(--muted);
}

.rail-stat .value {
  font-weight: 700;
  color: var(--primary);
}

/* Buttons — filled-accent */
.btn {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-align: center;
}

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

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

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

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

/* Page headers */
.page-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--slate-200);
}

.page-header h1 {
  margin-bottom: var(--space-xs);
}

/* Static pages content */
.static-content {
  max-width: 780px;
}

.static-content h2 {
  font-size: 1.375rem;
  margin: var(--space-lg) 0 var(--space-sm);
}

.static-content ul {
  margin: var(--space-sm) 0 var(--space-sm) var(--space-md);
  list-style: disc;
}

.static-content li {
  margin-bottom: var(--space-xs);
}

/* Contact form */
.contact-form {
  max-width: 560px;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* Articles listing page */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.articles-grid .card {
  margin-bottom: var(--space-sm);
}

/* Footer — three-column */
.site-footer {
  background: var(--text);
  color: var(--slate-200);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-col h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: var(--space-sm);
}

.footer-col p,
.footer-col li {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: var(--space-xs);
}

.footer-col a {
  color: var(--slate-200);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.8125rem;
}

/* Cookie — bottom-bar */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--text);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform var(--transition);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

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

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

.cookie-text {
  font-size: 0.875rem;
  flex: 1;
  min-width: 200px;
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

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

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

/* Section spacing utilities */
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-md { margin-top: var(--space-md); }

/* Media Queries */
@media (max-width: 1024px) {
  .editorial-columns {
    grid-template-columns: 1fr;
  }

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

  .article-rail {
    position: static;
  }

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

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    display: none;
    padding: var(--space-sm);
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: var(--space-sm);
    border-bottom: 1px solid var(--slate-100);
  }

  .header-nav-row {
    display: none;
  }

  .header-main .container {
    position: relative;
  }

  .article-row {
    grid-template-columns: 1fr;
  }

  .article-row-thumb {
    max-width: 100%;
  }

  .hero-content h2 {
    font-size: 1.25rem;
  }

  .hero-content {
    padding: var(--space-md);
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .col-8, .col-4 {
    grid-column: span 12;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-xs);
  }

  main {
    padding: var(--space-md) 0 var(--space-lg);
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    width: 100%;
    justify-content: center;
  }

  .hero-controls {
    display: none;
  }
}
