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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: #0b0b0c;
  color: #f4f4f5;
  font-family: Arial, sans-serif;
  font-size: 1.0125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: flex-start;
}

.sidenav {
  position: sticky;
  top: 0;
  flex: 0 0 15.5rem;
  width: 15.5rem;
  height: 100vh;
  overflow-y: auto;
  padding: 1.35rem 0.9rem 2rem;
  border-right: 1px solid #27272a;
  background: #0b0b0c;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sidenav a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.35;
  padding: 0.38rem 0.55rem;
  border-radius: 6px;
}

.sidenav a.sub {
  padding-left: 1.2rem;
  font-size: 0.8rem;
}

.sidenav a:hover {
  color: #f4f4f5;
  background: #18181b;
  text-decoration: none;
}

.sidenav a.active {
  color: #f4f4f5;
  background: #18181b;
}

.page {
  flex: 1;
  min-width: 0;
}

section,
h2,
h3 {
  scroll-margin-top: 1rem;
}

a {
  color: #e4e4e7;
  text-decoration-color: #3f3f46;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
  text-decoration-color: #dc2626;
}

:focus-visible {
  outline: 2px solid #fafafa;
  outline-offset: 3px;
}

.wrap {
  width: min(46rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.wide {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
}

.table-panel .wide {
  width: min(64rem, calc(100% - 2rem));
}

.site-header {
  padding: 2.75rem 0 2rem;
  border-bottom: 1px solid #27272a;
}

.kicker {
  margin: 0 0 0.65rem;
  color: #71717a;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.site-header h1 span {
  color: #dc2626;
}

main {
  padding-bottom: 5rem;
}

section {
  padding: 2.6rem 0;
  border-bottom: 1px solid #27272a;
}

h2 {
  margin: 0 0 1.1rem;
  font-size: 1.28rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  color: #f4f4f5;
}

h3 {
  margin: 1.8rem 0 0.85rem;
  font-size: 1.12rem;
  font-weight: 550;
}

h4 {
  margin: 1.5rem 0 0.7rem;
  font-size: 1.02rem;
  font-weight: 550;
}

#install-instructions h2 + h3 {
  margin-top: 0.45rem;
}

#install-instructions h3 {
  margin-top: 2.6rem;
  margin-bottom: 0.35rem;
}

#install-instructions h3 + h4 {
  margin-top: 0.4rem;
}

#install-instructions h4 {
  margin-top: 1.85rem;
}

.content ul {
  margin: 0;
  padding-left: 1.15rem;
}

.content p {
  margin: 0 0 1rem;
}

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

.content li + li,
.content li ul {
  margin-top: 0.45rem;
}

.content li ul {
  padding-left: 1.1rem;
}

code,
.cmd {
  font-family: Arial, sans-serif;
  font-size: 0.84em;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 4px;
  padding: 0.08em 0.38em;
}

.cmd-block {
  position: relative;
  margin: 0.7rem 0 0.9rem;
}

.cmd-block pre {
  margin: 0;
  overflow-x: auto;
  background: #111113;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 0.9rem 2.6rem 0.9rem 1rem;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid #27272a;
  border-radius: 6px;
  background: #18181b;
  color: #a1a1aa;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.copy-btn:hover {
  color: #f4f4f5;
  border-color: #3f3f46;
}

.figure {
  margin: 0.75rem 0 1.1rem;
}

.figure img,
.shot {
  display: block;
  max-width: min(100%, 36rem);
  height: auto;
  border: 1px solid #27272a;
  border-radius: 8px;
}

.video {
  margin: 1rem 0 0.4rem;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid #27272a;
  border-radius: 8px;
  overflow: hidden;
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.fold {
  margin: 0;
}

.fold > summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.fold > summary::-webkit-details-marker,
.fold > summary::marker {
  display: none;
  content: "";
}

.fold > summary h2 {
  margin: 0;
}

.fold-tri {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #a1a1aa;
  flex-shrink: 0;
}

.fold[open] > summary .fold-tri {
  transform: rotate(90deg);
}

.fold-body {
  margin-top: 1.1rem;
}

.patch-head {
  width: 100%;
}

.patch-head thead th {
  border-bottom: 1px solid #27272a;
}

.patch-fold {
  border-bottom: 1px solid #27272a;
}

.patch-fold > summary {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 550;
  color: #f4f4f5;
}

.patch-fold table {
  width: 100%;
}

.table-scroll {
  margin-top: 1.25rem;
  overflow-x: visible;
}

.table-panel .table-scroll {
  border: 1px solid #27272a;
  border-radius: 0;
  background: transparent;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  line-height: 1.5;
}

.table-panel table {
  table-layout: fixed;
  font-size: 0.8rem;
  line-height: 1.4;
}

.table-panel .col-manifest {
  width: 28%;
}

.table-panel .col-date {
  width: 13%;
}

.table-panel .col-version {
  width: 12%;
}

.table-panel .col-notes {
  width: 18%;
}

.table-panel .col-comment {
  width: 29%;
}

.zhm-table .col-zhm-range,
.zhm-table .col-zhm-sdk {
  width: 50%;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.7rem;
  border-bottom: 1px solid #27272a;
}

th {
  background: #161618;
  color: #a1a1aa;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.notable th {
  position: sticky;
  top: 0;
  z-index: 5;
}

.table-panel thead th {
  position: static;
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  font-weight: 550;
  color: #f4f4f5;
  background: transparent;
  padding: 0.7rem 1rem;
}

.table-panel td {
  padding: 0.7rem 1rem;
  color: #f4f4f5;
  font-size: 0.8rem;
}

.table-panel tbody tr:last-child td {
  border-bottom: 0;
}

.table-panel td:nth-child(2) {
  white-space: normal;
}

tbody tr:hover td {
  background: rgba(255, 255, 255, 0.015);
}

.manifest {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  white-space: nowrap;
}

.patch-group td {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 550;
  color: #f4f4f5;
  background: #1a1a1d;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.patch-group.allowed ~ tr td {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#patch-table .notes-col,
#patch-table .comment-col {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.manifest .id-epic {
  color: #a1a1aa;
}

.manifest .steam-id {
  color: #7ec8f3;
  cursor: pointer;
}

.notes-col,
.comment-col {
  min-width: 0;
}

.notable-wrap {
  max-width: 40rem;
  border: 1px solid #27272a;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.notable {
  font-size: 0.8rem;
  line-height: 1.4;
}

.notable th {
  top: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  font-weight: 550;
  color: #f4f4f5;
  background: transparent;
  padding: 0.7rem 1rem;
}

.notable td {
  padding: 0.7rem 1rem;
  vertical-align: middle;
}

.notable td:first-child {
  font-weight: 550;
  font-size: 0.8rem;
  white-space: nowrap;
}

.notable td:last-child {
  color: #f4f4f5;
}

.notable tr:last-child td {
  border-bottom: 0;
}

.notable-note {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.72rem;
  color: #a1a1aa;
  font-weight: 400;
}

.site-footer {
  padding: 2rem 0 3rem;
  color: #71717a;
  font-size: 0.85rem;
}

.site-footer a {
  color: #a1a1aa;
}

@media (max-width: 900px) {
  .sidenav {
    display: none;
  }

  body {
    display: block;
  }
}

@media (max-width: 720px) {
  .wrap,
  .wide {
    width: calc(100% - 1.4rem);
  }

  th {
    top: 0;
  }
}

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