/* Copyright (C) 2026 Zimext Inc. */
/* Inherits from https://git.bbjprojek.org/cabinet/-/blob/master/assets/main.css */

html {
  scroll-behavior: smooth;
  word-wrap: break-word;
  max-width: 800px;
  margin: auto;
}

body {
  background-color: var(--background);
  font-family: var(--ffamily);
  margin: 5%;
}

/* Root Classes */
:root {
  --foreground: #202020;
  --foreground-inv: #FFFFFF;
  --background: #FFFFFF;
  --branding: #005265;
  --branding-op: #00526520;
  --heading: #404040;
  --ffamily: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ffamily-code: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --foreground: #FFFFFF;
    --foreground-inv: #202020;
    --background: #000000;
    --branding: #3EB1C8;
    --branding-op: #3EB1C830;
    --heading: #CCCCCC;
    --header-normal: #202020;
  }
}

/* Main Layout */
h1, h2, h3, h4 {
  color: var(--heading);
  font-family: var(--ffamily-code);
}

h3, h4 {
  font-style: italic;
}

a, p, li {
  color: var(--foreground);
}

ol li, ul li {
  margin-bottom: 8px;
}

ol > li::marker {
  font-weight: bold;
}

::selection {
  color: var(--foreground-inv);
  background: var(--branding);
}

img {
  max-width: 100%;
}

a:link, a:visited {
  font-weight: bold;
  color: var(--branding);
}

a:link:hover,a:visited:hover {
  color: var(--heading);
}

h1, h2, h3, a, p {
  text-decoration-style: dashed;
}

/* Extra features */
summary {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--heading);
  padding: .6rem 0rem;
}

details > *:not(summary) {
  margin-left: 1em;
}

blockquote {
  margin: 0;
  padding: 0 15px;
  border-left: 0.2em solid;
  color: var(--foreground);
}

mark {
  color: var(--foreground);
  background: var(--branding-op);
  border-radius: var(--border-radius);
}

a.lsec {
  font-weight: normal;
}

/* Code and code blocks */
pre>code {
  padding: 0;
  margin: 0;
  word-break: normal;
  white-space: pre;
  background: transparent;
  border: 0;
}

pre.break>code {
  word-break: break-word;
  word-wrap: break-word;
  white-space: wrap;
}

pre {
  padding: 1rem;
  overflow: auto;
  line-height: 1.45;
  color: var(--foreground);
  background-color: var(--background-alt);
  border-radius: 6px;
}

code, tt {
  padding: .2em .4em;
  font-size: 85%;
  white-space: break-spaces;
  font-family: var(--ffamily-code);
  color: var(--foreground);
  padding: 0;
}

/* Heading & Footer bars */
hr.head {
  width: 60px;
  margin-left: 0;
  margin-top: 12px;
  border: 2px solid;
  color: var(--branding);
}

hr.foot {
  width: 80%;
  margin-top: 42px;
  margin-bottom: 16px;
  border: 2px solid;
  color: var(--branding);
}

header a {
  font-family: var(--ffamily-code) !important;
}

.f1,.f2 {
  font-family: var(--ffamily-code) !important;
}

.f2 {
  text-align: center;
}

@media screen and (max-width: 800px) {
  .f1,.f2,header a {
    font-size: 0.8rem;
  }

}

#iframeContainer {
  display: none;
}

/* HVLD Display CSS */
.horz { display: none; }
@media screen and (orientation: landscape) {
  .horz { display: block; }
  .vert { display: none; }
}

.dark {display: none; }
@media (prefers-color-scheme: dark) {
  .dark { display: block; }
  .light  { display: none; }
}
