/* Page 3 Sidebar Layout */
.procedure-background {
    background-color: var(--color-1);
}

.procedure-container { display: flex; align-items: flex-start; }
.sidebar-left {
  width: 600px;
  background: var(--color-3);
  position: sticky;
  top:var(--header-height);
  align-self: flex-start;
  height: 100vh;
  overflow:auto;
  margin-left: 50px;
}
.sidebar-left h2 {
  color: var(--color-1);
  text-align: center;
  padding: 20px;
}

ul.sidebar-cats {
  text-align: center;
  padding-right: 2rem;
}

.sidebar-left li {
  display:block;
}

.sidebar-left button {
  display:block;
  background-color: transparent;
  border: none;
  font-size: large;
  font-weight: 500;
  color: var(--color-1);
  transition: color 0.3s ease;
  text-decoration: none;
}

.sidebar-left button:hover {
  color: var(--color-2) !important;
}

/* Subcategory and item styles inside sidebar */
.subcat-list { list-style: none; margin: 8px 0 0 0; padding-left: 0.5rem; }
.subcat-title { color: var(--color-1); font-size: 0.95rem; padding: 6px 0 2px; text-align: left; }
.item-list { list-style: none; padding-left: 0.5rem; margin: 0 0 8px 0; }
.item-list li { margin: 2px 0; }
.item-list button.sub-item { background: transparent; border: none; color: var(--color-1); text-align: left; padding: 4px 6px; font-size: 0.95rem; }
.item-list button.sub-item:hover { color: var(--color-2); text-decoration: underline; }

/* Inline sub-items and plus button */
.subcat-entry { text-align: left; padding: 6px 0; }
.subcat-entry .subcat-btn { background: transparent; border: none; color: var(--color-1); font-weight:600; padding:0; }
.sub-items { color: var(--color-1); font-size: 0.95rem; margin-left:6px; }
.item-plus { background: transparent; border: none; color: var(--color-1); font-weight: 700; margin-left:6px; cursor: pointer; }
.item-plus:hover { color: var(--color-2); text-decoration: none; }

.category-container {
  padding:48px; /* allow page to grow naturally so footer sits below */
}

.selected-main { background: var(--white); border-radius: 6px; }

.short-desc { margin-top: 4px; color: rgba(255,255,255,0.85); }
.item-entry .short-desc { color: #666; }

/* Ensure main content scrolls when tall and doesn't push footer into middle */
main.category-container { overflow:auto; }

/* Popup Squeeze Animation */
.popup-right {
  position: fixed; top: 0; right: -400px; width: 400px; height: 100%;
  background: var(--white); box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  transition: right 0.3s ease; z-index: 1002;
}
.popup-right.active { right: 0; }

.popup-close { position:absolute;top:12px; right:12px; font-size:24px; }

.popup-content {
  padding:24px; overflow:auto; height:100%;
}