/* Gerado a partir de web/dms.BlzWasm/Pages/Artigo.razor.css — seletores ::deep removidos para CSS global no Roadmap. */
.art-page {
  --art-accent-from: #7c3aed;
  --art-accent-to: #d946ef;
  --art-page-bg: #ffffff;
  --art-text-dark: #0f172a;
  --art-text-muted: #475569;
  --art-text-soft: #64748b;
  --art-border: rgba(15, 23, 42, 0.08);
  --art-code-bg: #0b1020;
  --art-code-fg: #e2e8f0;
  --art-prose-max: 760px;
  background: var(--art-page-bg);
  color: var(--art-text-dark);
}

.art-grad {
  background: linear-gradient(90deg, var(--art-accent-from) 0%, var(--art-accent-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.art-grad-light {
  color: #fbcfe8;
}

.art-pill.pill-label,
.art-page--not-found .art-pill,
.art-page .art-pill {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(0.7rem, 0.95vw, 0.8rem);
  font-weight: 700;
  padding: 0.5rem 1.15rem;
  background: #f3e8ff;
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.1);
  margin-bottom: 1rem;
}

/* ---------- HERO ---------- */

.art-hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4.5rem, 8vw, 7rem);
  padding-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.art-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 18% 22%, rgba(124, 58, 237, 0.13) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 88% 78%, rgba(217, 70, 239, 0.1) 0%, transparent 58%);
  pointer-events: none;
  z-index: 0;
}

.art-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--art-prose-max);
}

.art-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  font-size: clamp(0.85rem, 1.05vw, 0.95rem);
  color: var(--art-text-soft);
}

.art-breadcrumb a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.art-breadcrumb a:hover,
.art-breadcrumb a:focus-visible {
  color: #6d28d9;
}

.art-breadcrumb-sep {
  color: var(--art-text-soft);
  opacity: 0.6;
}

.art-hero-title {
  font-family: var(--font-primary), system-ui, sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0.35rem 0 0.85rem;
  color: var(--art-text-dark);
}

.art-hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--art-text-muted);
  line-height: 1.65;
  margin: 0 0 1.4rem;
}

.art-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
  color: var(--art-text-soft);
  font-size: 0.92rem;
  margin: 0 0 0.85rem;
}

.art-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.art-meta-item i {
  color: #6d28d9;
}

.art-meta-sep {
  opacity: 0.5;
}

.art-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.art-tag {
  display: inline-block;
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.18);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* ---------- BODY / PROSE (HTML gerado por Markdig) ---------- */

.art-body {
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
  padding-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}

.art-body-inner {
  max-width: var(--art-prose-max);
}

.art-prose {
  font-size: clamp(1rem, 1.2vw, 1.06rem);
  line-height: 1.75;
  color: var(--art-text-dark);
}

.art-prose p {
  margin: 0 0 1.15rem;
  color: var(--art-text-dark);
}

.art-prose h2 {
  font-family: var(--font-primary), system-ui, sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--art-text-dark);
  margin: 2.5rem 0 1rem;
  scroll-margin-top: 5rem;
}

.art-prose h3 {
  font-family: var(--font-primary), system-ui, sans-serif;
  font-size: clamp(1.1rem, 1.55vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--art-text-dark);
  margin: 1.85rem 0 0.65rem;
  line-height: 1.3;
}

.art-prose strong {
  color: var(--art-text-dark);
  font-weight: 700;
}

.art-prose em {
  font-style: italic;
}

.art-prose a {
  color: #6d28d9;
  text-decoration: underline;
  text-decoration-color: rgba(124, 58, 237, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.art-prose a:hover,
.art-prose a:focus-visible {
  text-decoration-color: #6d28d9;
}

/* Inline code */
.art-prose p code,
.art-prose li code {
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  font-size: 0.88em;
  background: #f1f5f9;
  color: #6d28d9;
  padding: 0.12em 0.45em;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  white-space: nowrap;
}

/* Listas padrÃ£o (bullets gradiente) */
.art-prose ul,
.art-prose ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1.15rem;
}

.art-prose ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--art-text-dark);
}

.art-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--art-accent-from), var(--art-accent-to));
}

.art-prose ol {
  counter-reset: ol-counter;
}

.art-prose ol li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.4rem;
  counter-increment: ol-counter;
}

.art-prose ol li::before {
  content: counter(ol-counter) ".";
  position: absolute;
  left: 0;
  color: #6d28d9;
  font-weight: 700;
}

/* Code blocks (fenced ```) */
.art-prose pre {
  background: var(--art-code-bg);
  color: var(--art-code-fg);
  border-radius: 12px;
  padding: clamp(0.95rem, 1.5vw, 1.2rem) clamp(1rem, 1.6vw, 1.35rem);
  margin: 0 0 1.4rem;
  overflow-x: auto;
  font-size: 0.92rem;
  line-height: 1.55;
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  position: relative;
}

.art-prose pre::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, var(--art-accent-from), var(--art-accent-to));
  opacity: 0.7;
}

.art-prose pre code {
  font-family: "JetBrains Mono", "Fira Code", "Consolas", monospace;
  background: transparent;
  color: inherit;
  padding: 0;
  border: 0;
  border-radius: 0;
  white-space: pre;
  display: block;
}

/* Blockquote (> citaÃ§Ã£o) */
.art-prose blockquote {
  margin: 2.25rem 0;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(217, 70, 239, 0.04));
  border-left: 4px solid #7c3aed;
  border-radius: 10px;
  color: var(--art-text-muted);
  font-style: italic;
}

.art-prose blockquote p {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  line-height: 1.6;
}

.art-prose blockquote p:last-child {
  margin-bottom: 0;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 700;
  color: #6d28d9;
  letter-spacing: 0.02em;
}

/* ---------- CUSTOM CONTAINERS (Markdig :::name) ---------- */

/* :::lede â€” primeiro parÃ¡grafo destacado */
.art-prose .lede p {
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  color: var(--art-text-muted);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

/* :::warning â€” callout amarelo/laranja */
.art-prose .warning {
  display: block;
  padding: 1rem 1.15rem 1rem 3rem;
  position: relative;
  border-radius: 12px;
  border: 1px solid rgba(234, 88, 12, 0.25);
  background: #fff7ed;
  color: #7c2d12;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.97rem;
  line-height: 1.6;
}

.art-prose .warning::before {
  content: "\f071";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  color: #c2410c;
  font-size: 1rem;
}

.art-prose .warning p {
  margin: 0;
  color: inherit;
}

.art-prose .warning p + p {
  margin-top: 0.45rem;
}

/* :::note â€” barra lateral roxa (ðŸ“Œ) */
.art-prose .note {
  display: block;
  padding: 0.65rem 0.95rem 0.65rem 2.5rem;
  position: relative;
  background: #f5f3ff;
  border-left: 3px solid #7c3aed;
  border-radius: 8px;
  margin: 0.85rem 0 1.4rem;
  color: var(--art-text-dark);
  font-size: 0.95rem;
}

.art-prose .note::before {
  content: "\f08d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0.9rem;
  top: 0.85rem;
  color: #6d28d9;
}

.art-prose .note p {
  margin: 0;
}

/* :::checks â€” lista com check verde-roxo */
.art-prose .checks ul li {
  padding-left: 1.65rem;
}

.art-prose .checks ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  background: transparent;
  width: auto;
  height: auto;
  border-radius: 0;
  top: 0.3em;
  left: 0;
  color: #6d28d9;
  font-size: 0.85em;
}

/* :::compare â€” comparativo lado a lado */
.art-prose .compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin: 0 0 1.5rem;
}

.art-prose .compare-legacy,
.art-prose .compare-modern {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--art-border);
  border-radius: 14px;
  padding: 1.1rem 1.1rem 0.4rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.art-prose .compare-modern {
  border-color: rgba(124, 58, 237, 0.28);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.12);
}

.art-prose .compare-legacy p:first-child,
.art-prose .compare-modern p:first-child {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
}

.art-prose .compare-legacy p:first-child {
  background: #f1f5f9;
  color: var(--art-text-soft);
}

.art-prose .compare-modern p:first-child {
  background: linear-gradient(135deg, var(--art-accent-from), var(--art-accent-to));
  color: #ffffff;
}

.art-prose .compare-legacy p:first-child strong,
.art-prose .compare-modern p:first-child strong {
  font-weight: inherit;
  color: inherit;
}

/* :::decision-yes / :::decision-maybe */
.art-prose .decision-yes,
.art-prose .decision-maybe {
  display: block;
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid;
  margin: 0.75rem 0 1.25rem;
}

.art-prose .decision-yes {
  background: #ecfdf5;
  border-color: rgba(5, 150, 105, 0.22);
}

.art-prose .decision-maybe {
  background: #fff7ed;
  border-color: rgba(234, 88, 12, 0.25);
}

.art-prose .decision-yes p:first-child,
.art-prose .decision-maybe p:first-child {
  margin-bottom: 0.6rem;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.art-prose .decision-yes p:first-child {
  color: #047857;
}

.art-prose .decision-maybe p:first-child {
  color: #c2410c;
}

.art-prose .decision-yes p:first-child::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.art-prose .decision-maybe p:first-child::before {
  content: "\f071";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.art-prose .decision-yes ul li::before {
  background: #10b981;
}

.art-prose .decision-maybe ul li::before {
  background: #f59e0b;
}

/* :::impact â€” grid 3 cards */
.art-prose .impact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 0 1.5rem;
}

.art-prose .impact-card {
  background: #ffffff;
  border: 1px solid var(--art-border);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.art-prose .impact-card p:first-child {
  margin: 0 0 0.6rem;
  color: #6d28d9;
  font-size: 0.98rem;
}

.art-prose .impact-card ul li {
  font-size: 0.92rem;
}

/* ---------- LOADING ---------- */

.art-page--loading {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.art-loading {
  text-align: center;
  color: var(--art-text-muted);
}

.art-loading-spinner {
  display: inline-block;
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid rgba(124, 58, 237, 0.18);
  border-top-color: #7c3aed;
  border-radius: 50%;
  animation: art-spin 0.8s linear infinite;
  margin-bottom: 0.85rem;
}

.art-loading-text {
  margin: 0;
  font-size: 0.95rem;
}

@keyframes art-spin {
  to { transform: rotate(360deg); }
}

/* ---------- SHARE / CONECTE-SE ---------- */

.art-share {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  background: #f9fafb;
}

.art-share-inner {
  max-width: var(--art-prose-max);
}

.art-share-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.65rem;
  color: var(--art-text-dark);
}

.art-share-title i {
  color: #6d28d9;
}

.art-share-text {
  color: var(--art-text-muted);
  margin: 0 0 1rem;
  line-height: 1.65;
}

.art-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.art-share-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: #ffffff;
  color: var(--art-text-dark);
  border: 1px solid var(--art-border);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.art-share-link:hover,
.art-share-link:focus-visible {
  color: #6d28d9;
  border-color: rgba(124, 58, 237, 0.32);
  transform: translateY(-1px);
}

/* ---------- CTA FINAL ---------- */

.art-cta {
  padding-top: clamp(2.5rem, 4.5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 4.5vw, 3.5rem);
}

.art-cta-inner {
  background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 55%, #d946ef 100%);
  color: #ffffff;
  border-radius: clamp(20px, 3vw, 28px);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 24px 54px rgba(124, 58, 237, 0.3);
  text-align: center;
}

.art-cta-title {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.8rem;
}

.art-cta-sub {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
  margin: 0 auto clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 36rem;
}

.art-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.art-cta-link {
  text-decoration: none !important;
  display: inline-block;
}

.art-cta-btn {
  display: inline-block;
  background: #ffffff !important;
  color: #4c1d95 !important;
  border-radius: 999px;
  padding: clamp(0.85rem, 1.45vw, 1rem) clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  text-decoration: none !important;
}

.art-cta-btn:hover {
  filter: brightness(0.97);
  transform: translateY(-2px);
}

.art-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.92rem, 1.15vw, 1rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 0.12rem;
}

.art-cta-secondary:hover {
  color: #fbcfe8;
}

/* ---------- 404 ---------- */

.art-page--not-found {
  background: #f9fafb;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.art-not-found {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.art-not-found-title {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin: 0 0 0.5rem;
}

.art-not-found-text {
  color: var(--art-text-muted);
  margin: 0 0 1.75rem;
  line-height: 1.65;
}

.art-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: #ffffff;
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.25);
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.art-back:hover {
  background: #f5f3ff;
  transform: translateY(-1px);
}

.road-doc-back-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

/* ---------- RESPONSIVO ---------- */

@media (max-width: 720px) {
  .art-prose .impact,
  .art-prose .compare {
    grid-template-columns: 1fr;
  }

  .art-prose pre {
    font-size: 0.85rem;
  }
}

.art-prose h1 {
  font-family: var(--font-primary), system-ui, sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--art-text-dark);
  margin: 0 0 1rem;
  scroll-margin-top: 5rem;
}

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

.art-prose th,
.art-prose td {
  border: 1px solid var(--art-border);
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.art-prose th {
  background: rgba(124, 58, 237, 0.08);
  font-weight: 700;
}
