/* ==========================================================================
   Wiki (developer docs) — two-axis horizontal navigation ("By Protocol" /
   "By Device Model") above a full-width content card.
   Live leantegra.com tokens: lime #E6FF2A, cards #16171B / #2A2E32, 24px
   radius, FixelDisplay.
   ========================================================================== */

#Wiki {
  padding: 0 10px;
}

#Wiki .wrapper {
  padding-bottom: 120px;
}

/* ---------- Horizontal menus ---------- */
.Wiki__Menus {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0 24px;
}

/* ---------- Page header ----------
   Same component as the Devices / Software catalogs (#CatalogHero): a large
   page title with a smaller summary line underneath. Redefined here so Wiki
   pages don't have to load catalog-styles.css; the `-Wiki` modifier only
   reduces the top padding, since the docs pages don't want the landing-page
   airiness. */
#CatalogHero.-Wiki {
  display: flex;
  padding: 72px 10px 24px;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
}

#CatalogHero.-Wiki .wrapper {
  gap: 16px;
}

#CatalogHero.-Wiki .CatalogHero__Text {
  color: #ffffff36;
  font-size: 72px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.576px;
  width: 100%;
  align-self: stretch;
}

#CatalogHero.-Wiki .CatalogHero__Text h1 {
  color: #fff;
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

#CatalogHero.-Wiki .CatalogHero__Caption {
  color: #fff;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.864px;
  opacity: 0.5;
  width: 100%;
  max-width: 600px;
}

@media (max-width: 750px) {
  #CatalogHero.-Wiki {
    padding: 48px 10px 16px;
  }

  #CatalogHero.-Wiki .CatalogHero__Text {
    font-size: 48px;
  }

  #CatalogHero.-Wiki .CatalogHero__Caption {
    font-size: 18px;
  }
}

@media (max-width: 500px) {
  #CatalogHero.-Wiki .CatalogHero__Text {
    font-size: 36px;
  }

  #CatalogHero.-Wiki .CatalogHero__Caption {
    font-size: 15px;
  }
}

.Wiki__Menu {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.Wiki__Menu__Label {
  flex: 0 0 150px;
  color: #FFFFFF50;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 7px;
}

.Wiki__Menu__Items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.Wiki__Menu__Item,
.Wiki__Menu__Soon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}

.Wiki__Menu__Item {
  color: #FFF;
  background: #2A2E32;
}

.Wiki__Menu__Item:hover {
  color: #E6FF2A;
}

.Wiki__Menu__Item.-active {
  background: #E6FF2A;
  color: #15171A;
}

.Wiki__Menu__Soon {
  color: #FFF;
  border: 1px solid #2A2E32;
  cursor: default;
}

.Wiki__Menu__Tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FFFFFF55;
}

/* ---------- Content card ---------- */
.Wiki__Content {
  background: #16171B;
  border-radius: 24px;
  padding: 48px;
  color: #FFF;
  font-size: 16px;
  line-height: 165%;
  letter-spacing: -0.1px;
}

/* Readable measure for running text; tables and code blocks stay full width. */
.Wiki__Content p,
.Wiki__Content ul,
.Wiki__Content ol,
.Wiki__Content blockquote,
.Wiki__Content .Wiki__Content__Lead {
  max-width: 820px;
}

.Wiki__Content > *:first-child {
  margin-top: 0;
}

.Wiki__Content h1 {
  font-size: 38px;
  font-weight: 600;
  line-height: 110%;
  letter-spacing: -1.5px;
  margin: 0 0 24px;
}

.Wiki__Content h2 {
  font-size: 24px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: -1px;
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid #2A2E32;
}

.Wiki__Content h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: #FFF;
  margin: 36px 0 10px;
}

.Wiki__Content p {
  margin: 0 0 16px;
  color: #FFFFFFcc;
}

.Wiki__Content__Lead {
  color: #FFFFFFdd;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: -0.3px;
  margin-bottom: 24px;
}

.Wiki__Content a {
  color: #E6FF2A;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.Wiki__Content a:hover {
  color: #FFF;
}

.Wiki__Content strong {
  color: #FFF;
  font-weight: 600;
}

.Wiki__Content ul,
.Wiki__Content ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #FFFFFFcc;
}

.Wiki__Content li {
  margin: 0 0 8px;
}

.Wiki__Content code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  background: #000;
  border: 1px solid #2A2E32;
  border-radius: 6px;
  padding: 1px 6px;
  color: #E6FF2A;
}

.Wiki__Content pre {
  background: #000;
  border: 1px solid #2A2E32;
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 0 0 16px;
}

.Wiki__Content pre code {
  background: none;
  border: 0;
  padding: 0;
  color: #FFF;
  font-size: 14px;
  line-height: 1.6;
}

.Wiki__Content blockquote {
  margin: 0 0 16px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid #E6FF2A;
  color: #FFFFFF88;
}

/* ---------- Frame / structure diagrams ----------
   Inline SVG so the diagrams stay sharp at any zoom, follow the site palette,
   and need no image assets. */
/* ---------- Screenshots ----------
   Product pages moved in from /software/ carry screenshot rows. pageBuilder
   rewrites every <img src> into a responsive <picture>, so both are styled. */
.Wiki__Shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 0 28px;
}

.Wiki__Shots.-one   { grid-template-columns: 1fr; }

/* Device photographs come from a camera, so their aspect ratios differ. Lock
   them to a common frame so a row of them lines up; screenshots are uniform
   already and are left at their natural ratio. */
/* -photos caps the width so product shots stay supporting imagery rather than
   pushing the specifications off-screen. -uniform is separate: it forces a
   common frame, needed only where the source photos differ in shape. */
.Wiki__Shots.-photos        { max-width: 620px; }
.Wiki__Shots.-photos.-three { max-width: 940px; }
.Wiki__Shots.-photos.-small  { max-width: 434px; }   /* 70% of the default cap */

.Wiki__Shots.-uniform img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.Wiki__Shots figure { margin: 0; }

.Wiki__Shots figcaption {
  color: #FFFFFF88;
  font-size: 13px;
  line-height: 145%;
  margin-top: 10px;
}
.Wiki__Shots.-three { grid-template-columns: repeat(3, 1fr); }

.Wiki__Shots picture { display: block; }

.Wiki__Shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #2A2E32;
  background: #0D0E10;
}

@media (max-width: 700px) {
  .Wiki__Shots,
  .Wiki__Shots.-three { grid-template-columns: 1fr; }
}

.Wiki__Figure {
  margin: 0 0 28px;
  padding: 24px;
  background: #000;
  border: 1px solid #2A2E32;
  border-radius: 16px;
  overflow-x: auto;
}

.Wiki__Figure svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 560px;
}

.Wiki__Figure figcaption {
  color: #FFFFFF88;
  font-size: 13px;
  line-height: 150%;
  margin-top: 16px;
  min-width: 560px;
}

/* SVG type roles */
.Wiki__Figure .d-field { fill: #2A2E32; stroke: #3C4147; stroke-width: 1; }
.Wiki__Figure .d-field-alt { fill: #16171B; stroke: #3C4147; stroke-width: 1; }
.Wiki__Figure .d-field-key { fill: #E6FF2A; stroke: none; }
.Wiki__Figure .d-field-mute { fill: #0D0E10; stroke: #23262A; stroke-width: 1; }
.Wiki__Figure .d-name { fill: #FFF; font-size: 13px; font-weight: 500; }
.Wiki__Figure .d-name-dark { fill: #15171A; font-size: 13px; font-weight: 600; }
.Wiki__Figure .d-sub { fill: #FFFFFF88; font-size: 11px; }
.Wiki__Figure .d-sub-dark { fill: #15171A; font-size: 11px; opacity: .8; }
.Wiki__Figure .d-bits { fill: #FFFFFF55; font-size: 10px; }
.Wiki__Figure .d-val { fill: #E6FF2A; font-size: 11px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.Wiki__Figure .d-label { fill: #FFF; font-size: 12px; font-weight: 500; }
.Wiki__Figure .d-axis { stroke: #3C4147; stroke-width: 1; }
.Wiki__Figure .d-axis-key { stroke: #E6FF2A; stroke-width: 1.5; }
.Wiki__Figure .d-dash { stroke: #3C4147; stroke-width: 1; stroke-dasharray: 3 3; }
.Wiki__Figure .d-node { fill: #16171B; stroke: #E6FF2A; stroke-width: 1.5; }

.Wiki__Content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 150%;
  display: block;
  overflow-x: auto;
}

.Wiki__Content th,
.Wiki__Content td {
  border: 1px solid #2A2E32;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}

.Wiki__Content thead th {
  background: #2A2E32;
  color: #FFF;
  font-weight: 500;
  white-space: nowrap;
}

.Wiki__Content td code {
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 750px) {
  .Wiki__Menu {
    flex-direction: column;
    gap: 8px;
  }

  .Wiki__Menu__Label {
    flex: none;
    padding-top: 0;
  }

  .Wiki__Content {
    padding: 32px 22px;
  }

  .Wiki__Content h1 {
    font-size: 30px;
  }

  .Wiki__Content h2 {
    font-size: 22px;
  }
}

/* ---------- Index (table of contents on /wiki/) ---------- */

.Wiki__Content .Wiki__Index__Group + .Wiki__Index__Group {
  margin-top: 44px;
}

.Wiki__Content .Wiki__Index__Label {
  color: #FFFFFF50;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2A2E32;
}

.Wiki__Content .Wiki__Index__List {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2px;
  list-style: none;
  margin: 0;
  max-width: none;
  padding: 0;
}

.Wiki__Content .Wiki__Index__List li {
  margin: 0;
}

.Wiki__Content .Wiki__Index__Link {
  border-radius: 10px;
  display: block;
  height: 100%;
  padding: 13px 15px;
  text-decoration: none;
  transition: background-color .2s ease-in-out;
}

.Wiki__Content .Wiki__Index__Link:hover {
  background: #1D2024;
}

.Wiki__Content .Wiki__Index__Name {
  color: #E6FF2A;
  display: block;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.2px;
  margin-bottom: 3px;
}

.Wiki__Content .Wiki__Index__Desc {
  color: #FFFFFF80;
  display: block;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 150%;
}

@media (max-width: 750px) {
  .Wiki__Content .Wiki__Index__List {
    grid-template-columns: 1fr;
  }
}
