:root {
  --brand-blue: #1f43ff;
  --brand-violet: #6a1bff;
  --brand-ink: #1737c8;
  --ink: #101217;
  --ink-soft: #2c3442;
  --muted: #667085;
  --muted-light: #98a2b3;
  --line: #e4e7ec;
  --line-soft: #eef0f3;
  --surface: #ffffff;
  --canvas: #f5f6f8;
  --focus: #7b61ff;
  --radius-lg: 13px;
  --radius-md: 9px;
  --shadow-panel: 0 10px 30px rgba(16, 24, 40, 0.07), 0 2px 7px rgba(16, 24, 40, 0.04);
  --content-width: 1296px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(123, 97, 255, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid rgba(228, 231, 236, 0.8);
}

.header-inner {
  width: min(var(--content-width), calc(100% - 48px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.brand-button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-logo {
  display: block;
  width: 128px;
  height: auto;
}

.brand-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.brand-label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 23px;
  border: 0;
  color: #20242d;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand-blue);
  opacity: 0;
  transform: scaleX(0.7);
  transition: 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-blue);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-login {
  margin-left: 6px;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-button > span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  border-radius: 2px;
}

.hero-band {
  color: white;
  background: linear-gradient(112deg, var(--brand-blue) 0%, #2b34ff 43%, var(--brand-violet) 100%);
}

.hero-inner {
  width: min(var(--content-width), calc(100% - 48px));
  min-height: 148px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, 540px);
  align-items: center;
  gap: 72px;
}

.hero-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-home-link {
  width: fit-content;
  margin: 0 0 25px;
  padding: 0;
  color: white;
  background: transparent;
  border: 0;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 54px;
  height: 54px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(29, 25, 93, 0.2);
}

.search-form:focus-within {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25), 0 10px 24px rgba(29, 25, 93, 0.2);
}

.search-form input {
  min-width: 0;
  padding: 0 17px;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 15px;
}

.search-form input::placeholder {
  color: #777e8b;
}

.search-form button {
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--line-soft);
  color: #8d96a5;
  background: #fafbfc;
  cursor: pointer;
}

.search-form button:hover {
  color: var(--brand-blue);
  background: #f5f6ff;
}

.search-form svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

#main-content {
  min-height: 620px;
}

.app-shell {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 24px auto 72px;
}

.collection {
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.collection-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.collection-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #244dff, #6421ef);
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(64, 52, 239, 0.22);
}

.collection-mark svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.collection-header h2 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.folder-block {
  min-width: 0;
  padding: 27px 28px 25px;
  border-bottom: 1px solid var(--line-soft);
}

.folder-block:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}

.folder-block:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.folder-title-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.folder-title-button:hover h3 {
  color: var(--brand-ink);
}

.folder-icon,
.article-icon {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.folder-icon {
  width: 27px;
  stroke-width: 1.75;
}

.article-icon {
  width: 16px;
  color: var(--brand-ink);
  stroke-width: 1.7;
}

.folder-block h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.018em;
  transition: color 150ms ease;
}

.article-preview-list {
  display: grid;
  gap: 12px;
  margin: 19px 0 0 39px;
}

.article-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--brand-ink);
  background: transparent;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.article-link:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.view-all {
  width: fit-content;
  margin: 18px 0 0 39px;
  padding: 0;
  border: 0;
  color: var(--brand-ink);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.view-all:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.secondary-collections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.secondary-collections .collection {
  margin-bottom: 0;
}

.secondary-collections .folder-grid {
  grid-template-columns: 1fr;
}

.secondary-collections .folder-block {
  border-right: 0;
  border-bottom: 1px solid var(--line-soft);
}

.secondary-collections .folder-block:last-child {
  border-bottom: 0;
}

/* Administración avanzada reúne más módulos; en escritorio conserva el mismo
   ritmo de dos columnas que la colección principal. */
.secondary-collections .collection.is-advanced {
  grid-column: 1 / -1;
}

.secondary-collections .collection.is-advanced .folder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.secondary-collections .collection.is-advanced .folder-block:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}

.secondary-collections .collection.is-advanced .folder-block:nth-last-child(-n + 2) {
  border-bottom: 0;
}

/* Cuando hay un número impar de módulos, el último elemento de la columna
   derecha de la fila anterior conserva su separación inferior. */
.secondary-collections .collection.is-advanced .folder-block:nth-last-child(2):nth-child(even) {
  border-bottom: 1px solid var(--line-soft);
}

.listing-panel,
.search-panel,
.article-layout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 13px;
}

.page-breadcrumb button {
  padding: 0;
  border: 0;
  color: var(--brand-ink);
  background: transparent;
  cursor: pointer;
}

.page-breadcrumb button:hover {
  text-decoration: underline;
}

.page-breadcrumb .separator {
  color: #b4bac5;
}

.listing-header,
.search-header {
  padding: 30px 34px;
  border-bottom: 1px solid var(--line);
}

.listing-header h2,
.search-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.listing-header p,
.search-header p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.full-article-list {
  margin: 0;
  padding: 8px 34px 22px;
  list-style: none;
}

.full-article-list li {
  border-bottom: 1px solid var(--line-soft);
}

.full-article-list li:last-child {
  border-bottom: 0;
}

.full-article-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  padding: 18px 4px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.full-article-list button:hover {
  color: var(--brand-ink);
}

.full-article-list .article-icon {
  width: 19px;
}

.list-chevron {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-results {
  padding: 10px 34px 24px;
}

.search-result {
  width: 100%;
  display: block;
  padding: 20px 3px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result small {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 600;
}

.search-result strong {
  display: block;
  font-size: 16px;
  line-height: 1.45;
}

.search-result:hover strong {
  color: var(--brand-ink);
}

.empty-state {
  padding: 64px 30px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 9px;
  font-size: 22px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
}

.article-sidebar {
  padding: 28px 22px;
  background: #fafbfc;
  border-right: 1px solid var(--line);
}

.sidebar-label {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-category {
  margin: 0 0 17px;
  font-size: 17px;
  line-height: 1.4;
}

.sidebar-links {
  display: grid;
  gap: 3px;
}

.sidebar-links button {
  padding: 10px 11px;
  border: 0;
  border-radius: 6px;
  color: #4a5260;
  background: transparent;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.sidebar-links button:hover,
.sidebar-links button.is-current {
  color: var(--brand-ink);
  background: #eef0ff;
}

.article-content {
  min-width: 0;
  padding: 42px 54px 55px;
}

.article-content h2 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

.article-status {
  width: fit-content;
  margin: 0 0 13px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-status.is-verified {
  color: #176b4a;
}

.article-status.is-pending {
  color: #8a5a11;
}

.article-meta {
  margin: 13px 0 30px;
  color: var(--muted);
  font-size: 13px;
}

.article-detail-strip {
  max-width: 780px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 30px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.article-detail-strip > div {
  min-width: 0;
  padding: 13px 15px;
  border-right: 1px solid var(--line);
}

.article-detail-strip > div:last-child {
  border-right: 0;
}

.article-detail-strip span,
.source-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-detail-strip strong {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-lead {
  max-width: 780px;
  margin: 0 0 30px;
  color: #3f4754;
  font-size: 17px;
  line-height: 1.75;
}

.article-video {
  max-width: 780px;
  margin: 34px 0 38px;
  overflow: hidden;
  background: #0e1017;
  border-radius: 11px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
}

.article-video-heading {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 19px;
  color: white;
}

.article-video-heading span {
  display: block;
  margin-bottom: 4px;
  color: #aab2c2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-video-heading h3 {
  margin: 0;
  color: white;
  font-size: 16px;
}

.article-video-heading a {
  flex: 0 0 auto;
  color: #cfd4ff;
  font-size: 12px;
  text-decoration: none;
}

.article-video-heading a:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #08090d;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: white;
  background: #141625;
  border: 0;
  cursor: pointer;
}

.video-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-cover-brand {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #181a36, #4d43e8);
}

.video-cover-brand img {
  width: min(35%, 210px);
  filter: brightness(0) invert(1);
}

.video-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 25, 0.05), rgba(10, 12, 25, 0.64));
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--brand-violet);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(22, 18, 72, 0.32);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, background 160ms ease;
}

.video-play svg {
  width: 30px;
  fill: currentColor;
}

.video-cover:hover .video-play {
  background: var(--brand-blue);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-cover-copy {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.article-content h3 {
  margin: 35px 0 12px;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.article-content p,
.article-content li {
  max-width: 780px;
  color: #4a5260;
  font-size: 15px;
  line-height: 1.75;
}

.article-content ol,
.article-content ul {
  padding-left: 23px;
}

.article-note {
  max-width: 780px;
  margin: 28px 0;
  padding: 17px 19px;
  color: #31384a;
  background: #f3f2ff;
  border-left: 4px solid var(--brand-violet);
  border-radius: 0 8px 8px 0;
  line-height: 1.6;
}

.contextual-guide { margin-top: 30px; }

.contextual-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.75fr);
  gap: 14px;
  align-items: stretch;
}

.contextual-overview > section:first-child,
.contextual-card,
.contextual-settings,
.contextual-impact,
.contextual-diagnosis,
.contextual-map {
  padding: 20px;
  border: 1px solid #e1e5eb;
  border-radius: 12px;
  background: #fff;
}

.contextual-overview span,
.contextual-card > span,
.contextual-settings span,
.contextual-impact > span,
.contextual-diagnosis span,
.contextual-map > span,
.contextual-flow-head > span {
  display: block;
  margin-bottom: 7px;
  color: #6d5fe1;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contextual-overview h3,
.contextual-settings h3,
.contextual-impact h3,
.contextual-diagnosis h3,
.contextual-map h3,
.contextual-flow h3 {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.contextual-overview ul { margin: 13px 0 0; padding-left: 19px; }
.contextual-overview li { margin: 7px 0; color: #4d5868; font-size: 0.86rem; line-height: 1.55; }
.contextual-card { display: flex; flex-direction: column; justify-content: center; }
.contextual-card p,
.contextual-settings p,
.contextual-impact p,
.contextual-diagnosis p,
.contextual-map p { margin: 0; color: #566171; font-size: 0.88rem; line-height: 1.62; }
.contextual-card-success { border-color: #b7dfc7; background: #f5fcf7; }
.contextual-card-success > span { color: #278350; }
.contextual-card-warning,
.contextual-impact { border-color: #f0d5a6; background: #fffaf1; }
.contextual-card-warning > span,
.contextual-impact > span { color: #a56b0c; }
.contextual-card-check { border-color: #cddcf8; background: #f7faff; }
.contextual-card-check > span { color: #3769bd; }

.contextual-flow {
  margin-top: 22px;
  padding-top: 2px;
}

.contextual-flow-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.contextual-flow-head > span { margin: 0; }
.contextual-flow ol { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.contextual-flow li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 13px 14px; border-left: 3px solid #d8d2fb; background: #faf9ff; }
.contextual-flow li > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #6757d4; color: #fff; font-size: 0.68rem; font-weight: 800; }
.contextual-flow li p { margin: 3px 0 0; color: #475162; font-size: 0.88rem; line-height: 1.55; }

.contextual-settings { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; background: #fafbff; }
.contextual-settings > div + div { padding-left: 18px; border-left: 1px solid #e0e4ee; }
.contextual-impact { margin: 0; }
.contextual-diagnosis { display: grid; grid-template-columns: 1fr 0.9fr; gap: 22px; background: #fffaf1; }
.contextual-diagnosis ul { margin: 0; padding-left: 19px; color: #5f6774; font-size: 0.85rem; line-height: 1.55; }
.contextual-map { background: linear-gradient(135deg, #f8f6ff, #fff); }
.contextual-map > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.contextual-map > div p { padding: 12px; border-radius: 8px; background: rgba(255,255,255,.85); }
.contextual-map strong { display: block; margin-bottom: 5px; color: #39334f; font-size: 0.76rem; }

.api-reference {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid #d9e5ff;
  border-radius: 14px;
  background: linear-gradient(145deg, #f7faff 0%, #fbfdff 100%);
}

.api-reference-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.api-reference-heading span {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-reference-heading h3 {
  margin: 0;
  font-size: 1.16rem;
}

.api-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 14px;
}

.api-facts > div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #e1e8f5;
  border-radius: 10px;
  background: #fff;
}

.api-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.api-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.api-facts code,
.api-code code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.api-code {
  overflow: auto;
  margin: 0;
  padding: 16px;
  border-radius: 10px;
  background: #172134;
  color: #edf4ff;
  font-size: 0.79rem;
  line-height: 1.6;
  white-space: pre;
}

.api-footnote {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.api-reference-complete {
  padding: 0;
  overflow: hidden;
  border-color: #dfe4ec;
  background: #fff;
}

.api-operation-header {
  padding: 27px 29px 23px;
  border-bottom: 1px solid #e6e9ef;
}

.api-version {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 7px;
  background: #f0f2f5;
  color: #21252d;
  font-size: 0.78rem;
  font-weight: 800;
}

.api-operation-header h3 {
  margin: 14px 0 16px;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  line-height: 1.1;
}

.api-operation-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid #dce1e9;
  border-radius: 10px;
  background: #fafbfc;
}

.api-operation-line > code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #303744;
  font-size: 0.86rem;
}

.api-method {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 6px;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.api-method-get { background: #2583d8; }
.api-method-post { background: #2eaa69; }
.api-method-put { background: #cc8b13; }
.api-method-delete { background: #db3f4a; }
.api-method-config,
.api-method-control,
.api-method-observar { background: #696d76; }

.api-reference-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.api-reference-main {
  min-width: 0;
  padding: 28px 29px 35px;
}

.api-operation-summary {
  margin: 0 0 24px;
  color: #4d5564;
  line-height: 1.65;
}

.api-requirements {
  padding: 20px;
  border: 1px solid #dce1e9;
  border-radius: 12px;
  background: #fff;
}

.api-requirements h4,
.api-request h4,
.api-response h4 {
  margin: 0;
  color: #1e2633;
  font-size: 1.18rem;
}

.api-requirement-block + .api-requirement-block {
  margin-top: 19px;
}

.api-requirement-block > strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.91rem;
}

.api-requirement-block > div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.api-requirement-block code {
  display: inline-flex;
  padding: 7px 9px;
  border: 1px solid #dfe3e9;
  border-radius: 6px;
  background: #fff;
  color: #313947;
  font-size: 0.78rem;
}

.api-request,
.api-response {
  margin-top: 34px;
}

.api-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}

.api-section-heading span {
  color: #687283;
  font-size: 0.75rem;
}

.api-section-heading code {
  color: #434c5b;
}

.api-request-part {
  margin-top: 20px;
}

.api-request-part h5 {
  margin: 0 0 10px;
  color: #353e4d;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.api-parameter-table {
  overflow: hidden;
  border: 1px solid #e1e5eb;
  border-radius: 9px;
}

.api-parameter-row {
  display: grid;
  grid-template-columns: minmax(115px, 0.75fr) 74px minmax(0, 1.55fr);
  gap: 14px;
  padding: 14px 15px;
  border-bottom: 1px solid #e8ebef;
}

.api-parameter-row:last-child { border-bottom: 0; }

.api-parameter-row strong,
.api-parameter-row code {
  overflow-wrap: anywhere;
}

.api-parameter-row strong { display: block; font-size: 0.82rem; }
.api-parameter-row span { color: #7a8492; font-size: 0.72rem; }
.api-parameter-row p { margin: 5px 0 0; color: #667080; font-size: 0.78rem; line-height: 1.45; }
.api-required { color: #6e7785; font-size: 0.73rem; font-weight: 700; }
.api-required.is-required { color: #d6434b; }

.api-response-list {
  overflow: hidden;
  border: 1px solid #e1e5eb;
  border-radius: 9px;
}

.api-response-list > div {
  display: grid;
  grid-template-columns: 70px 125px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 13px 15px;
  border-bottom: 1px solid #e8ebef;
  font-size: 0.8rem;
}

.api-response-list > div:last-child { border-bottom: 0; }
.api-response-list strong { color: #313947; }
.api-response-list span { color: #687283; line-height: 1.4; }
.api-status { width: fit-content; padding: 4px 6px; border-radius: 5px; background: #edf8f0; color: #18743e; font-size: 0.72rem; }
.api-status-400,
.api-status-401,
.api-status-403,
.api-status-422,
.api-status-no2xx { background: #fff0f0; color: #bc343a; }
.api-status-4295xx { background: #fff6df; color: #a76c02; }

.api-code-panel {
  position: static;
  min-width: 0;
  padding: 23px;
  border-top: 1px solid #e6e9ef;
  border-left: 0;
  background: #f8fafc;
}

.api-code-panel-title {
  margin-bottom: 18px;
  color: #313947;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.api-language-tabs {
  display: flex;
  gap: 3px;
  margin: 0 -6px 16px;
  padding: 0 6px 9px;
  border-bottom: 1px solid #dfe4eb;
  overflow-x: auto;
}

.api-language-tabs button,
.api-code-toolbar button {
  border: 0;
  background: transparent;
  color: #6a7482;
  font-family: inherit;
  cursor: pointer;
}

.api-language-tabs button {
  flex: 0 0 auto;
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.api-language-tabs button.is-active { background: #e6efff; color: #2859a6; }

.api-code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.api-code-language { color: #677285; font-size: 0.76rem; font-weight: 700; }
.api-code-toolbar button { color: #2859a6; font-size: 0.75rem; font-weight: 800; }
.api-code-toolbar button:hover { text-decoration: underline; }
.api-code-panel .api-code { min-height: 0; max-height: 560px; font-size: 0.78rem; }
.api-code-panel > p { margin: 14px 0 0; color: #6e7887; font-size: 0.77rem; line-height: 1.55; }

.source-card {
  max-width: 780px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 35px 0 0;
  padding: 19px 20px;
  background: #f8f9fb;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.source-card strong {
  display: block;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.source-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.source-card a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  color: white;
  background: var(--brand-ink);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.source-card a:hover {
  background: var(--brand-blue);
}

.source-card svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pending-article {
  max-width: 780px;
  padding: 24px;
  color: #55401b;
  background: #fff9ec;
  border: 1px solid #f2d89d;
  border-radius: 9px;
}

.pending-article h3 {
  margin-top: 0;
  color: #6d4810;
}

.pending-article p:last-child {
  margin-bottom: 0;
}

.article-toc {
  max-width: 780px;
  margin: 34px 0;
  padding: 23px 25px;
  background: #f8f9fb;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.article-toc > span {
  display: block;
  margin-bottom: 13px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.article-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 30px;
  margin: 0;
  padding-left: 21px;
}

.article-toc li {
  color: var(--brand-violet);
  font-size: 13px;
  line-height: 1.5;
}

.article-toc button {
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.article-toc button:hover {
  color: var(--brand-violet);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-section {
  max-width: 780px;
  padding-top: 8px;
  scroll-margin-top: 24px;
}

.guide-section + .guide-section {
  margin-top: 24px;
  padding-top: 35px;
  border-top: 1px solid var(--line-soft);
}

.guide-section > h3 {
  margin-top: 0;
  font-size: 25px;
}

.guide-subsection {
  margin-top: 27px;
}

.guide-subsection h4 {
  margin: 0 0 9px;
  color: var(--ink-soft);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.article-figure {
  max-width: 780px;
  margin: 27px 0 11px;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #f4f5f7;
  border: 1px solid #dfe2e8;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(25, 30, 45, 0.1);
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.shortcut-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.shortcut-list > div {
  display: grid;
  grid-template-columns: minmax(155px, 0.55fr) 1fr;
  align-items: center;
  gap: 20px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line-soft);
}

.shortcut-list > div:last-child {
  border-bottom: 0;
}

.shortcut-list kbd {
  width: fit-content;
  padding: 5px 8px;
  color: var(--ink-soft);
  background: #f5f6f8;
  border: 1px solid #d9dde5;
  border-bottom-width: 2px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.shortcut-list span {
  color: #4a5260;
  font-size: 14px;
}

.faq-list {
  display: grid;
  gap: 9px;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  position: relative;
  padding: 16px 45px 16px 17px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 17px;
  content: "+";
  color: var(--brand-violet);
  font-size: 20px;
  font-weight: 400;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 17px 17px;
  font-size: 14px;
}

.article-helpful {
  max-width: 780px;
  margin-top: 46px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.article-helpful > p:first-child {
  margin: 0 0 13px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.article-feedback-actions {
  display: flex;
  gap: 8px;
}

.article-feedback-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #d8dde6;
  border-radius: 7px;
  background: #fff;
  color: #4f5969;
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 700;
  cursor: pointer;
}

.article-feedback-actions button:hover,
.article-feedback-actions button.is-selected {
  border-color: #7b6be8;
  background: #f5f3ff;
  color: #5546be;
}

.article-feedback-actions svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.article-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 17px;
  border: 1px solid #dcd8fa;
  border-radius: 10px;
  background: #faf9ff;
}

.article-support strong,
.article-support span {
  display: block;
}

.article-support strong {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.article-support div > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.article-support a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--brand-violet);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.article-support a:hover { background: #5d4eca; }
.article-feedback-message { min-height: 1.2em; margin: 12px 0 0; color: #5e50c6; font-size: 0.78rem; }

.site-footer {
  padding: 42px 0;
  color: #cbd0da;
  background: #11131a;
}

.footer-inner {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-inner img {
  width: 110px;
  filter: brightness(0) invert(1);
}

.footer-inner p {
  margin: 11px 0 0;
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a,
.footer-links button {
  padding: 0;
  border: 0;
  color: #dce0e7;
  background: transparent;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .header-inner {
    width: min(100% - 32px, var(--content-width));
    min-height: 66px;
  }

  .brand-logo {
    width: 105px;
  }

  .brand-label {
    font-size: 15px;
  }

  .mobile-menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 66px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    padding: 8px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-panel);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 6px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: #f3f2ff;
  }

  .nav-login {
    margin-left: 0;
  }

  .hero-inner {
    width: min(100% - 32px, var(--content-width));
    min-height: 210px;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 0;
  }

  .hero-copy {
    display: block;
  }

  .hero-home-link {
    margin-bottom: 16px;
  }

  .search-form {
    width: 100%;
  }

  .app-shell {
    width: min(100% - 32px, var(--content-width));
  }

  .secondary-collections {
    grid-template-columns: 1fr;
  }

  .secondary-collections .collection.is-advanced .folder-grid {
    grid-template-columns: 1fr;
  }

  .secondary-collections .collection.is-advanced .folder-block,
  .secondary-collections .collection.is-advanced .folder-block:nth-child(odd),
  .secondary-collections .collection.is-advanced .folder-block:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .secondary-collections .collection.is-advanced .folder-block:last-child {
    border-bottom: 0;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    display: none;
  }

  .article-content {
    padding: 34px 30px 42px;
  }

  .api-reference-grid {
    grid-template-columns: 1fr;
  }

  .api-code-panel {
    position: static;
    border-top: 1px solid #e6e9ef;
    border-left: 0;
  }

  .article-video-heading,
  .source-card {
    align-items: flex-start;
  }

  .source-card {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .brand-divider,
  .brand-label {
    display: none;
  }

  .folder-grid {
    grid-template-columns: 1fr;
  }

  .folder-block,
  .folder-block:nth-child(odd),
  .folder-block:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .folder-block:last-child {
    border-bottom: 0;
  }

  .collection-header {
    padding: 15px 18px;
  }

  .collection-header h2 {
    font-size: 18px;
  }

  .folder-block {
    padding: 23px 20px;
  }

  .article-preview-list,
  .view-all {
    margin-left: 0;
  }

  .listing-header,
  .search-header {
    padding: 25px 22px;
  }

  .full-article-list,
  .search-results {
    padding-right: 20px;
    padding-left: 20px;
  }

  .article-content {
    padding: 29px 22px 38px;
  }

  .article-detail-strip {
    grid-template-columns: 1fr;
  }

  .api-facts {
    grid-template-columns: 1fr;
  }

  .api-reference {
    padding: 19px;
  }

  .api-reference-complete { padding: 0; }

  .api-operation-header,
  .api-reference-main,
  .api-code-panel { padding: 21px; }

  .api-operation-line { align-items: flex-start; }

  .api-parameter-row,
  .api-response-list > div { grid-template-columns: 1fr; gap: 5px; }

  .api-parameter-row > div:nth-child(2) { margin-top: 2px; }

  .article-support {
    align-items: flex-start;
    flex-direction: column;
  }

  .contextual-overview,
  .contextual-settings,
  .contextual-diagnosis { grid-template-columns: 1fr; }

  .contextual-settings > div + div { padding-top: 16px; padding-left: 0; border-top: 1px solid #e0e4ee; border-left: 0; }

  .contextual-map > div { grid-template-columns: 1fr; }

  .article-detail-strip > div,
  .article-detail-strip > div:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .article-detail-strip > div:last-child {
    border-bottom: 0;
  }

  .article-video-heading {
    flex-direction: column;
  }

  .article-toc ol {
    grid-template-columns: 1fr;
  }

  .shortcut-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-inner {
    width: min(100% - 32px, var(--content-width));
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
