@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@700;800;900&family=Bricolage+Grotesque:wght@700;800&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  --black: #0a0c0b;
  --black-deep: #030504;
  --dark: #111613;
  --dark-2: #1e2421;
  --panel: rgba(14, 18, 16, .88);
  --panel-strong: rgba(23, 29, 26, .96);
  --panel-soft: rgba(255, 255, 255, .055);
  --white: #ffffff;
  --muted: rgba(255, 255, 255, .72);
  --muted-2: rgba(255, 255, 255, .52);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(0, 239, 25, .34);
  --green: #00ef19;
  --green-soft: #05b93d;
  --green-deep: #053f18;
  --red: #ff0707;
  --code-bg: rgba(0, 239, 25, .09);
  --shadow: 0 30px 90px rgba(0, 0, 0, .38);
  --font-display: "Bricolage Grotesque", Archivo, Manrope, sans-serif;
  --font-body: Manrope, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  --black: #f5fff7;
  --black-deep: #eef8f0;
  --dark: #ffffff;
  --dark-2: #eef8f0;
  --panel: rgba(255, 255, 255, .9);
  --panel-strong: rgba(255, 255, 255, .98);
  --panel-soft: rgba(10, 35, 18, .045);
  --white: #101411;
  --muted: rgba(16, 20, 17, .72);
  --muted-2: rgba(16, 20, 17, .52);
  --line: rgba(10, 35, 18, .14);
  --line-strong: rgba(5, 185, 61, .32);
  --green-deep: #dff9e6;
  --code-bg: rgba(5, 185, 61, .12);
  --shadow: 0 24px 70px rgba(4, 36, 13, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 92% -8%, rgba(0, 239, 25, .26), transparent 28rem),
    radial-gradient(circle at 10% 14%, rgba(255, 7, 7, .1), transparent 20rem),
    linear-gradient(145deg, var(--black-deep) 0%, var(--black) 38%, #071109 100%);
  font-family: var(--font-body);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

button,
input {
  font: inherit;
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: grid;
  grid-template-columns: 220px minmax(180px, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 24px;
  padding: 0 44px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent),
    rgba(7, 10, 8, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .24);
  transition: transform .24s ease, opacity .24s ease;
}

:root[data-theme="light"] .site-topbar {
  background: rgba(255, 255, 255, .86);
}

.top-logo img {
  width: 118px;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .22));
}

.top-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 800;
}

.top-nav a {
  color: inherit;
  text-decoration: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color .18s ease, transform .18s ease;
}

.text-link:hover {
  color: var(--green);
  transform: translateY(-1px);
}

.pill-link {
  padding: 12px 20px;
  border: 1px solid rgba(0, 239, 25, .62);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  color: #061008 !important;
  box-shadow: 0 0 26px rgba(0, 239, 25, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}

.pill-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 34px rgba(0, 239, 25, .34);
}

.whatsapp-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 239, 25, .14);
  color: var(--green);
  border: 1px solid rgba(0, 239, 25, .26);
  font-size: 13px;
}

.top-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(0, 239, 25, .08), transparent 40%),
    rgba(255, 255, 255, .06);
  color: var(--muted-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.search-shortcut {
  min-width: 54px;
  text-align: center;
}

.search-clear {
  width: 22px;
  height: 22px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: var(--muted);
  cursor: pointer;
}

.search-clear.visible {
  display: grid;
}

.search-count {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.top-search:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(0, 239, 25, .08);
}

.top-search.search-pulse {
  animation: searchPulse .34s ease;
}

.top-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
}

.top-search input::placeholder {
  color: var(--muted-2);
}

kbd {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  background: rgba(255, 255, 255, .05);
}

.search-popover {
  position: fixed;
  top: var(--search-top, 76px);
  left: var(--search-left, auto);
  right: auto;
  z-index: 60;
  width: min(var(--search-width, 640px), calc(100vw - 32px));
}

.search-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035)),
    var(--panel-strong);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .48), 0 0 0 1px rgba(0, 239, 25, .08);
  backdrop-filter: blur(20px);
}

.search-results-list {
  max-height: min(62vh, 560px);
  overflow: auto;
  padding: 12px;
}

.search-result {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  text-align: left;
  cursor: pointer;
}

.search-result + .search-result {
  margin-top: 4px;
}

.search-result.active,
.search-result:hover {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(0, 239, 25, .16), rgba(255, 255, 255, .05));
}

.result-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(0, 239, 25, .18);
  border-radius: 9px;
  background: rgba(0, 239, 25, .08);
  color: var(--green);
}

.ui-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.result-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.result-crumbs {
  color: var(--muted-2);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-body strong {
  color: var(--white);
  font-size: 16px;
  line-height: 1.22;
}

.result-body small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.result-arrow {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
}

.search-result.active .result-arrow {
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  color: #061008;
}

mark {
  padding: 0 2px;
  border-radius: 4px;
  background: rgba(0, 239, 25, .18);
  color: var(--green);
}

.search-empty-state {
  display: grid;
  gap: 6px;
  padding: 28px;
  color: var(--muted);
}

.search-empty-state strong {
  color: var(--white);
}

.search-footer {
  min-height: 44px;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  align-items: center;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.search-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.app-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 316px 1fr;
}

.sidebar-backdrop {
  display: none;
}

.sidebar {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow: auto;
  padding: 18px 14px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), transparent 18rem),
    linear-gradient(180deg, rgba(13, 17, 15, .92), rgba(11, 14, 12, .72));
  border-right: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

:root[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, .66);
}

.side-brand {
  display: none;
}

.nav-tree {
  display: grid;
  gap: 11px;
}

.home-section {
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.nav-section-title {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  margin: 14px -14px 8px;
  padding: 10px 24px;
  background: linear-gradient(90deg, rgba(0, 239, 25, .16), rgba(0, 239, 25, .07) 48%, rgba(0, 239, 25, 0));
  color: rgba(255, 255, 255, .72);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: default;
  user-select: none;
  opacity: .95;
}

.nav-section-title::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(0, 239, 25, .42);
  content: "";
}

:root[data-theme="light"] .nav-section-title {
  color: rgba(16, 20, 17, .68);
  background: linear-gradient(90deg, rgba(5, 185, 61, .18), rgba(5, 185, 61, .08) 48%, rgba(5, 185, 61, 0));
}

.nav-section-title span {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(0, 239, 25, .28);
  border-radius: 999px;
  background: rgba(0, 239, 25, .06);
  color: var(--green);
}

.nav-section-title::after {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 239, 25, .24), transparent);
  content: "";
}

.nav-section-title .ui-icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

.nav-group {
  margin: 2px 0;
}

.nav-row {
  width: 100%;
  min-height: 38px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  padding-left: calc(9px + var(--depth) * 13px);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.nav-row span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-row:hover {
  background: rgba(255, 255, 255, .065);
  border-color: var(--line);
  color: var(--white);
}

.nav-row.active {
  background:
    linear-gradient(135deg, rgba(0, 239, 25, .22), rgba(0, 239, 25, .07));
  border-color: var(--line-strong);
  color: var(--green);
  box-shadow: 0 10px 28px rgba(0, 239, 25, .08);
}

.menu-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--green);
  background: rgba(0, 239, 25, .06);
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.menu-icon .ui-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.nav-row:hover .menu-icon,
.nav-row.active .menu-icon {
  border-color: rgba(0, 239, 25, .28);
  background: rgba(0, 239, 25, .14);
  transform: translateY(-1px);
}

.nav-row.active .menu-icon {
  color: #061008;
  background: linear-gradient(135deg, var(--green), var(--green-soft));
}

.twisty {
  color: var(--muted-2);
  transform: rotate(0deg);
  transition: transform .16s ease;
}

.nav-group.open > .nav-row .twisty {
  transform: rotate(90deg);
}

.nav-children {
  display: none;
  margin: 4px 0 6px 18px;
  border-left: 1px solid rgba(0, 239, 25, .22);
}

.nav-group.open > .nav-children {
  display: block;
}

.content-area {
  min-width: 0;
  padding: 0 clamp(22px, 4vw, 54px) 72px;
}

.content-area.page-enter .hero-panel {
  animation: pageHeroIn .42s cubic-bezier(.2, .8, .2, 1) both;
}

.content-area.page-enter .doc {
  animation: pageDocIn .48s cubic-bezier(.2, .8, .2, 1) .04s both;
}

.content-area.page-enter .page-nav {
  animation: pageDocIn .48s cubic-bezier(.2, .8, .2, 1) .1s both;
}

.content-area.page-enter .outline-card {
  animation: outlineIn .42s cubic-bezier(.2, .8, .2, 1) .12s both;
}

.mobile-bar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.icon-button {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
}

.crumbs {
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 940px) 250px;
  justify-content: center;
  gap: 44px;
}

.hero-panel {
  position: relative;
  padding: 38px 0 26px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  line-height: .98;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

#pageSummary {
  max-width: 790px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.article-meta span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.doc {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
}

.doc::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--green), transparent 70%);
}

.doc h2 {
  margin: 36px 0 12px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.12;
}

.doc h2:first-child {
  margin-top: 0;
}

.welcome-hero-card h2 {
  margin-top: 0;
}

.doc p,
.doc li {
  color: var(--muted);
  line-height: 1.82;
  font-size: 16px;
}

.doc .lead {
  margin-top: 0;
  font-size: 17px;
  color: rgba(255, 255, 255, .82);
}

.welcome-doc {
  display: grid;
  gap: 18px;
}

.welcome-hero-card {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  margin-bottom: 4px;
}

.welcome-logo-card {
  width: min(100%, 420px);
  min-height: 220px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 239, 25, .2), transparent 12rem),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  box-shadow: 0 20px 50px rgba(0, 239, 25, .08);
}

.welcome-logo-card img {
  width: min(260px, 72%);
  height: auto;
  display: block;
}

.doc-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.doc-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 0 18px;
  border: 1px solid rgba(0, 239, 25, .55);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  color: #061008;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform .18s ease, filter .18s ease;
}

.doc-action:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.welcome-stats,
.welcome-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.welcome-stats span,
.welcome-shortcuts article {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.welcome-stats span {
  display: grid;
  gap: 3px;
  min-height: 86px;
  align-content: center;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.welcome-stats strong {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: .9;
}

.welcome-shortcuts article {
  padding: 18px;
}

.welcome-shortcuts span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 900;
}

.welcome-shortcuts strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 20px;
}

.welcome-shortcuts p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

:root[data-theme="light"] .doc .lead {
  color: rgba(16, 20, 17, .82);
}

.doc strong {
  color: var(--white);
  font-weight: 900;
}

.doc em {
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

code {
  padding: 3px 7px;
  border: 1px solid rgba(0, 239, 25, .16);
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--green);
  font-size: .9em;
}

.doc-checklist {
  padding-left: 22px;
}

.doc-checklist li {
  margin: 9px 0;
}

.article-media {
  display: grid;
  gap: 18px;
  margin: 28px 0 34px;
}

.article-media figure {
  margin: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 239, 25, .08), rgba(255, 255, 255, .04));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.article-media img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  border-radius: 12px;
}

.article-media figcaption {
  width: 100%;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.page-nav-card {
  min-height: 86px;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-strong);
  color: var(--white);
  text-align: left;
  padding: 16px 18px;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.page-nav-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 239, 25, .1);
}

.page-nav-card small {
  display: block;
  color: var(--muted-2);
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.page-nav-card strong {
  font-size: 16px;
}

.nav-arrow {
  color: var(--green);
  font-size: 28px;
}

.page-aside {
  display: block;
}

.outline-card {
  position: sticky;
  top: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted);
}

.outline-card strong {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: .06em;
}

#pageOutline {
  display: grid;
  gap: 13px;
}

#pageOutline a {
  color: var(--muted);
  text-decoration: none;
  line-height: 1.38;
  transition: color .16s ease;
}

#pageOutline a:hover {
  color: var(--green);
}

.theme-switcher {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.theme-switcher button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

:root[data-theme="light"] #lightTheme,
:root[data-theme="dark"] #darkTheme {
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  color: #061008;
}

.empty {
  padding: 18px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
}

@media (max-width: 1180px) {
  .site-topbar {
    grid-template-columns: 150px minmax(180px, 1fr) minmax(260px, 360px);
    padding: 14px 28px;
  }

  .top-search {
    grid-column: auto;
    max-width: 420px;
    justify-self: end;
  }

  .search-popover {
    right: auto;
  }

  .page-grid {
    grid-template-columns: minmax(0, 920px);
  }

  .page-aside {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-topbar {
    min-height: 56px;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 8px 12px;
    overflow: hidden;
  }

  body.mobile-topbar-hidden:not(.search-open):not(.sidebar-open) .site-topbar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-110%);
  }

  .top-logo img {
    width: clamp(78px, 22vw, 92px);
  }

  .top-nav {
    min-width: 0;
    justify-self: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 11px;
  }

  .top-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
  }

  .pill-link {
    min-height: 38px;
    padding: 9px 12px;
  }

  .support-link {
    min-height: 38px;
    justify-content: center;
  }

  .top-search {
    justify-self: end;
    width: 42px;
    height: 42px;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }

  .top-search:active {
    transform: scale(.94);
  }

  .top-search input,
  .top-search .search-count,
  .top-search .search-clear,
  .top-search .search-shortcut {
    display: none;
  }

  body.search-open .top-search {
    position: fixed;
    top: 8px;
    left: 10px;
    right: 10px;
    z-index: 80;
    width: auto;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 8px 10px;
    border-radius: 16px;
    background: var(--panel-strong);
  }

  body.search-open .top-search input,
  body.search-open .top-search .search-clear.visible {
    display: block;
  }

  .search-popover {
    top: 62px;
    left: 10px;
    right: 10px;
    width: auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    inset: 0 auto 0 0;
    width: min(88vw, 340px);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform .22s ease;
    z-index: 50;
  }

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

  body.sidebar-open {
    overflow: hidden;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: none;
    border: 0;
    background: rgba(0, 0, 0, .54);
    backdrop-filter: blur(4px);
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  .side-brand {
    display: block;
    padding: 4px 8px 16px;
  }

  .side-brand img {
    width: 118px;
  }

  .content-area {
    padding: 0 18px 54px;
  }

  .mobile-bar {
    height: 48px;
  }

  .icon-button {
    display: inline-grid;
    place-items: center;
  }

  .doc {
    padding: 26px 20px;
    border-radius: 16px;
  }

  h1 {
    font-size: clamp(32px, 11vw, 46px);
  }

  .page-nav {
    grid-template-columns: 1fr;
  }

  .welcome-hero-card,
  .welcome-stats,
  .welcome-shortcuts {
    grid-template-columns: 1fr;
  }

  .welcome-logo-card {
    min-height: 170px;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .site-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    padding: 7px 9px;
  }

  .top-nav {
    width: auto;
    display: flex;
    justify-self: end;
    align-items: stretch;
    gap: 6px;
  }

  .top-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .pill-link {
    padding: 8px 10px;
    font-size: 10px;
  }

  .top-search {
    width: 38px;
    height: 38px;
  }

  .support-link {
    width: 38px;
    min-width: 38px;
    padding: 0;
    overflow: hidden;
    justify-content: center;
  }

  .support-link .whatsapp-mark {
    margin: 0;
  }

  .search-popover {
    top: 58px;
    left: 12px;
    right: 12px;
  }

  .mobile-bar {
    height: 42px;
  }

  .crumbs {
    display: none;
  }

  .search-results-list {
    max-height: 58vh;
    padding: 8px;
  }

  .search-result {
    min-height: 76px;
    grid-template-columns: 24px minmax(0, 1fr) 28px;
    gap: 9px;
    border-radius: 12px;
  }

  .result-body strong {
    font-size: 15px;
  }

  .search-footer {
    justify-content: center;
    gap: 10px;
    font-size: 11px;
  }

  .search-footer span:first-child {
    display: none;
  }

  .content-area {
    padding-inline: 14px;
  }

  .doc p,
  .doc li {
    font-size: 15px;
  }

  .article-media figure {
    padding: 8px;
    border-radius: 12px;
  }

  .theme-switcher {
    right: 14px;
    bottom: 14px;
  }
}

@keyframes searchPulse {
  0% {
    transform: scale(1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 0 rgba(0, 239, 25, .35);
  }
  55% {
    transform: scale(1.08);
    border-color: var(--line-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 8px rgba(0, 239, 25, .12);
  }
  100% {
    transform: scale(1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 0 rgba(0, 239, 25, 0);
  }
}

@keyframes pageHeroIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageDocIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes outlineIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
