html {
  font-size: 10px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  scroll-behavior: smooth;
  background-color: #111314;
  color: #dddcdc;
}

strong, b {
  font-weight: 700;
  color: #fafafa;
}

body {
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings use slightly heavier weight to match docs-like typography */
.sec-header,
.sec-subheader,
.sec-subsubheader,
header,
.nav-link,
.nav-sublink,
.nav-subsublink {
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  color: #eeff8f;
  text-decoration: none;
}

header {
  font-size: 2.5rem;
  text-align: center;
  color: #fafafa;
}

#navbar {
  position: fixed;
  max-width: 300px;
  top: 0px;
  left: 0px;
  width: 20vw;
  border-right: solid;
  border-color: #234969;
  height: 100vh;
}

#navbar ul {
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100vh - 95px);
}

#nav-header {
  padding: 15px 0px 25px 0px;
  height: 60px;
}

#nav-header p{
  font-size: 2rem;
  display: inline;
  width: auto;
  vertical-align: middle;
}

#nav-header img{
  width: 30px;
  height: auto;
  vertical-align: middle;
  margin-right: 5px;
}

.main-section{
  border-bottom: 1px solid;
  border-color: #234969;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.main-li{
  position: relative;
  border-top: 2px solid;
  border-color: #234969;
  padding: 10px 10px 10px 10px;
}

.sub-li{
  position: relative;
  border-top: 1px solid;
  border-color: #234969;
  padding: 10px 10px 10px 10px;
}

.subsub-li{
  position: relative;
  padding: 8px 10px 8px 10px;
}

.nav-link {
  font-size: 2rem;
  text-decoration: none;
  color: #fafafa;
}

.nav-sublink {
  font-size: 1.5rem;
  margin-left: 20px;
  text-decoration: none;
  color: #fafafa;
}

.nav-subsublink {
  font-size: 1.3rem;
  margin-left: 30px;
  text-decoration: none;
  color: #dddddd;
}

#main-doc{
  position: absolute;
  left: 24vw;
  font-size: 2rem;
  padding-right: 3vw;
  padding-top: 20px;
}

.sec-header{
  font-size: 4rem;
  text-align: left;
  margin-bottom: 2rem;
}

.sec-subheader{
  font-size: 3rem;
  text-align: left;
}

.sec-subsubheader {
  font-size: 2.2rem;
  text-align: left;
  color: #fafafa;
  margin-top: 1.2rem;
  margin-bottom: 0.8rem;
  display: block;
  line-height: 1.2;
}

.text-with-image {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.section-image {
  width: 50%;
  max-width: 42vw;
  height: auto;
  border-radius: 5px;
  border: 1px solid #234969;
  object-fit: cover;
  margin: 0 auto; 
}

.image-container {
  width: 100%;         
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;    
  
}

.section-image-large {
  object-fit: cover;
}

.image-description {
  font-size: 1.5rem;
  color: #cccccc;
  margin-top: 1rem;
  text-align: center;
}

#main-doc code {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
  font-size: inherit;
  background: rgba(250,250,250,0.06);
  color: #cfcfcf;
  font-family: "SFMono-Regular","Roboto Mono","SFMono","Segoe UI Mono","Menlo","Consolas",monospace;
  padding: 0.15rem 0.5rem;
  margin: 0 0.2rem;
  border-radius: 6px;
  border: 1px solid rgba(35,73,105,0.35);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.25);
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

/* Custom Scrollbar — Dark, Minimal, Matches Theme */
::-webkit-scrollbar {
  width: 10px;
  background: #0d0f10; /* darker than page, blends nicely */
}

::-webkit-scrollbar-track {
  background: #111314; /* same as page background */
  border-left: 1px solid rgba(35,73,105,0.3);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #234969 0%, #1b3850 100%);
  border-radius: 10px;
  border: 2px solid #111314; /* creates spacing & soft edges */
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #2e6aa0 0%, #234969 100%);
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #234969 #111314;
}

/* Thumbnails */
.thumb-link { display:inline-block; cursor:zoom-in; }
.section-image, .section-image-large { max-width:100%; height:auto; display:block; }

/* Lightbox (hidden by default) */
.lightbox {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

/* Show when targeted by fragment */
.lightbox:target { display: flex; }

/* clickable backdrop that closes the lightbox when clicked */
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  background: transparent; /* darkening already provided by .lightbox background */
  cursor: zoom-out;
  z-index: 1000; /* below the image and close button */
}

/* Image inside lightbox */
.lightbox img {
  max-width: 95%;
  max-height: 95%;
  width: auto;
  height: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.7);
  border-radius: 6px;
  position: relative;
  z-index: 1010;
}

/* Close control (clicking it goes to href="#" which clears fragment) */
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  z-index: 1011;
}
.lightbox-close:after { content: "✕"; color: #fff; line-height: 1; }

/* Prevent page scrolling while lightbox open (optional, CSS-only trick) */
:target { overflow: hidden; }

@media (max-width: 1000px){
  #nav-header{
    font-size: 2.5vw;
  }
}

@media (max-width: 600px){
  #navbar{
    background-color: #fafafa;
    z-index: 1;
    max-width: 100%;
    width: 100%;
    height: 200px;
  }
  
  #navbar ul{
    height: 140px;
    border-bottom: solid;
  }
  
  #nav-header{
    padding: 15px 0 15px 0;
    height: 30px;
    font-size: 2rem;
  }
  
  #main-doc{
    position: absolute;
    left: 30px;
    font-size: 2rem;
    top: 210px;
    padding-right: 30px;
  }
  
}