/* Navigation Menu Link Styling */
.navmenu a {
  font-family: var(--nav-font);
  font-weight: 700;
}

/*--------------------------------------------------------------
# Global navigation
--------------------------------------------------------------*/
.navigation {
  color: var(--contrast-color);
  background-color: var(--nav-bg-color, var(--dark-accent));

  position: fixed;
  top: 0;
  left: -200px; /* updated by Claude, 2026-11-17 15:10, Pass #5: 300px -> 200px */
  bottom: 0;
  padding: 0 15px;
  width: 200px; /* updated by Claude, 2026-11-17 15:10, Pass #5: 300px -> 200px */
  transition: left 0.3s, background-color 0.3s;
  overflow-y: auto;
  z-index: 1100;
  border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}
.sitename {
  padding-bottom: 40px;
}

.navigation.navigation-show {
  left: 0;
}

.navigation .profile-img img {
  margin: 15px auto;
  display: block;
  width: 120px;
  border: 8px solid color-mix(in srgb, var(--contrast-color), transparent 85%);
}

.navigation .logo {
  line-height: 1;
  margin-bottom: 15px;
}

.navigation .logo img {
  max-height: 32px;
  margin-right: 8px;
}

.navigation .logo h1 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

.navigation .social-links {
  margin: 0 0 20px 0;
}

/* Divider scoped to navigation */
.navigation hr {
  border: none;
  border-top: 1px solid var(--border-color);
  width: 60%;
  margin: 0.5rem auto;
}

/*--------------------------------------------------------------
# Social buttons (scoped to navigation)
--------------------------------------------------------------*/

.social-links {
  padding: 10px
}
.navigation .social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  margin: 2px 2px;
  text-align: center;
  color: var(--color-on-accent, var(--contrast-color));
}

.navigation .social-button:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 15%);
  transform: scale(1.1);
  color: var(--color-on-accent, var(--contrast-color));
}

.navigation .social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/*--------------------------------------------------------------
# Navigation Toggle Button
--------------------------------------------------------------*/
.navigation .navigation-toggle {
  color: var(--contrast-color);
  background-color: var(--nav-toggle-bg-color, var(--accent-color));
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.navigation .navigation-toggle:hover {
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/* Centered Site Name */
.navigation .sitename {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 10px 0;
  width: 100%;
  letter-spacing: 0.5px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 8px 10px; /* updated by Claude, 2026-11-18 11:52, Tasks/Tasks_2026-11-18.md
                         Pass #1: was 15px 10px -- halved the top/bottom padding to
                         close up the vertical space between menu items. */
  font-family: var(--nav-font);
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: flex-start; /* updated by Claude, 2026-11-18 11:52, Pass #1:
                               was center -- aligns each item's icon with the
                               top of its text instead of vertically centering
                               it, which matters now that labels can wrap to
                               more than one line. */
  /* removed by Claude, 2026-11-17 14:35 -- Tasks/Tasks_2026-11-17.md
     Pass #4: white-space: nowrap; -- this was forcing long labels like
     "Publications & Presentations" to render on one line, overflowing
     past the .navigation panel's 300px edge and making the nav appear
     ~330px wide. Letting it wrap keeps the nav panel at its true 300px. */
  transition: color 0.3s;
  width: 100%;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 20px;
  margin-right: 10px;
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus {
  color: var(--nav-hover-color);
}

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Contact block (scoped to navigation)
--------------------------------------------------------------*/
.navigation .contact-container {
  padding-top: 40px;
  font-size: smaller;
  text-align: center;
}

.navigation .contact-container em {
  color: var(--nav-color);
}

/* added by Claude, 2026-11-23 11:05 -- Tasks/Tasks_2026-11-23.md Pass #1:
   Jesse wants his email address bolder than the italicized "email" label
   above it. global.css's `p, a, li, span { font-weight: 400; }` sets that
   weight directly on the <a> itself, which (per the same rule learned
   fixing publications.html's bold titles) always wins over an inherited
   weight from the <strong id="contact-email"> wrapping it -- so the fix
   has to target the <a> directly, same as there. The "email" <em> label
   is untouched and keeps its default (normal) weight. */
#contact-email a {
  font-weight: 800;
}

/* Hide mobile nav toggle if not needed */
.mobile-nav-toggle {
  display: none;
}

/* added by Claude, 2026-11-14 15:10 -- Tasks_2026-11-14.md Pass #2: the
   "Links" nav item is a dev-only shortcut. Hidden by default so it's
   never visible on GitHub Pages or any other real host, even if the
   dev-detection script in navigation.js hasn't run yet or fails; that
   script only ever REMOVES this class, it never adds it, so the
   fail-safe state is always hidden.
   -- renamed by Claude, 2026-11-17 11:37, Pass #1: nav-localhost-only ->
   nav-dev-only, since showDevOnlyNavItems() now also reveals it when the
   URL search string contains "jesse", not just on localhost. */
.nav-dev-only {
  display: none;
}

/*--------------------------------------------------------------
# Layout shift when nav is open on wide screens
--------------------------------------------------------------*/
@media (min-width: 800px) {
  .navigation {
    left: 0;
  }

  .navigation.navigation-show ~ main {
    margin-left: 200px; /* updated by Claude, 2026-11-17 15:10, Pass #5: 300px -> 200px */
    transition: margin-left 0.3s;
  }

  .navigation ~ main {
    margin-left: 0;
    transition: margin-left 0.3s;
  }
  /* removed by Claude, 2026-11-17 14:35 -- Tasks/Tasks_2026-11-17.md
     Pass #4: #footer is now nested inside <main> (see index.html) instead
     of being a standalone sibling, so it no longer needs its own
     margin-left rule here -- it shifts along with main automatically. */
}

/* Smooth transition always */
.main {
  transition: margin-left 0.3s;
}
