/* Blog — leitura concentrada + sidebar estilo app download */

:root {
  --blog-ink: #01031a;
  --blog-muted: #6b7280;
  --blog-paper: #f8f7f4;
  --blog-rule: #e8e6e1;
  --blog-accent: #2563eb;
  --blog-accent-soft: #dbeafe;
}

.blog-page-bg {
  background: var(--blog-paper);
}

.blog-article-page {
  background: #fff;
}

.blog-hero-band {
  background: linear-gradient(135deg, var(--blog-ink) 0%, #1e3a8a 55%, #0ea5e9 100%);
  color: #fff;
  padding: 2.5rem 1.5rem 3rem;
}

.blog-hero-band h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 42rem;
}

.blog-hero-band p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 36rem;
  margin-top: 0.75rem;
}

.blog-hub-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .blog-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  border: none;
  border-radius: 16px;
  padding: 0;
  background: #fff;
  box-shadow: 0 4px 24px rgba(1, 3, 26, 0.08);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(1, 3, 26, 0.12);
}

.blog-card-accent {
  height: 5px;
  width: 100%;
}

.blog-card-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.blog-card-featured {
  grid-column: 1 / -1;
  display: grid;
}

@media (min-width: 768px) {
  .blog-card-featured {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .blog-card-featured .blog-card-accent {
    height: 100%;
    width: 6px;
  }
  .blog-card-featured {
    flex-direction: row;
  }
}

.blog-cat-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.blog-layout {
  display: grid;
  gap: 2.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

@media (min-width: 1024px) {
  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

/* Artigo: coluna de leitura + sidebar fixa (21rem) */
.blog-article-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.blog-article-content {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

@media (min-width: 1024px) {
  .blog-article-wrap {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }

  .blog-article-content {
    max-width: 42rem;
  }
}

.blog-article-mast {
  width: 100%;
}

.blog-crumb {
  font-size: 0.8125rem;
  color: var(--blog-muted);
  margin-bottom: 1.25rem;
}

.blog-crumb a {
  color: var(--blog-muted);
  text-decoration: none;
}

.blog-crumb a:hover {
  color: var(--blog-ink);
  text-decoration: underline;
}

.blog-crumb span {
  margin: 0 0.4rem;
  opacity: 0.45;
}

.blog-article-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blog-muted);
  margin: 0 0 0.75rem;
}

.blog-article-num {
  margin-right: 0.5rem;
  color: #9ca3af;
}

.blog-article-mast h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--blog-ink);
  margin: 0;
}

.blog-article-page .blog-deck {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #374151;
  margin-top: 1rem;
  max-width: 38rem;
}

.blog-article-page .blog-byline {
  margin-top: 1.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--blog-rule);
  color: var(--blog-muted);
  font-size: 0.875rem;
}

.blog-article-page .blog-byline span[aria-hidden='true'] {
  opacity: 0.5;
}

.blog-article-page .blog-main {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  width: 100%;
  max-width: none;
}

.blog-article-header {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
}

.blog-article-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--blog-ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.blog-deck {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--blog-muted);
  margin-top: 1rem;
  font-weight: 400;
}

.blog-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1rem;
}

.blog-prose {
  font-size: 1.125rem;
  line-height: 1.85;
  color: #2d3748;
  font-variant-ligatures: common-ligatures;
}

.blog-article-page .blog-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blog-ink);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding: 0;
  border: none;
  letter-spacing: -0.01em;
}

.blog-prose h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blog-ink);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blog-ink);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.blog-prose p,
.blog-prose li {
  margin-bottom: 1rem;
}

.blog-prose ul,
.blog-prose ol {
  padding-left: 1.35rem;
  margin-bottom: 1.25rem;
}

.blog-prose a {
  color: #1e40af;
  text-decoration: underline;
  text-decoration-color: rgba(30, 64, 175, 0.35);
  text-underline-offset: 3px;
}

.blog-prose a:hover {
  text-decoration-color: rgba(30, 64, 175, 0.8);
}

.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.25rem 0;
}

.blog-prose th,
.blog-prose td {
  border: 1px solid #e5e7eb;
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.blog-prose th {
  background: #f3f4f6;
  font-weight: 600;
}

.blog-box {
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.98rem;
  line-height: 1.65;
}

.blog-article-page .blog-box {
  border-radius: 0;
  padding: 0.85rem 0 0.85rem 1rem;
  margin: 1.75rem 0;
  font-size: 1rem;
  line-height: 1.7;
  border-left: 2px solid var(--blog-rule);
  background: transparent;
  color: #4b5563;
}

.blog-article-page .blog-box strong {
  font-weight: 600;
  color: var(--blog-ink);
}

.blog-box-tip {
  background: #f9fafb;
  border: 1px solid var(--blog-rule);
  color: #374151;
}

.blog-disclaimer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--blog-rule);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #9ca3af;
}

.blog-disclaimer a {
  color: #6b7280;
}

/* Sidebar — navegação + app (nunca o corpo do artigo) */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .blog-sidebar {
    width: 21rem;
    position: sticky;
    top: 5.5rem;
  }
}

.blog-sidebar-nav ul {
  margin: 0;
}

.blog-sidebar-app {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 1.5rem;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(37, 99, 235, 0.45) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(14, 165, 233, 0.25) 0%, transparent 50%),
    linear-gradient(145deg, #020617 0%, #0f172a 50%, #1e3a8a 100%);
  box-shadow: 0 16px 48px rgba(1, 3, 26, 0.25);
}

.blog-sidebar-app::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  top: -40px;
  right: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}

.blog-sidebar-cta-primary {
  display: block;
  text-align: center;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  transition: transform 0.15s, box-shadow 0.15s;
}

.blog-sidebar-cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.55);
}

.blog-sidebar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.blog-sidebar-app h2 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.blog-sidebar-app h2 span {
  color: #93c5fd;
}

.blog-sidebar-app p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.blog-sidebar-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.blog-sidebar-chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.blog-store-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blog-ink) !important;
  text-decoration: none !important;
  border-radius: 12px;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  transition: transform 0.15s;
}

.blog-store-btn:hover {
  transform: scale(1.02);
}

.blog-store-btn strong {
  display: block;
  font-size: 0.95rem;
}

.blog-store-btn i {
  font-size: 1.5rem;
}

.blog-sidebar-web {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  padding: 0.6rem;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
}

.blog-sidebar-panel {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(1, 3, 26, 0.04);
}

.blog-sidebar-panel h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blog-muted);
  margin-bottom: 0.75rem;
}

.blog-sidebar-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-sidebar-panel li {
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.blog-sidebar-panel a {
  color: var(--blog-ink);
  text-decoration: none;
  font-weight: 500;
}

.blog-sidebar-panel a:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-damascode {
  color: var(--blog-ink);
}

/* Hub — índice calmo */
.blog-hub-page {
  background: var(--blog-paper);
}

.blog-hub-mast h1 {
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--blog-ink);
}

.blog-hub-lead {
  max-width: 36rem;
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #4b5563;
}

.blog-hub-lead a {
  color: #1e40af;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-hub-page .blog-hub-grid {
  margin-top: 0;
}

.blog-hub-grid-calm .blog-card {
  box-shadow: none;
  border: 1px solid var(--blog-rule);
  border-radius: 12px;
}

.blog-hub-grid-calm .blog-card:hover {
  transform: none;
  box-shadow: 0 4px 16px rgba(1, 3, 26, 0.06);
}

.blog-hub-grid-calm .blog-card-accent {
  height: 3px;
  opacity: 0.85;
}
