:root{
  --brand: #96a3b0;
  --brand-hover:#808b97;
  --white: #fff;
  --btn-fs:2vh;
  --btn-py:.9vh;
  --btn-px:1.8vh;
  --btn-radius:.5vh;
  --btn-shadow:inset 0 -0.3vh 0.6vh rgba(0,0,0,.2);
}

html, body {
    margin: 0; padding: 0; height: 100%;
    font-family: "Roboto", sans-serif !important;
  }

  button {
    font-family: "TekTur", sans-serif !important;
  }

body {
  background-color: var(--white);
  margin: 0;
  padding: 0;
  min-height: 100%;
  position: relative;
  z-index: 0;
}

/* overlay the repeating icon at low opacity and fixed size */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;    /* allows clicks through the pattern */
  z-index: -1;             /* sits behind all content */
  background-image: url('../img/black_icon_transparent.png');
  background-repeat: repeat;
  background-size: 50px 50px;  /* adjust to your desired icon size */
  opacity: 0.10;                 /* adjust between 0 (invisible) and 1 (opaque) */
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
  
#site-content {
  display: block;      /* previously flex column with 92vh; free it up */
  min-height: 100vh;
}
  
  /* make header only 8% of viewport height */
  #header {
    position: relative;    /* creates a stacking context */
    z-index: 1000;         /* higher than any scrolling panels */
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 8vh;
    background: rgb(53, 53, 53);
    box-shadow: 0 0.3vh 0.6vh var(--brand);
    padding: 0 2vw;
    box-sizing: border-box;
  }

  
  /* inner wrapper */
  #header .container {
    display: flex;
    align-items: center;
    width: 100%;
  }
  
  #logo-link {
    display: inline-block;    /* makes the <a> only as big as its contents */
  }

  #logo {
    width: 14vw;               /* or whatever % you had before */
    height: auto;
    max-height: 100%;
    object-fit: contain;
  }

  /* title flexes up to nav */
  .site-title {
    flex: 1;
    margin: 0;
    font-size: 2.5vh;
    color: var(--brand);
    text-align:center;
  }
  
  /* nav styling */
  .site-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .site-nav li {
    margin-left: 2vw;
  }
  .site-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 2vh;
    padding: 0.5vh 0;
    font-family: "TekTur", sans-serif !important;
  }
  .site-nav a:hover {
    color: var(--brand);
  }

.universal-button {
  margin: 2vh 0;
  padding: 1vh 2vh;
  font-size: 2vh;
  cursor: pointer;
  /* base color fallback */
  background-color: var(--brand);
  /* white highlight at top-left, deeper orange at bottom-right */
  background-image:
    radial-gradient(circle at top left,
                    rgba(255,255,255,0.8) 0%,
                    rgba(255,255,255,0) 70%),
    linear-gradient(to bottom right,
                    var(--brand) 0%,
                    #e67630 100%);
  border: none;
  border-radius: 0.5vh;
  /* inner shadow at bottom edge + slight outer shadow */
  box-shadow:
    inset 0 -0.3vh 0.6vh rgba(0,0,0,0.2),
    0 0.3vh 0.6vh rgba(0,0,0,0.15);
  color: var(--white);
}

.universal-button:hover {
    background: var(--brand-hover);
}

h1 {
  font-family: "TekTur", sans-serif !important;
}

textarea {
  resize: none;
}

/* ===== Overlay drawer + backdrop ===== */
:root {
  --drawer-w: 320px;
  --ink: var(--white);
  --panel: rgb(53,53,53);
}

#menu-btn {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 1200;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--white);
  cursor: pointer;
  background-color: var(--brand);
  /* background-image:
    radial-gradient(circle at top left, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%),
    linear-gradient(to bottom right, var(--brand) 0%, #e67630 100%); */
  box-shadow: inset 0 -0.3vh 0.6vh rgba(0,0,0,0.2), 0 0.3vh 0.6vh rgba(0,0,0,0.15);
}

/* prevent background scroll when nav open */
body.nav-open { overflow: hidden; }

#site-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--drawer-w);
  height: 100vh;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 0.3vw 0.6vw var(--brand);
  transform: translateX(-100%);
  transition: transform 200ms ease;
  z-index: 3000;
  display: flex;
  flex-direction: column;
}

#site-drawer.open { transform: translateX(0); }

#drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 1100;
}

#drawer-backdrop.show { opacity: 1; }

/* Drawer header */
#site-drawer .drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
#site-drawer .drawer-logo img {
  height: 38px;
  width: auto;
  display: block;
}
#drawer-close {
  border: none;
  background: transparent;
  color: #ddd;
  width: 36px; height: 36px;
  border-radius: 8px;
  cursor: pointer;
}
#drawer-close:hover { color: var(--white); }

/* Drawer nav */
#site-drawer .drawer-nav {
  overflow-y: auto;
  padding: 10px 8px 24px 8px;
}
#site-drawer .drawer-nav ul {
  list-style: none;
  margin: 0; padding: 0;
}
#site-drawer .drawer-nav li { margin: 4px 0; }
#site-drawer .drawer-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--white);
  text-decoration: none;
  font-family: "Tektur", sans-serif !important;
  font-size: 15px;
}
#site-drawer .drawer-nav a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}

/* ===== Remove old horizontal header footprint if present ===== */
/* If you left #header in templates elsewhere, neutralize it: */
#header { display: none; }  /* old 8vh bar from the top. :contentReference[oaicite:1]{index=1} */
/* Active nav item */
#site-drawer .drawer-nav a.active {
  color: var(--white);
  background: var(--brand, var(--brand-hover));
  border-left: 3px solid var(--brand, var(--brand));
}

#drawer-backdrop { z-index: 5000; }   /* was ~1100 */
#site-drawer     { z-index: 5100; }   /* ensure above backdrop */
/* shared backdrop */
.dim-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 2500;            /* below panels, above everything else */
}
.dim-backdrop.show{
  opacity: 1;
  pointer-events: auto;
}

/* optional: freeze scroll when any overlay/panel is open */
body.nav-open{ overflow: hidden; }
/* Hide glow when closed */
#site-drawer {
  box-shadow: none;                  /* override default */
  transition: transform 200ms ease, box-shadow 120ms ease;
}

/* Show glow only when open */
#site-drawer.open {
  box-shadow: 0 0.3vw 0.6vw var(--brand);
}

/* Optional: belt-and-suspenders if any bleed persists due to subpixel rounding */
#site-drawer:not(.open) {
  transform: translateX(calc(-100% - 1vw));  /* nudge left by ~shadow blur */
}
