html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #111111;
  background: #ffffff;
}

body.nav-menu-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 1rem;
  background: #000000;
  color: #ffffff;
  padding: 0.75rem 1rem;
  text-decoration: none;
  z-index: 3000;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.layout {
  display: flex;
  min-height: calc(100vh - 64px);
}

#top-header-bar-container {
  width: 100%;
}

.site-header {
  width: 100%;
  background: #f4f4f4;
  border-bottom: 1px solid #d6d6d6;
  position: sticky;
  top: 0;
  z-index: 2000;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
  padding: 0 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-title-link {
  color: #111111;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
}

.site-title-link:hover,
.site-title-link:focus {
  text-decoration: underline;
}

.site-title-link:focus {
  outline: 3px solid #000000;
  outline-offset: 2px;
}

#nav-container {
  flex: 0 0 220px;
}

.content-area {
  flex: 1;
  min-width: 0;
  padding: 1.5rem;
}

header,
main,
footer {
  max-width: 900px;
}

header {
  margin-bottom: 2rem;
}

main section {
  margin-bottom: 2rem;
}

footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #d6d6d6;
}

.site-side-nav-wrapper {
  width: 100%;
  max-width: 220px;
  min-height: 100%;
  padding: 1rem;
  border-right: 1px solid #d6d6d6;
  background: #f4f4f4;
  position: sticky;
  top: 64px;
}

.site-side-nav {
  width: 100%;
}

.site-side-nav-title {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.site-side-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-side-nav-list li {
  margin: 0 0 0.5rem 0;
}

.site-side-nav-list a {
  display: block;
  padding: 0.65rem 0.8rem;
  text-decoration: none;
  color: #111111;
  border-radius: 0.35rem;
}

.site-side-nav-list a:hover,
.site-side-nav-list a:focus {
  background: #e7e7e7;
}

.site-side-nav-list a:focus {
  outline: 3px solid #000000;
  outline-offset: 2px;
}

.site-side-nav-list a[aria-current="page"] {
  font-weight: bold;
  background: #dddddd;
}

.site-nav-overlay {
  display: none;
}

.site-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid #cfcfcf;
  border-radius: 0.5rem;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  flex-shrink: 0;
}

.site-menu-toggle:hover,
.site-menu-toggle:focus {
  background: #e7e7e7;
}

.site-menu-toggle:focus {
  outline: 3px solid #000000;
  outline-offset: 2px;
}

.site-menu-toggle-icon {
  font-size: 1.5rem;
  line-height: 1;
  display: inline-block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile only */
@media (max-width: 767px) {
  .layout {
    display: block;
    min-height: auto;
  }

  #nav-container {
    flex: none;
    width: 100%;
  }

  .content-area {
    padding: 1rem;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .site-header-inner {
    justify-content: flex-start;
  }

  .site-menu-toggle {
    display: inline-flex;
  }

  .site-side-nav-wrapper {
    max-width: none;
    min-height: auto;
    padding: 0;
    border-right: none;
    background: transparent;
    position: static;
  }

  .site-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2200;
  }

  .site-nav-overlay[hidden] {
    display: none;
  }

  .site-side-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2300;
    width: min(85vw, 320px);
    height: 100vh;
    overflow-y: auto;
    margin: 0;
    padding: 1rem;
    border-right: 1px solid #d6d6d6;
    background: #f4f4f4;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  }

  .site-side-nav-title {
    margin-top: 0;
  }

  .site-side-nav-wrapper.nav-open .site-side-nav {
    transform: translateX(0);
  }
}

/* Desktop only */
@media (min-width: 768px) {
  .site-menu-toggle {
    display: none !important;
  }

  .site-nav-overlay {
    display: none !important;
  }

  .site-side-nav {
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
    margin: 0;
    padding: 0;
    border-right: none;
    background: transparent;
    transform: none;
    transition: none;
    box-shadow: none;
  }

  .site-side-nav-title {
    margin-top: 0;
  }
}