/* =====================================================
   Recursos · GD Pro — Shared styles
   Tokens herdados da landing (dark theme + Raleway)
   ===================================================== */
:root {
  --bg-0: #0f1113;
  --bg-1: #181818;
  --bg-2: #1a1c1f;
  --bg-3: #202327;
  --bg-4: #25292e;
  --line: #2e3136;
  --line-soft: rgba(255,255,255,0.06);

  --text-0: #ffffff;
  --text-1: #EBF1F3;
  --text-2: #e3e3e3;
  --text-3: #b7b7b7;
  --text-4: #a0aab4;
  --text-5: #7a8390;
  --text-6: #5a626c;

  --brand: #ff8521;
  --brand-2: #f5861e;
  --brand-3: #e07316;
  --brand-soft: rgba(255,133,33,0.12);
  --brand-line: rgba(255,133,33,0.25);

  --success: #28c840;
  --success-soft: rgba(40,200,64,0.12);
  --success-line: rgba(40,200,64,0.30);
  --danger: #dc3545;
  --info: #2196f3;
  --info-soft: rgba(33,150,243,0.12);

  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  --font: 'Raleway', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-1);
  color: var(--text-2);
  font-family: var(--font);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.highlighted-word { color: var(--brand); }

/* =====================================================
   HEADER (shared with landing)
   ===================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,17,19,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}
.brand-mark {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800;
}
.brand-mark img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--text-4);
  transition: color .2s;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.is-active { color: var(--brand); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 700;
}
.btn-ghost:hover { border-color: var(--text-5); color: var(--text-0); }
.btn-primary {
  background: var(--brand); color: #0a0c0e;
  padding: 9px 18px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px;
  border: none;
  letter-spacing: -0.01em;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 6px 18px rgba(255,133,33,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255,133,33,0.4);
}

/* =====================================================
   PAGE HERO — slim sub-page hero
   ===================================================== */
.r-hero {
  position: relative;
  padding: 64px 0 48px;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(255,133,33,0.10), transparent 55%),
    radial-gradient(50% 70% at 100% 0%, rgba(40,200,64,0.06), transparent 55%),
    var(--bg-1);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.r-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 100%, #000, transparent 80%);
  pointer-events: none;
}
.r-hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  gap: 18px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.r-crumb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--text-5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  justify-content: center;
}
.r-crumb a { color: var(--text-4); }
.r-crumb a:hover { color: var(--brand); }
.r-crumb i { font-size: 14px; }
.r-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-wrap: balance;
}
.r-hero h1 .acc { color: var(--brand); }
.r-hero p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-4);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Search bar in hero */
.r-search {
  position: relative;
  width: 100%; max-width: 560px;
  margin: 8px auto 0;
}
.r-search input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 14px 50px 14px 48px;
  color: var(--text-1);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .15s, background .15s;
}
.r-search input::placeholder { color: var(--text-5); }
.r-search input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg-3);
  box-shadow: 0 0 0 4px rgba(255,133,33,0.12);
}
.r-search i {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-5);
  pointer-events: none;
}
.r-search kbd {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-5);
  font-weight: 600;
  pointer-events: none;
}

/* =====================================================
   PAGE BODY
   ===================================================== */
.r-page { padding: 56px 0 80px; }
.r-section { margin-bottom: 56px; }
.r-section:last-child { margin-bottom: 0; }
.r-section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.r-section-title {
  display: flex; flex-direction: column; gap: 4px;
}
.r-section-title h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -0.02em;
}
.r-section-title p {
  margin: 0;
  font-size: 13px;
  color: var(--text-5);
  font-weight: 500;
}
.r-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand);
  font-size: 13.5px;
  font-weight: 700;
  transition: gap .15s, color .15s;
  white-space: nowrap;
}
.r-link:hover { gap: 10px; }
.r-link i { font-size: 18px; }

/* =====================================================
   CARDS GRID (hub category cards + tutorials)
   ===================================================== */
.r-cards {
  display: grid;
  gap: 16px;
}
.r-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.r-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) {
  .r-cards.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .r-cards.cols-3, .r-cards.cols-2 { grid-template-columns: 1fr; }
}

/* Hub category card (big tile pointing to a sub-page) */
.r-cat {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  overflow: hidden;
  isolation: isolate;
}
.r-cat:hover {
  transform: translateY(-3px);
  border-color: var(--brand-line);
  box-shadow: 0 18px 38px rgba(0,0,0,0.3);
}
.r-cat::before {
  content: "";
  position: absolute;
  top: -40%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--brand-soft), transparent 60%);
  z-index: -1;
  opacity: 0;
  transition: opacity .25s;
}
.r-cat:hover::before { opacity: 1; }
.r-cat-icon {
  width: 48px; height: 48px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--brand);
  font-size: 24px;
}
.r-cat-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -0.015em;
  margin: 0;
}
.r-cat-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-4);
  line-height: 1.55;
  flex: 1;
}
.r-cat-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.r-cat-count {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.r-cat-arrow {
  width: 32px; height: 32px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-3);
  font-size: 18px;
  transition: background .15s, color .15s, transform .15s;
}
.r-cat:hover .r-cat-arrow {
  background: var(--brand); color: #0a0c0e;
  transform: translateX(2px);
}

/* =====================================================
   RELEASE NOTES — Timeline
   ===================================================== */
.r-timeline {
  position: relative;
  padding-left: 32px;
}
.r-timeline::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px;
  left: 11px;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-line), var(--line) 8%, var(--line) 92%, transparent);
}

.r-release {
  position: relative;
  margin-bottom: 36px;
}
.r-release:last-child { margin-bottom: 0; }
.r-release::before {
  content: "";
  position: absolute;
  left: -28px; top: 12px;
  width: 12px; height: 12px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-1), 0 0 0 5px var(--brand-line);
}
.r-release.is-major::before {
  background: var(--success);
  box-shadow: 0 0 0 4px var(--bg-1), 0 0 0 5px var(--success-line);
}

.r-release-head {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.r-release-version {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  letter-spacing: -0.01em;
}
.r-release.is-major .r-release-version {
  color: var(--success);
  background: var(--success-soft);
  border-color: var(--success-line);
}
.r-release-pill {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: var(--r-pill);
}
.r-release-pill.major {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--success-line);
}
.r-release-pill.feature {
  background: var(--info-soft);
  color: var(--info);
  border: 1px solid rgba(33,150,243,0.3);
}
.r-release-pill.fix {
  background: var(--bg-3);
  color: var(--text-4);
  border: 1px solid var(--line);
}
.r-release-date {
  font-size: 12px;
  color: var(--text-5);
  font-weight: 600;
  margin-left: auto;
}
.r-release-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.r-release-summary {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-4);
  line-height: 1.6;
}
.r-release-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.r-release-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.r-release-list li i {
  flex-shrink: 0;
  font-size: 14px;
  margin-top: 3px;
}
.r-release-list li.added i { color: var(--success); }
.r-release-list li.improved i { color: var(--info); }
.r-release-list li.fixed i { color: var(--brand); }
.r-release-list li b {
  color: var(--text-1);
  font-weight: 800;
}

/* =====================================================
   TUTORIAL CARD (with thumbnail)
   ===================================================== */
.r-tut {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.r-tut:hover {
  transform: translateY(-3px);
  border-color: var(--brand-line);
  box-shadow: 0 18px 38px rgba(0,0,0,0.3);
}
.r-tut-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background:
    linear-gradient(135deg, var(--bg-3), var(--bg-1));
  display: grid; place-items: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.r-tut-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,133,33,0.16), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(33,150,243,0.10), transparent 50%);
}
/* Capa do tutorial (cover_url, miniatura do vídeo ou primeiro print do texto). */
.r-tut-thumb .r-tut-cover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform .2s ease;
}
.r-tut:hover .r-tut-thumb .r-tut-cover { transform: scale(1.03); }
.r-tut-thumb.has-cover::before { display: none; }
.r-tut-thumb i {
  position: relative;
  font-size: 48px;
  color: var(--text-5);
  z-index: 1;
}
.r-tut-thumb .play {
  position: absolute;
  z-index: 2;
  width: 52px; height: 52px;
  background: rgba(15,17,19,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--brand);
  font-size: 24px;
  transition: transform .15s, background .15s;
}
.r-tut:hover .r-tut-thumb .play {
  background: var(--brand);
  color: #0a0c0e;
  transform: scale(1.08);
}
.r-tut-duration {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(15,17,19,0.85);
  color: var(--text-1);
  padding: 3px 8px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--mono);
  z-index: 2;
}
.r-tut-body {
  padding: 16px;
  display: flex; flex-direction: column;
  gap: 8px;
  flex: 1;
}
.r-tut-cat {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: flex-start;
}
.r-tut-cat.green { color: var(--success); }
.r-tut-cat.blue { color: var(--info); }
.r-tut-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.r-tut-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-5);
  line-height: 1.5;
  flex: 1;
}
.r-tut-foot {
  display: flex; align-items: center; gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.r-tut-foot .step {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px;
  color: var(--text-5);
  font-weight: 700;
}
.r-tut-foot .step i { font-size: 14px; }

/* =====================================================
   FILTER CHIPS (categories)
   ===================================================== */
.r-chips {
  display: flex; flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.r-chip {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-4);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
  letter-spacing: -0.005em;
}
.r-chip:hover {
  color: var(--text-2);
  border-color: var(--text-6);
}
.r-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #0f1113;
  font-weight: 800;
}
.r-chip .num {
  background: var(--bg-3);
  color: var(--text-5);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}
.r-chip.is-active .num {
  background: rgba(0,0,0,0.18);
  color: #0f1113;
}

/* =====================================================
   FAQ accordion (same look as landing #faq)
   ===================================================== */
.r-faq-list {
  display: flex; flex-direction: column;
  gap: 10px;
}
.r-faq-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s;
}
.r-faq-item[hidden] { display: none !important; }
.r-faq-item[open] {
  border-color: var(--brand-line);
  background: linear-gradient(180deg, var(--bg-2), rgba(255,133,33,0.03));
}
.r-faq-item summary {
  list-style: none;
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
}
.r-faq-item summary::-webkit-details-marker { display: none; }
.r-faq-tag {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.r-faq-q {
  flex: 1;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.015em;
  line-height: 1.4;
}
.r-faq-chev {
  font-size: 22px;
  color: var(--text-5);
  flex-shrink: 0;
  transition: transform .25s ease, color .15s;
}
.r-faq-item[open] .r-faq-chev {
  transform: rotate(180deg);
  color: var(--brand);
}
.r-faq-a {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--text-4);
  line-height: 1.6;
}
.r-faq-a::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--line);
  margin: 0 -22px 16px;
}
.r-faq-a a { color: var(--brand); border-bottom: 1px dashed var(--brand-line); padding-bottom: 1px; }
.r-faq-a a:hover { border-color: var(--brand); }
.r-faq-a code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-1);
}

@media (max-width: 560px) {
  .r-faq-item summary { padding: 16px 18px; gap: 10px; flex-wrap: wrap; }
  .r-faq-q { font-size: 14px; flex: 1 1 100%; order: 2; }
  .r-faq-tag { order: 1; }
  .r-faq-chev { order: 1; margin-left: auto; }
  .r-faq-a { padding: 0 18px 18px; }
  .r-faq-a::before { margin: 0 -18px 14px; }
}

/* =====================================================
   "Help" callout at the bottom of every sub-page
   ===================================================== */
.r-help {
  margin-top: 64px;
  background: linear-gradient(135deg, var(--bg-2), rgba(255,133,33,0.04));
  border: 1px solid var(--brand-line);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.r-help-icon {
  width: 56px; height: 56px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  color: var(--brand);
  font-size: 28px;
  flex-shrink: 0;
}
.r-help-text { flex: 1; min-width: 240px; }
.r-help-text h3 {
  margin: 0 0 4px;
  font-size: 18px; font-weight: 900;
  color: var(--text-1);
  letter-spacing: -0.015em;
}
.r-help-text p {
  margin: 0; font-size: 13.5px;
  color: var(--text-4); line-height: 1.5;
}
.r-help-actions {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.r-help-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 11px 18px;
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: 13.5px;
  transition: all .15s;
}
.r-help-btn:hover { border-color: var(--brand); color: var(--brand); }
.r-help-btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #0a0c0e;
}
.r-help-btn.primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(255,133,33,0.32);
}

/* =====================================================
   FOOTER (slim)
   ===================================================== */
.r-footer {
  margin-top: 0;
  padding: 32px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  color: var(--text-5);
  font-size: 12.5px;
}
.r-footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.r-footer .brand-mark img { height: 22px; opacity: 0.7; }
.r-footer-meta { font-weight: 600; }
.r-footer-links { display: flex; gap: 18px; }
.r-footer-links a { color: var(--text-4); font-weight: 600; }
.r-footer-links a:hover { color: var(--brand); }


/* =====================================================
   ARTICLE LAYOUT — release/tutorial detalhes
   (sidebar com índice + conteúdo rico)
   ===================================================== */
.r-article-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 980px) {
  .r-article-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Sidebar TOC */
.r-toc {
  position: sticky;
  top: 92px;
  padding: 18px 0;
  font-size: 13px;
}
@media (max-width: 980px) { .r-toc { position: static; } }
.r-toc-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.r-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.r-toc li a {
  display: block;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  color: var(--text-4);
  font-weight: 600;
  transition: color .15s, border-color .15s;
  line-height: 1.4;
}
.r-toc li a:hover { color: var(--text-2); }
.r-toc li a.is-active {
  color: var(--brand);
  border-left-color: var(--brand);
  background: rgba(255,133,33,0.05);
}
.r-toc-meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12px; color: var(--text-5);
}
.r-toc-meta .row {
  display: flex; align-items: center; gap: 8px;
}
.r-toc-meta .row i { font-size: 14px; color: var(--text-4); }
.r-toc-meta .row b { color: var(--text-2); font-weight: 700; }
.r-toc-share {
  display: flex; gap: 6px;
  margin-top: 10px;
}
.r-toc-share button {
  width: 32px; height: 32px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-4);
  display: grid; place-items: center;
  font-size: 16px;
  cursor: pointer;
  transition: all .15s;
}
.r-toc-share button:hover { background: var(--brand); color: #0a0c0e; border-color: var(--brand); }

/* Article header */
.r-art-head {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.r-art-meta-top {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.r-art-title {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}
.r-art-deck {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-4);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Article content (rich body) */
.r-content {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-3);
}
.r-content > * + * { margin-top: 1.1em; }
.r-content > * + h2 { margin-top: 2em; }
.r-content > * + h3 { margin-top: 1.6em; }

.r-content h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.25;
  scroll-margin-top: 88px;
}
.r-content h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.015em;
  line-height: 1.3;
  scroll-margin-top: 88px;
}
.r-content p { margin: 0; }
.r-content p strong, .r-content li strong { color: var(--text-1); font-weight: 800; }
.r-content p a, .r-content li a {
  color: var(--brand);
  border-bottom: 1px dashed var(--brand-line);
  padding-bottom: 1px;
}
.r-content p a:hover, .r-content li a:hover { border-color: var(--brand); }
.r-content code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text-1);
}
.r-content ul, .r-content ol {
  margin: 0;
  padding-left: 24px;
}
.r-content ul li, .r-content ol li {
  margin-bottom: 6px;
  color: var(--text-2);
}
.r-content ul li::marker { color: var(--brand); }

/* Video block */
.r-block-video {
  position: relative;
  background: #000;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.r-block-video iframe,
.r-block-video video {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.r-block-video-placeholder {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, var(--bg-3), var(--bg-1));
  display: grid; place-items: center;
  cursor: pointer;
  transition: filter .15s;
}
.r-block-video-placeholder::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,133,33,0.16), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(33,150,243,0.10), transparent 50%);
}
.r-block-video-placeholder:hover { filter: brightness(1.15); }
.r-block-video-placeholder .play {
  position: relative;
  z-index: 1;
  width: 72px; height: 72px;
  background: rgba(255,133,33,0.9);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #0a0c0e;
  font-size: 32px;
  box-shadow: 0 20px 40px rgba(255,133,33,0.4);
}
.r-block-video-caption {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-5);
  font-weight: 600;
  padding: 8px 12px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.r-block-video-caption i { font-size: 14px; }
.r-block-video-meta {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 600;
  z-index: 2;
}

/* YouTube embed inserido via TipTap (FAQ, tutoriais, releases) */
.r-content div[data-youtube-video],
.r-content .youtube-embed-wrapper,
.r-faq-a div[data-youtube-video],
.r-faq-a .youtube-embed-wrapper {
  position: relative;
  width: 100%;
  max-width: min(640px, 100%);
  margin: 16px auto;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}

.r-content div[data-youtube-video] iframe,
.r-content .youtube-embed-wrapper iframe,
.r-faq-a div[data-youtube-video] iframe,
.r-faq-a .youtube-embed-wrapper iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: none;
}

@media (max-width: 600px) {
  .r-content div[data-youtube-video] iframe,
  .r-content .youtube-embed-wrapper iframe,
  .r-faq-a div[data-youtube-video] iframe,
  .r-faq-a .youtube-embed-wrapper iframe {
    height: 220px;
  }
}

/* Vídeo embutido vindo do GdPro (BlockEditor da Central de Conteúdo) */
.r-content .video-embed,
.r-faq-a .video-embed {
  position: relative;
  width: 100%;
  max-width: min(640px, 100%);
  margin: 16px auto;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}

.r-content .video-embed iframe,
.r-faq-a .video-embed iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: none;
}

@media (max-width: 600px) {
  .r-content .video-embed iframe,
  .r-faq-a .video-embed iframe {
    height: 220px;
  }
}

/* Callout ("aviso/dica") vindo do GdPro — mesmas cores usadas lá */
.r-content .callout-brand,
.r-faq-a .callout-brand {
  background: rgba(245, 134, 30, .10);
  border: 1px solid rgba(245, 134, 30, .30);
  border-left: 3px solid #f5861e;
  border-radius: 6px;
  padding: 0.75em 1em;
  margin: 1em 0;
}
.r-content .callout-success,
.r-faq-a .callout-success {
  background: rgba(34, 197, 94, .10);
  border: 1px solid rgba(34, 197, 94, .30);
  border-left: 3px solid #22c55e;
  border-radius: 6px;
  padding: 0.75em 1em;
  margin: 1em 0;
}
.r-content .callout-info,
.r-faq-a .callout-info {
  background: rgba(59, 130, 246, .10);
  border: 1px solid rgba(59, 130, 246, .30);
  border-left: 3px solid #3b82f6;
  border-radius: 6px;
  padding: 0.75em 1em;
  margin: 1em 0;
}
.r-content .callout-warn,
.r-faq-a .callout-warn {
  background: rgba(239, 68, 68, .10);
  border: 1px solid rgba(239, 68, 68, .30);
  border-left: 3px solid #ef4444;
  border-radius: 6px;
  padding: 0.75em 1em;
  margin: 1em 0;
}

/* Image block */
.r-block-image {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.r-block-image img {
  width: 100%; height: auto;
  display: block;
}
.r-block-image figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text-5);
  font-weight: 500;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  display: flex; align-items: center; gap: 8px;
}
.r-block-image figcaption i { font-size: 14px; color: var(--text-4); }

/* Side-by-side images */
.r-block-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 620px) { .r-block-img-pair { grid-template-columns: 1fr; } }

/* Callout */
.r-block-callout {
  display: flex; gap: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.r-block-callout.is-success { border-left-color: var(--success); }
.r-block-callout.is-info    { border-left-color: var(--info); }
.r-block-callout .icon {
  width: 28px; height: 28px;
  background: var(--brand-soft);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--brand);
  font-size: 16px;
  flex-shrink: 0;
}
.r-block-callout.is-success .icon { background: var(--success-soft); color: var(--success); }
.r-block-callout.is-info    .icon { background: var(--info-soft); color: var(--info); }
.r-block-callout .body {
  font-size: 14px; line-height: 1.55;
  color: var(--text-3);
}
.r-block-callout .body strong { color: var(--text-1); font-weight: 800; }

/* Changelog (release notes specific) */
.r-block-changelog {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex; flex-direction: column;
  gap: 16px;
}
.r-changelog-group {
  display: flex; flex-direction: column; gap: 8px;
}
.r-changelog-group h4 {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.r-changelog-group h4.added i { color: var(--success); }
.r-changelog-group h4.improved i { color: var(--info); }
.r-changelog-group h4.fixed i { color: var(--brand); }
.r-changelog-group.added h4 { color: var(--success); }
.r-changelog-group.improved h4 { color: var(--info); }
.r-changelog-group.fixed h4 { color: var(--brand); }
.r-changelog-group ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 5px;
}
.r-changelog-group ul li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.r-changelog-group ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.r-changelog-group.added ul li { color: var(--text-2); }
.r-changelog-group.improved ul li::before { background: var(--info); opacity: 0.7; }
.r-changelog-group.added ul li::before { background: var(--success); opacity: 0.7; }
.r-changelog-group.fixed ul li::before { background: var(--brand); opacity: 0.7; }

/* Article nav (previous / next) */
.r-art-nav {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 620px) { .r-art-nav { grid-template-columns: 1fr; } }
.r-art-nav-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  transition: border-color .15s, transform .15s;
}
.r-art-nav-card:hover { border-color: var(--brand-line); transform: translateY(-2px); }
.r-art-nav-card.next { flex-direction: row-reverse; text-align: right; }
.r-art-nav-card i {
  font-size: 28px;
  color: var(--text-5);
  flex-shrink: 0;
}
.r-art-nav-card:hover i { color: var(--brand); }
.r-art-nav-card .info { min-width: 0; flex: 1; }
.r-art-nav-card .lbl {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.r-art-nav-card .ttl {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Trilha sequencial (detalhe do tutorial) */
.r-trilha-progress {
  margin-top: 20px;
  max-width: 420px;
}
.r-trilha-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-4);
  margin-bottom: 8px;
}
.r-trilha-progress-bar {
  height: 6px;
  background: var(--bg-3);
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 1px solid var(--line);
}
.r-trilha-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-3), var(--brand));
  border-radius: var(--r-pill);
  transition: width .3s ease;
}
.r-trilha-panel {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.r-trilha-panel::-webkit-scrollbar {
  width: 6px;
}
.r-trilha-panel::-webkit-scrollbar-track {
  background: transparent;
}
.r-trilha-panel::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: var(--r-pill);
}
.r-trilha-panel::-webkit-scrollbar-thumb:hover {
  background: var(--text-5);
}
.r-trilha-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.r-trilha-item a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.r-trilha-item a:hover {
  background: var(--bg-3);
  border-color: var(--line);
}
.r-trilha-item.is-current a {
  background: var(--brand-soft);
  border-color: var(--brand-line);
}
.r-trilha-item.is-done .r-trilha-step {
  background: var(--success-soft);
  color: var(--success);
  border-color: var(--success-line);
}
.r-trilha-step {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  background: var(--bg-3);
  border: 1px solid var(--line);
  color: var(--text-4);
}
.r-trilha-item.is-current .r-trilha-step {
  background: var(--brand);
  color: #0a0c0e;
  border-color: var(--brand);
}
.r-trilha-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.r-trilha-cat {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-5);
}
.r-trilha-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  line-height: 1.35;
}
.r-trilha-item.is-current .r-trilha-title { color: var(--text-0); }
.r-trilha-dur {
  font-size: 11px;
  color: var(--text-5);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.r-trilha-check {
  color: var(--success);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 4px;
}
.r-trilha-continue {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--r-md);
}
.r-trilha-continue p {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
}
.r-trilha-continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--brand);
  color: #0a0c0e;
  font-weight: 800;
  font-size: 14px;
  border-radius: var(--r-sm);
  transition: transform .15s, box-shadow .15s;
}
.r-trilha-continue-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255,133,33,0.35);
}
