:root {
  --color: 0;
  --row-max: 4;
  --color-gray-100: oklch(96.7% 0.003 264.542);
  --color-zinc-200: oklch(92% 0.004 286.32);
  --color-zinc-400: oklch(70.5% 0.015 286.067);
  --color-zinc-500: oklch(55.2% 0.016 285.938);
  --color-zinc-700: oklch(37% 0.013 285.805);
  --color-zinc-800: oklch(27.4% 0.006 286.033);
  --color-zinc-900: oklch(21% 0.006 285.885);
}

.highlighter.note { --color: 150 }
.highlighter.info { --color: 210 }
.highlighter.warning { --color: 60 }
.highlighter.critical { --color: 0 }
.highlighter.hack { --color: 300 }

.theme-protocol { --color: 200 }
.theme-networking { --color: 240 }
.theme-security { --color: 350 }
.theme-os { --color: 160 }
.theme-hardware { --color: 80 }
.theme-history { --color: 280 }

.link.devops-langs { --color: 300 }
.link.devops { --color: 225 }
.link.dhcp { --color: 285 }
.link.firewall { --color: 0 }
.link.http { --color: 30 }
.link.ip { --color: 180 }
.link.networks { --color: 270 }
.link.tcp-udp { --color: 60 }

body {
  height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #000000;
  margin: 0px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #ffffff;
}

main {
  max-width: 1280px;
  display: flex;
  flex-direction: column;
}

h1 {
  font-family: Cambria, Georgia, serif;
  font-size: 72px;
  font-weight: lighter;
  line-height: 1;
  margin: 0px;
  color: rgba(255, 255, 255, 0.8);
}

h2 {
  font-family: Cambria, Georgia, serif;
  font-size: 48px;
  font-weight: lighter;
  line-height: 1;
  margin: 0px;
  color: rgba(255, 255, 255, 0.8);
}

h3 {
  font-family: Cambria, Georgia, serif;
  font-size: 32px;
  font-weight: lighter;
  line-height: 1;
  margin: 0px;
  color: rgba(255, 255, 255, 0.8);
}

h4 {
  font-family: Cambria, Georgia, serif;
  font-size: 20px;
  font-weight: lighter;
  line-height: 1;
  margin: 0px;
  color: rgba(255, 255, 255, 0.8);
}

h5 {
  font-family: Cambria, Georgia, serif;
  font-size: 14px;
  font-weight: normal;
  line-height: 1;
  margin: 0px;
  color: rgba(255, 255, 255, 0.8);
}

p {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.5;
  margin: 0px;
  color: rgba(255, 255, 255, 0.4);
}

a {
  text-decoration: none;
}

svg {
  width: 100%; 
  height: 100%;
}

pre {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  margin-top: 12px;
  margin-bottom: 0px;
}

code {
  color: rgba(255, 255, 255, 0.4);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

td, th {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  padding: 14px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}

td::after,
th::after {
  content: '';
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(255, 255, 255, 0.05);
}

td:last-child::after,
th:last-child::after {
  display: none;
}

div.double-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

div.section {
  display: flex;
  flex-direction: column;
  padding: 64px 40px;
  gap: 32px;
}

div.section > p {
  line-height: 2;
}

div.header-vertical {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0px;
}

div.header-horizontal {
  display: flex;
  flex-direction: row;
  align-items: end;
  gap: 16px;
}

@media (max-width: 768px) {
  div.double-section {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  div.header-horizontal {
    flex-direction: column;
    align-items: start;
    gap: 0px;
  } 
}

div.header-horizontal > p {
  font-family: Cambria, Georgia, serif;
  font-size: 12px;
  font-weight: normal;
  line-height: 1;
  margin: 8px;
  color: rgba(255, 255, 255, 0.3);
}

p.main-p {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.5;
  margin: 0px;
  color: rgba(255, 255, 255, 0.6);
}

.cont {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  background-color: rgb(17, 17, 17);
}

.cont > p,
.cont > span {
  font-size: 12px;
}

.subcont {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  background-color: rgb(25, 25, 25);
  padding: 10px 14px;
}

div.cards,
div.refs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(200px, (90% / var(--row-max))), 1fr));
}

div.cards {
  gap: 32px;
}
div.refs {
  gap: 16px;
}

div.cards > div.item,
div.refs > a.item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  gap: 12px;
}

div.refs > a.item {
  transition: border-color 0.2s, background 0.2s;
}

div.refs > a.item:hover {
  border-color: hsla(var(--color) 80% 60% / 25%);
  background-color: rgb(25, 25, 25);
}

div.cards > div.item > p,
div.refs > a.item > p {
  font-size: 12px;
}

div.cards > div.item > div.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

div.cards > div.item > div.subitem {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  gap: 8px;
}

div.cards > div.item > div.subitem > p,
div.cards > div.item > div.subitem > span {
  font-size: 12px;
}

span.highlighter {
  border-radius: 4px;
  padding: 0px 4px;
  line-height: 1.5;
  font-size: 12px;
  font-weight: normal;
  color: hsl(var(--color) 80% 60%);
  background-color: hsla(var(--color) 80% 60% / 10%);
}

a.link {
  border-radius: 4px;
  font-weight: bold;
  padding: 2px 6px;
  line-height: 2;
  color: hsl(var(--color) 80% 60%);
  background-color: hsla(var(--color) 80% 60% / 10%);
}

div.plain {
  display: flex;
  flex-direction: row;
  padding: 10px 14px;
  gap: 10px;
  font-size: 10px;
}

span.desc {
  display: flex;
  color: hsl(var(--color) 80% 60%);
  gap: 6px;
  align-items: center;
}

span.desc > span {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background-color: hsl(var(--color) 80% 60%);
}

div.explain {
  display: flex;
  flex-direction: column;
  margin: 24px;
  gap: 12px;
}

div.explain > div.item {
  display: grid;
  grid-template-areas:
    "dot header addition"
    ". text text";
  grid-template-columns: max-content 1fr max-content;
  border: 1px solid hsla(var(--color) 80% 60% / 10%);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px 12px;
  gap: 2px 12px;
}

div.explain > div.item > span.dot {
  grid-area: dot;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: hsl(var(--color) 80% 60%);
  margin-top: 5px;
}

div.explain > div.item > p.header {
  grid-area: header;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

div.explain > div.item > p.addition {
  grid-area: addition;
  color: rgba(255, 255, 255, 0.1);
  font-size: 8px;
}

div.explain > div.item > p.text {
  grid-area: text;
  font-size: 12px;
}

p.addition {
  color: rgba(255, 255, 255, 0.1);
  font-size: 8px;
}

div.brdclr {
  border-color: hsla(var(--color) 80% 60% / 10%)
}
p.txtclr,
span.txtclr {
  color: hsl(var(--color) 80% 60%)
}

