* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #131417;
  color: #c7c9d1;
}

a { color: inherit; }

.docs-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 170px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    linear-gradient(0deg, rgba(110, 26, 8, 0.55), rgba(110, 26, 8, 0.55)),
    url("/assets/imagem/background.jpg");
  background-size: cover;
  background-position: center 35%;
  color: #fff;
  border-bottom: 2px solid #ff6a3d;
  box-shadow: 0 2px 16px rgba(255, 106, 61, 0.45);
}

.docs-header img {
  height: 110px;
  width: auto;
}

.docs-header .title {
  display: none;
}

.docs-header a.home-link {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 13px;
  text-decoration: none;
  color: #fff;
  background: rgba(0,0,0,0.35);
  padding: 6px 14px;
  border-radius: 8px;
}

.docs-header a.home-link:hover {
  background: rgba(0,0,0,0.5);
}

.docs-header button.menu-toggle {
  display: none;
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,0.35);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.docs-layout {
  display: flex;
  margin-top: 170px;
  min-height: calc(100vh - 170px);
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
  background: #18191d;
  border-right: 1px solid #232429;
  padding: 14px 10px 60px;
  position: sticky;
  top: 170px;
  height: calc(100vh - 170px);
  overflow-y: auto;
  font-size: 13.5px;
  scrollbar-width: thin;
  scrollbar-color: #4a2a17 #18191d;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: #18191d;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #4a2a17;
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #ff6a3d;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #4a2a17 #131417;
}

body::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-track {
  background: #131417;
}

body::-webkit-scrollbar-thumb {
  background: #4a2a17;
  border-radius: 5px;
}

body::-webkit-scrollbar-thumb:hover {
  background: #ff6a3d;
}

.gb-space-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 6px;
  background: #202226;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.gb-space-header svg {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

.gb-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #7d7f8a;
  margin: 22px 10px 6px;
}

.gb-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gb-tree ul {
  list-style: none;
  margin: 0;
  padding-left: 16px;
}

.gb-tree li {
  margin: 1px 0;
}

.gb-tree summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #c7c9d1;
  list-style: none;
  user-select: none;
}

.gb-tree summary::-webkit-details-marker {
  display: none;
}

.gb-tree summary:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.gb-tree a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  color: #9d9fab;
  text-decoration: none;
  line-height: 1.4;
}

.gb-tree a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.gb-tree a.active {
  background: rgba(255, 106, 61, 0.16);
  color: #fff;
  font-weight: 600;
  position: relative;
}

.gb-tree a.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #ff6a3d;
}

.gb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6a3d;
  flex-shrink: 0;
}

.gb-chev {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #6c6e79;
  border-bottom: 1.5px solid #6c6e79;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

details[open] > summary .gb-chev {
  transform: rotate(45deg);
}

.docs-content {
  flex: 1;
  min-width: 0;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 40px 100px;
}

.breadcrumb {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #c98a68;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6a3d;
  flex-shrink: 0;
}

.breadcrumb a {
  color: #ff9466;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.docs-content h1 {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #26272c;
  color: #fff;
}

.docs-content h1::before,
.docs-content h2::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFB347, #FF4800);
  margin-right: 12px;
}

.docs-content h2 {
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 30px 0 14px;
  color: #fff;
}

.docs-content h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: #ffb28a;
}

.docs-content h4 {
  font-size: 14.5px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: #ffb28a;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.docs-content p {
  font-size: 15px;
  line-height: 1.75;
  margin: 0 0 14px;
  color: #c7c9d1;
}

.docs-content ul, .docs-content ol {
  margin: 0 0 14px;
  padding-left: 4px;
  font-size: 15px;
  line-height: 1.7;
  color: #c7c9d1;
  list-style: none;
}

.docs-content ol {
  counter-reset: gb-ol;
}

.docs-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
}

.docs-content ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6a3d;
}

.docs-content ol li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 7px;
  counter-increment: gb-ol;
}

.docs-content ol li::before {
  content: counter(gb-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff9466;
  font-weight: 600;
}

.docs-content ul ul, .docs-content ol ul {
  margin-top: 6px;
}

.callout-solid {
  background: linear-gradient(135deg, #c8451e 0%, #a6350f 100%);
  color: #fff;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 12px;
}

.callout-solid p {
  margin: 0;
  color: #fff;
}

.callout-solid strong {
  color: #fff;
}

.callout-solid .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.docs-content strong { color: #fff; }

.docs-content blockquote {
  margin: 0 0 14px;
  padding: 10px 16px;
  border-left: 3px solid #ff6a3d;
  background: #1c1d22;
  font-style: italic;
  color: #b0b2bd;
}

.docs-content hr {
  border: none;
  border-top: 1px solid #26272c;
  margin: 28px 0;
}

.hint {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
}

.hint p, .hint ul { margin: 0; }
.hint ul { padding-left: 20px; margin-top: 4px; }

.hint-info {
  background: #16232f;
  border-left: 4px solid #3d8bd4;
  color: #a9cdf0;
}

.hint-danger {
  background: #2b1717;
  border-left: 4px solid #e05252;
  color: #f0b3b3;
}

.doc-list {
  font-size: 15px;
  line-height: 1.9;
}

.doc-list a {
  color: #ff9466;
  text-decoration: none;
}

.doc-list a:hover {
  text-decoration: underline;
}

.empty-note {
  font-size: 14px;
  color: #7d7f8a;
  font-style: italic;
}

/* Administrativo — page layout */
.rule-page-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid #26272c;
}

.rule-page-title h1 {
  margin: 0;
  padding: 0;
  border: none;
}

.rule-page-title h1::before {
  display: none;
}

.rule-page-title .icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFB347, #FF4800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255, 106, 61, 0.4);
}

.rule-page-title .icon-box svg {
  width: 22px;
  height: 22px;
}

.rule-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0 30px;
}

.rule-list::before {
  content: "";
  position: absolute;
  inset: -10px 0;
  background-image:
    radial-gradient(circle at 6% 12%, rgba(255,106,61,0.4) 1.5px, transparent 1.6px),
    radial-gradient(circle at 94% 30%, rgba(255,106,61,0.3) 1.5px, transparent 1.6px),
    radial-gradient(circle at 10% 70%, rgba(255,106,61,0.35) 1.5px, transparent 1.6px),
    radial-gradient(circle at 96% 88%, rgba(255,106,61,0.25) 1.5px, transparent 1.6px),
    radial-gradient(circle at 50% 96%, rgba(255,106,61,0.2) 1.5px, transparent 1.6px);
  pointer-events: none;
  z-index: 0;
}

.rule-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #18191d;
  border: 1px solid #232429;
  border-radius: 12px;
  padding: 16px 18px;
}

.rule-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 23px;
  padding: 0 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, #FFB347, #FF4800);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 1px;
}

.rule-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: #c7c9d1;
}

@media (max-width: 880px) {
  .docs-header button.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 170px;
    height: calc(100vh - 170px);
    z-index: 15;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    width: 280px;
    max-width: 82vw;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .docs-content {
    padding: 28px 20px 80px;
  }
}

@media (max-width: 560px) {
  .docs-header {
    height: 130px;
    padding: 12px;
  }

  .docs-header img {
    height: 78px;
  }

  .docs-layout {
    margin-top: 130px;
    min-height: calc(100vh - 130px);
  }

  .sidebar,
  .sidebar.open {
    top: 130px;
    height: calc(100vh - 130px);
  }

  .docs-header a.home-link {
    top: 12px;
    right: 12px;
    font-size: 12px;
    padding: 5px 10px;
  }

  .docs-header button.menu-toggle {
    top: 12px;
    left: 12px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .docs-content {
    padding: 22px 16px 60px;
  }

  .docs-content h1 {
    font-size: 21px;
  }

  .docs-content h1::before,
  .docs-content h2::before {
    width: 16px;
    height: 16px;
    margin-right: 8px;
  }

  .docs-content h2 {
    font-size: 16px;
  }

  .docs-content p,
  .docs-content ul,
  .docs-content ol {
    font-size: 14px;
  }

  .callout-solid {
    padding: 12px 14px;
    font-size: 13.5px;
  }

  .rule-page-title {
    gap: 10px;
  }

  .rule-page-title .icon-box {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .rule-page-title h1 {
    font-size: 19px;
  }
}

@media (max-width: 340px) {
  .sidebar,
  .sidebar.open {
    width: 240px;
  }

  .docs-content h1 {
    font-size: 18px;
  }
}

.topic-intro {
  font-size: 15px;
  line-height: 1.75;
  color: #c7c9d1;
  margin: 0 0 28px;
}

.topic-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px 0 40px;
}

.topic-card {
  flex: 1 1 260px;
  background: #18191d;
  border: 1px solid #232429;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  border-color: #ff6a3d;
}

.topic-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFB347, #FF4800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topic-card__icon svg {
  width: 24px;
  height: 24px;
}

.topic-card__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0;
}

.topic-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: #9d9fab;
  flex: 1;
  margin: 0;
}

.topic-card__more {
  font-size: 13px;
  font-weight: 600;
  color: #ff9466;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-note {
  background: #16232f;
  border-left: 4px solid #3d8bd4;
  color: #a9cdf0;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.6;
  font-style: italic;
}

@media (max-width: 560px) {
  .topic-grid {
    flex-direction: column;
  }
}
