
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
margin: 0;
font-family: 'Titillium Web', arial, helvetica;
line-height: 1.5;
color: #111;
background: black;
}

.page { width: 100%;
  min-height: 100%;
  background: #fff;
  border: 10px solid black;
}

/* Header */
.site-header {
background: black;
color: #fff;
padding: 12px 16px;
position: sticky;
top: 0;
z-index: 10;
}
.site-header__inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.brand {
 display: flex;
 flex-direction: column;
 gap: 2px; min-width: 0;
}
.site-title {
font-size: 18px;
font-weight: 700;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.site-subtitle {
font-size: 13px;
opacity: 0.85;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Burger (hidden on desktop) */
.burger {
display: none;
appearance: none;
border: 0;
background: transparent;
color: #fff;
padding: 8px;
border-radius: 8px;
cursor: pointer;
line-height: 0;
}
.burger:hover { background: rgba(255,255,255,0.12); }
.burger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.burger-bars {
width: 22px;
height: 16px;
display: inline-flex;
flex-direction: column;
justify-content: space-between;
}
.burger-bars span {
display: block;
height: 2px;
background: currentColor;
border-radius: 2px;
}

/* Desktop layout */
.main {
display: grid;
grid-template-columns: 180px 1fr;
min-height: calc(100vh - 64px);
}

/* Single nav (desktop sidebar by default) */
.site-nav {
border-right: 5px solid black;
padding: 16px;
background: #fafafa;
}

.nav-list, .nav-sublist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
display: block;
padding: 2px 2px;
text-decoration: none;
color: #111;
border-radius: 0px;
}
.site-nav a:hover {
  background: #e9e9e9;
}

.site-nav a.active,
.site-nav a:hover {
  color: red;
  font-weight: bold;
  border-left: 4px solid red;
  padding-left: 6px;
}





/* Expandable group (no flyout) */
.nav-group summary {
cursor: pointer;
padding: 10px 12px;
border-radius: 8px;
user-select: none;
}
.nav-group summary:hover { background: #e9e9e9; }
.nav-group details[open] > summary { font-weight: 700; }

.nav-sublist {
margin: 6px 0 10px 12px;
border-left: 2px solid red;
padding-left: 10px;
}
.nav-sublist a { padding: 8px 12px; }

/* Content */
.content {
padding: 20px 24px;
max-width: 1100px;
}


.content h1 {
  margin-top: 0;
  border-bottom: 3px solid #c00;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.site-slot-top {
  display: block;
  min-height: 90px;
  margin: 12px 0 20px;
  padding: 10px 0;
  color: inherit;
  background: transparent;
  font-size: 1rem;
  line-height: 1.2;
  visibility: visible;
  opacity: 1;
  overflow: visible;
  border 1px solid black;
}

/* Footer */
.site-footer {
border-top: 1px solid #ddd;
background: black;
padding: 12px 16px;
}
.site-footer__inner {
  font-size: 13px;
  color: red;
}

/* Overlay (mobile only) */
.overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.45);
z-index: 1000;
}

/* Hide drawer header on desktop */
.nav-drawer-header { display: none; }

/* Mobile: nav becomes a drawer */
@media (max-width: 700px) {
.main { grid-template-columns: 1fr; }
.burger { display: inline-flex; align-items: center; justify-content: center; }

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(86vw, 340px);
  z-index: 1001;
  overflow: auto;

  border-right: 1px solid #ddd;
  padding: 14px 12px;
  background: #fafafa;

  transform: translateX(-105%);
  transition: transform 160ms ease;
}

body.menu-open .overlay { display: block; }
body.menu-open .site-nav { transform: translateX(0); }

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 4px 12px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}
.drawer-title { font-weight: 700; }
.drawer-close {
  appearance: none;
  border: 0;
  background: #e9e9e9;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.drawer-close:hover { background: #dedede; }

.content { max-width: none; padding: 16px 14px; }
}








.yt-video {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  margin: 24px auto;
}

.yt-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}









/* Old styles */

.blogdiv {
    background: white;
    color: black;
    padding: .5em;
    display: block;
}
div.blog {
    border-radius: 1em;
    border: solid 1px #a4a4a4;
    background-color: #e4e4e4;;
    padding-left: 1em;
    padding-right: 1em;
    padding-bottom: 1em;
}
.adcontainer {
    display: inline-block;
}
.foliodiv {
    border-radius: 1em;
    border: solid 1px #a4a4a4;
    background-color: #e4e4e4;;
    padding-left: 1em;
    padding-right: 1em;
}
.folioimage {
    border: solid 1px #a4a4a4;
}

/* Hrefs */
a.blue {
    color: gray;
}
a.blue:hover {
    color: black;
}
a.white {
    color: white;
    text-decoration: none;
}
.page__nav {
    padding: 0px;
    margin: 0px;
}
.page__nav__item {
    list-style-type: none;
}
.page__nav__href {
    
}
.page__nav__href:hover {

}



/* Random stuff */
div.spacer {
    height: 5px;
}
div.large__spacer {
    height: 40px;
}
ol {
    padding: 15px;
    margin: 0px;
}
img.darkimg {
  background: #17202f;
  border: solid 2px black;
  border-radius: 10px;
}
.gallery__thumb {
    border: solid 2px black;
    border-radius: .25em;
    margin-right: .25em;
}
.ytembed {
  width: 100%;
  height: 480px;
}
.code {
    display: block;
    font-family: "Lucida Console";
    font-size: 11px;
    background: darkslategray;
    color: wheat;
    padding: 5px;
    width: 50%;
}
p.emph {
  font-style: italic;
}
table.piPartsList {
    
}
td {
    padding: 5px;
}
tr:nth-child(even) {
    background-color: #f2f2f2;
}
tr:hover {
    background-color: teal;
}
th {
    text-align: left;
    background-color: teal;
}