/* Right hamburger side menu */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2100;
}

.side-menu-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2300;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.side-menu-toggle:hover,
.side-menu:hover .side-menu-toggle,
.side-menu.is-open .side-menu-toggle {
  background: #ffffff;
  transform: translateX(-4px);
  box-shadow: 0 18px 42px rgba(31, 41, 55, 0.2);
}

.side-menu-toggle span {
  width: 24px;
  height: 4px;
  background: #172236;
  border-radius: 999px;
  display: block;
}

.side-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, calc(100vw - 26px));
  height: 100vh;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(31, 41, 55, 0.16);
  padding: 92px 22px 24px;
  transform: translateX(calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.2s ease;
  overflow-y: auto;
}

.side-menu:hover .side-menu-panel,
.side-menu:focus-within .side-menu-panel,
.side-menu.is-open .side-menu-panel {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.side-menu-header {
  padding: 6px 4px 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.side-menu-header h2 {
  margin: 0;
  font-size: 30px;
}

.side-menu-item {
  position: relative;
  width: 100%;
  text-align: left;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--pill-surface);
  padding: 16px 18px;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.side-menu-item::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 0;
  bottom: 12px;
  width: 5px;
  border-radius: 999px 0 0 999px;
  background: var(--pastel-blue-border);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.side-menu-item:hover,
.side-menu-item:focus-visible,
.side-menu-item.active {
  transform: translateX(-3px);
  background: #eaf3ff;
  border-color: var(--pastel-blue-border);
  box-shadow: 0 16px 34px rgba(79, 125, 188, 0.18);
  outline: none;
}

.side-menu-item:hover::before,
.side-menu-item:focus-visible::before,
.side-menu-item.active::before {
  opacity: 1;
}

.side-menu-item-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #d7e8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 10px 22px rgba(31, 41, 55, 0.08);
}

.side-menu-item-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #172236;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.side-menu-item-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.side-menu-item-title {
  font-size: 18px;
  font-weight: 800;
}

.side-menu-item-description {
  font-size: 13px;
  color: #5d6b82;
  line-height: 1.35;
}

.app {
  width: min(1700px, 97%);
  margin: 0 auto;
  padding-bottom: 60px;
}



/* Keep the floating hamburger visible but away from the Today button area. */
.side-menu-toggle {
  top: 14px;
  right: max(18px, calc((100vw - min(1700px, 97vw)) / 2 + 8px));
}

@media (min-width: 900px) {
  .header-actions {
    padding-right: 76px;
  }
}
