/* Xerr developer reference: restrained HUD geometry, legible Kotlin. */
:root {
  --color-key-blue: #127d80;
  --color-key-blue-hover: #0b626b;
  --color-background-nav: #102b32;
  --color-background-page: #f5f9f8;
  --default-font-color: #173139;
  --hover-link-color: #0b7176;
  --active-section-color: #0e777b;
  --sidemenu-section-active-color: #0e777b;
  --border-color: rgba(21, 67, 70, .16);
  --default-font-family: Inter, "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-family-default: var(--default-font-family);
}

html.theme-dark {
  --color-key-blue: #72d8cb;
  --color-key-blue-hover: #a2eadb;
  --color-background-page-dt: #11232a;
  --color-background-nav-dt: #0a1d23;
  --default-font-color: #e7f3ef;
  --hover-link-color: #8ee4d4;
  --active-section-color: #78dbce;
  --sidemenu-section-active-color: #78dbce;
  --border-color: rgba(145, 221, 210, .2);
}

body { letter-spacing: -.01em; }
.navigation { border-bottom: 1px solid rgba(104, 217, 204, .32); }
.library-name--link { font-weight: 700; letter-spacing: -.035em; }
.main-content { line-height: 1.72; }
.main-content h1,
.main-content h2,
.main-content h3 {
  font-family: var(--default-font-family);
  letter-spacing: -.035em;
}
.main-content h1 { font-weight: 700; }
.main-content code,
.main-content pre { font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace; }
.main-content a { color: var(--color-key-blue); }
.main-content a:hover { color: var(--color-key-blue-hover); }
.main-content blockquote {
  border-left: 3px solid #d3944e;
  background: rgba(211, 148, 78, .07);
  padding: .7em 1.1em;
}
:focus-visible { outline: 2px solid #d3944e; outline-offset: 3px; }

/* The module description shares the .cover wrapper: style only its h1, never the whole wrapper. */
#content:has(.UnderCoverText) > .cover > h1 {
  position: relative;
  overflow: hidden;
  margin: 0 0 32px;
  padding: 54px 40px 38px;
  border: 1px solid rgba(104, 217, 204, .3);
  border-radius: 12px;
  color: #f3faf7;
  background-color: #102b32;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(104, 217, 204, .06) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(104, 217, 204, .06) 31px 32px);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.12;
}
#content:has(.UnderCoverText) > .cover > h1::before {
  content: "XERR  /  DEVELOPER REFERENCE";
  position: absolute;
  left: 40px;
  top: 20px;
  color: #86d9ca;
  font: 600 11px/1.5 "JetBrains Mono", monospace;
  letter-spacing: .12em;
}
#content:has(.UnderCoverText) > .cover > h1::after {
  content: "+";
  position: absolute;
  right: 30px;
  top: 4px;
  color: #d3944e;
  font: 400 92px/1 "JetBrains Mono", monospace;
  opacity: .62;
}
@media (max-width: 600px) {
  #content:has(.UnderCoverText) > .cover > h1 { padding: 54px 24px 26px; }
  #content:has(.UnderCoverText) > .cover > h1::before { left: 24px; }
  #content:has(.UnderCoverText) > .cover > h1::after { right: 14px; font-size: 64px; }
}
