:root {
  --bg: #16171b;
  --bg-deep: #111215;
  --panel: #202228;
  --panel-2: #272a31;
  --chip: #2e3139;
  --line: #33363f;
  --text: #e6e7ea;
  --muted: #a6aab4;
  --faint: #8b909b;
  --accent: #ff8a73;
  --accent-tint: rgba(255, 138, 115, 0.13);
  --button: #c63d31;
  --button-hover: #a9322a;
  --good: #2b6b47;
  --radius: 14px;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid #ffb8aa;
  outline-offset: 2px;
  border-radius: 6px;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: #393c46;
  color: #f2f3f5;
  padding: 0.1em 0.3em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: #f4f5f7;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--button);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

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

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item {
  position: relative;
}

.nav__list > .nav__item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
}

.nav__item--menu > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav__list > .nav__item > a:hover,
.nav__list > .nav__item > a.is-section,
.nav__list > .nav__item > a[aria-current="page"] {
  background: var(--chip);
  color: #fff;
  text-decoration: none;
}

.nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.nav__item--menu:hover .nav__sub,
.nav__item--menu:focus-within .nav__sub {
  display: block;
}

.nav__sub a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
}

.nav__sub a:hover,
.nav__sub a[aria-current="page"] {
  background: var(--chip);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle::before {
  content: "";
  width: 16px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat;
}

.btn,
.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  background: var(--chip);
  color: var(--text);
}

.btn:hover {
  background: #383c46;
  text-decoration: none;
}

.btn--primary,
.copy {
  background: var(--button);
  color: #fff;
}

.btn--primary:hover,
.copy:hover {
  background: var(--button-hover);
}

.copy {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.copy.is-copied {
  background: var(--good);
}

.btn--external::after,
.link-list a[target="_blank"]::after {
  content: "\2197";
  font-weight: 400;
  color: var(--faint);
}

.ipbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
}

.ipbox code {
  background: none;
  padding: 0;
  font-size: 14px;
}

.ipbox--lg {
  padding: 5px 5px 5px 16px;
}

.ipbox--lg code {
  font-size: 15px;
}

.ipbox--lg .copy {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  font-size: 14px;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--faint);
}

.crumbs a {
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li,
.chips .chip {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--chip);
  color: #c9ccd3;
}

.chips .chip--accent {
  background: var(--accent-tint);
  color: var(--accent);
}

.rank {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 6px;
  background: var(--accent-tint);
  color: var(--accent);
  white-space: nowrap;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.byline img {
  width: 24px;
  height: 24px;
}

.byline__who {
  color: #d3d5da;
  font-weight: 500;
}

@media (min-width: 761px) {
  .byline__when::before {
    content: "\00b7";
    margin-right: 10px;
    color: var(--faint);
  }
}

@media (max-width: 760px) {
  .byline__when {
    flex-basis: 100%;
    padding-left: 34px;
    margin-top: -4px;
  }
}

.page-head {
  padding: 32px 0 20px;
}

.page-head h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 10px;
  max-width: 820px;
}

.page-head__dek {
  margin: 0;
  max-width: 780px;
  font-size: 16.5px;
  color: #c3c6cd;
}

.project-head {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0 18px;
}

.project-head__icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.project-head h1 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  margin: 0;
}

.project-head__summary {
  margin: 4px 0 10px;
  color: #c3c6cd;
  font-size: 15.5px;
}

.project-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.project-head__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.project-head__links {
  display: flex;
  gap: 8px;
}

.article-head {
  padding: 26px 0 18px;
  max-width: 860px;
}

.article-head h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin: 12px 0 10px;
}

.article-head__dek {
  margin: 0;
  font-size: 17px;
  color: #c3c6cd;
}

.section-nav {
  display: flex;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px;
  margin: 4px 0 0;
  background: var(--panel);
  border-radius: 999px;
  scrollbar-width: none;
}

.byline + .section-nav {
  margin-top: 16px;
}

.section-nav a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.section-nav a:hover {
  background: var(--chip);
  text-decoration: none;
}

.section-nav a[aria-current="true"] {
  background: var(--accent-tint);
  color: var(--accent);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
  margin: 20px 0 56px;
}

.main-col > * + * {
  margin-top: 24px;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
}

.section-head h2 {
  font-size: 22px;
  margin: 0 0 6px;
}

.section-head p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 760px;
}

.block-title {
  font-size: 22px;
  margin: 0 0 14px;
}

.summary-box {
  background: var(--panel-2);
  border-left: 3px solid var(--button);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-size: 15.5px;
}

.summary-box p {
  margin: 0;
}

.prose .summary-box {
  margin: 0 0 24px;
}

.listing {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
}

.listing + .listing {
  margin-top: 14px;
}

.listing__top {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
}

.listing__thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.listing__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.listing__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex: none;
}

.listing__title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.listing__title h3 a {
  color: #fff;
}

.listing__kind {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.listing__title .rank {
  margin-left: auto;
  align-self: flex-start;
}

.listing .chips {
  margin: 12px 0 14px;
}

.listing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.listing__actions .btn {
  height: 38px;
}

.listing__more {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.listing__more p {
  margin: 0;
  color: #d3d5da;
}

.facts {
  display: grid;
  gap: 0;
  margin: 0;
  font-size: 14px;
}

.facts div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.facts div:last-child {
  border-bottom: 0;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.table-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table caption {
  caption-side: bottom;
  text-align: left;
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px;
  background: var(--panel);
}

.table th,
.table td {
  padding: 11px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.table thead th {
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.table tbody th {
  color: #c9ccd3;
  font-weight: 600;
  width: 19%;
}

.table .is-generic {
  color: var(--muted);
}

.table--four {
  table-layout: fixed;
}

.table--four th,
.table--four td {
  padding: 11px 12px;
}

.table--four thead th:first-child {
  width: 14%;
}

.table--four code {
  font-size: 12.5px;
}

.prose {
  font-size: 16px;
  line-height: 1.72;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  font-size: 22px;
  margin: 36px 0 10px;
  padding-top: 4px;
}

.prose h3 {
  font-size: 17px;
  margin: 24px 0 6px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li + li {
  margin-top: 4px;
}

.prose a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 138, 115, 0.45);
  text-underline-offset: 3px;
}

.prose .table-wrap {
  margin: 8px 0 18px;
  background: var(--panel-2);
}

.prose .table caption {
  background: var(--panel-2);
}

.prose .table thead th {
  background: #30333b;
}

.lead {
  font-size: 16.5px;
  color: #eceef1;
}

.banner,
.cover {
  margin: 0 0 20px;
}

.banner img,
.cover img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.cover img {
  border-radius: var(--radius);
}

.note {
  background: var(--panel-2);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 6px 0 18px;
}

.note h3,
.note__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.note p {
  margin: 0;
}

.realm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  margin: 8px 0 18px;
}

.realm-grid > div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.realm-grid h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.realm-grid p {
  margin: 0 0 8px;
  font-size: 15px;
  color: #d3d5da;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 18px;
}

.gallery--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
}

.gallery figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.two-col h2 {
  font-size: 20px;
  margin: 0 0 10px;
}

.two-col p {
  margin: 0 0 12px;
}

.marks {
  list-style: none;
  counter-reset: mark;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.marks li {
  counter-increment: mark;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.marks li::before {
  content: counter(mark, decimal-leading-zero);
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  padding-top: 2px;
}

.marks h3 {
  margin: 0 0 4px;
  font-size: 15.5px;
}

.marks p {
  margin: 0;
  font-size: 14.5px;
  color: #cfd2d8;
  grid-column: 2;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 14px 0 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 14px 42px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--chip);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  font-weight: 600;
  font-size: 15.5px;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .answer {
  padding: 0 2px 14px;
  color: #d3d5da;
}

.faq .answer p {
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  color: var(--text);
}

.cards a:hover {
  border-color: #4a4e59;
  text-decoration: none;
}

.cards img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cards__body {
  padding: 12px 14px 16px;
}

.cards__title {
  display: block;
  margin: 8px 0 4px;
  font-weight: 700;
  font-size: 15.5px;
  color: #fff;
}

.cards__blurb {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.sidebar {
  display: grid;
  gap: 16px;
}

.widget {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
}

.widget h2 {
  font-size: 16px;
  margin: 0 0 12px;
}

.widget p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.server-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.server-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.server-row img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  grid-row: span 2;
}

.server-row__name {
  font-weight: 700;
  color: #fff;
}

.server-row__name .rank {
  margin-left: 6px;
}

.server-row__ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

.server-row__ip code {
  background: none;
  padding: 0;
}

.server-row__note {
  grid-column: 2;
  font-size: 12.5px;
  color: var(--faint);
}

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

.rank-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.rank-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.rank-list .rank {
  justify-self: start;
  align-self: start;
  margin-top: 1px;
}

.rank-list__name {
  display: block;
  font-weight: 700;
  color: #fff;
}

a.rank-list__name {
  color: #fff;
}

.rank-list__ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
  font-size: 13px;
}

.rank-list__ip code {
  background: none;
  padding: 0;
}

.rank-list__note {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--faint);
}

.listing--text .listing__top {
  grid-template-columns: minmax(0, 1fr);
}

.listing__address {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.listing__address code {
  margin-left: 6px;
  font-size: 14px;
}

.listing__text p + p {
  margin-top: 12px;
}

.listing__more .listing__note {
  font-size: 14px;
  color: var(--muted);
}

.listing__note strong {
  color: #d9dbe0;
}

.details {
  margin: 0;
  font-size: 14px;
}

.details div {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.details div:first-child {
  border-top: 0;
  padding-top: 0;
}

.details dt {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}

.details dd {
  margin: 2px 0 0;
}

.details .ipline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.link-list,
.toc,
.thumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li + li,
.toc li + li {
  margin-top: 6px;
}

.link-list a {
  display: inline-flex;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.toc a {
  color: var(--muted);
  font-size: 14px;
}

.toc a:hover {
  color: #fff;
}

.thumb-list li + li {
  margin-top: 12px;
}

.thumb-list a {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
}

.thumb-list img {
  width: 76px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.check {
  border-top: 1px solid var(--line);
  padding-top: 6px;
  margin-top: 18px;
}

.check h3 {
  margin-top: 10px;
}

.found {
  background: var(--panel-2);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
}

.found p {
  margin: 0;
}

.found strong {
  color: #fff;
}

.checklist {
  list-style: none;
  padding: 0 !important;
  columns: 2;
  column-gap: 24px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  break-inside: avoid;
  margin: 0 0 8px !important;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--faint);
  border-radius: 4px;
}

.lost {
  max-width: 720px;
  padding: 56px 0 72px;
}

.lost h1 {
  font-size: clamp(30px, 5vw, 44px);
  margin: 6px 0 12px;
}

.lost__code {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}

.lost .cards {
  margin-top: 24px;
}

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer h2 {
  font-size: 14px;
  color: #fff;
  margin: 0 0 10px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 6px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .brand {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
}

.site-footer .brand img {
  width: 28px;
  height: 28px;
}

.site-footer__about p {
  margin: 0;
  max-width: 420px;
}

.site-footer__legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.site-footer__legal p {
  margin: 0 0 6px;
}

.disclosure {
  color: #d9dbe0;
  font-weight: 600;
}

@media (max-width: 1080px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .widget--toc {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px;
  }

  .js .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav__item--menu > a::after {
    display: none;
  }

  .nav__sub {
    display: block;
    position: static;
    border: 0;
    box-shadow: none;
    background: none;
    padding: 0 0 6px 14px;
    min-width: 0;
  }

  .nav__sub a {
    color: var(--muted);
  }

  .site-header__bar {
    flex-wrap: wrap;
  }

  .project-head {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
  }

  .project-head__icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .project-head__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 16px;
  }

  .js .nav {
    padding: 8px 16px 16px;
  }

  .sidebar,
  .two-col,
  .marks,
  .listing__more,
  .realm-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-col {
    gap: 8px;
  }

  .listing__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .panel {
    padding: 18px 16px;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .table-wrap {
    background: none;
  }

  .table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .table--stack,
  .table--stack tbody,
  .table--stack tr,
  .table--stack th,
  .table--stack td,
  .table--stack caption {
    display: block;
    width: 100%;
  }

  .table--stack tr {
    background: var(--panel);
    border-radius: 12px;
    padding: 6px 14px;
    margin-bottom: 10px;
  }

  .prose .table--stack tr {
    background: var(--panel-2);
  }

  .table--stack tbody th {
    width: 100%;
    padding: 8px 0 6px;
    color: #fff;
    font-size: 15px;
  }

  .table--stack td {
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
  }

  .table--stack td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 13px;
  }

  .table--stack td code {
    justify-self: start;
  }

  .table--stack tr > :last-child {
    border-bottom: 0;
  }

  .table--stack caption {
    padding: 4px 0 0;
    background: none !important;
  }

  .checklist {
    columns: 1;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .cards a {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
  }

  .cards img {
    width: 112px;
    flex: none;
    border-radius: 8px;
  }

  .cards__body {
    padding: 0;
    min-width: 0;
  }

  .cards__title {
    margin: 6px 0 2px;
  }

  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-head__actions .ipbox {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 15.5px;
  }

  .brand img {
    width: 28px;
    height: 28px;
  }

  .listing__actions .btn {
    flex: 1 1 auto;
  }
}
