body {
  color:#fff;
  background:#1c1c1c;
  margin:1em auto;
  padding:1em;
  max-height: 100%;
  font:14px monospace;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.content {
  width: 70%;
  max-width:55em;
}

.sidebar {
  width: 13%;
}

.sidebar-left {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

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

a:active,a:hover,a:focus {
  color: #eaeace;
  text-decoration: none;
}

ul {
  list-style: '\2022  ';/*\21C0  '; /* i.e. ⇀ character */
}

li {
    padding-bottom: 10px;
}

.code {
  color: #bbbbbb;
  font-size: 14px;
  padding: 2px 0px;
  margin-top: 1px;
}

.colon {
  width: 110px;
  display: inline-block;
}

.footer p {
  line-height: 15px;  
  margin: 5px 0;
}

#URL-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two columns on larger screens */
  gap: 5px; 
  max-width: 100%;
}

@media (max-width: 600px) {
  #URL-list {
    grid-template-columns: 1fr; /* One column for small screens */
  }
}

.page-wrapper {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

/* The floating header panel / sidebar */
.floating-sidebar {
  position: fixed;
  top: 24px;
  max-width: 10%;
  align-self: flex-start;
  padding: 12px 10px;
  border: 1px solid white;
  z-index: 40;
  font-size: 15px;
  overflow: hidden;
}

/* The nav inside the sidebar */
.floating-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.floating-sidebar nav a {
  color: #dfeff0;
  text-decoration: none;
  padding: 8px 2px;
  border-radius: 6px;
  display: inline-block;
}
.floating-sidebar nav a:hover,
.floating-sidebar nav a:focus {
  background: rgba(255,255,255,0.03);
  text-decoration: none;
}

/* Header/title inside the sidebar */
.floating-sidebar .sidebar-title {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 16px;
  color: #fff;
}

/* Main content column (the content you already had) */
.page-main {
  flex: 1 1 auto;
  min-width: 0; /* allow proper flex shrinking */
  width: 70%;
}

/* Responsive behavior: on narrow viewports collapse the sidebar */
@media (max-width: 880px) {
  .page-wrapper {
    display: block;
  }
  .floating-sidebar {
    position: fixed;
    left: 12px;
    top: 12px;
    transform: translateY(0);
    max-width: 420px;
    display: none;   /* hidden by default on mobile, toggled by JS */
    margin: 0;
  }
  .floating-sidebar.open {
    display: block;
  }

  /* A small toggle button visible on mobile */
  .sidebar-toggle {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 60;
    background: rgba(20,20,20,0.95);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  }

  /* nudges main content down so the toggle doesn't cover it */
  .page-main {
    padding-top: 60px;
  }
}

/* Small polish: visually separate links list from content */
.floating-sidebar hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin: 8px 0;
}

/* Optional: indicate 'current' link (if you want to add the .current class) */
.floating-sidebar nav a.current {
  background: rgba(59,130,246,0.18);
  color: #cfe9ff;
  font-weight: 600;
}