/* =========================
   Base layout & typography revised
   ========================= */

body {
  font-family: "Lato", Verdana, Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================
   Prose & content blocks
   ========================= */

.prose {
  font-family: Verdana, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}

.list-compact li {
  margin-bottom: 4px;
}

/* =========================
   Classes page
   ========================= */

.classes-header {
  font-family: Arial, Helvetica, sans-serif;
  font-size: large;
  margin: 30px 70px 10px 90px;
  clear: both;
}

.classes-list {
  font-family: Arial, Helvetica, sans-serif;
  font-size: medium;
  list-style: none;
  margin: 50px 60px 10px 50px;
  padding-left: 0;
  clear: both;
}

.classes-list li {
  list-style: none;
  line-height: 1.6;
  text-align: left;
  margin: 0 0 12px 0;
  clear: both;
}

/* =========================
   Tables
   ========================= */

.table-inline {
  border-collapse: collapse;
}

.table-inline td,
.table-inline th {
  padding: 6px 10px;
}

.table-toc {
  width: 100%;
}

/* =========================
   Navbar (ultra-minimal academic)
   Works with standard W3 navbar markup:
   .w3-top > .w3-bar and the mobile panel #navDemo
   ========================= */

.w3-top { z-index: 1000; }

/* Main navbar bar */
.w3-top .w3-bar {
  background: #111 !important;                 /* charcoal */
  color: #f5f5f5 !important;                   /* off-white */
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: none !important;                 /* remove card look */
}

/* Ensure navbar links/buttons stay readable even if a page has :link/:visited rules */
.w3-top .w3-bar a.w3-bar-item,
.w3-top .w3-bar a.w3-button,
.w3-top .w3-bar button.w3-button {
  color: #f5f5f5 !important;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  font-weight: 500;
  white-space: nowrap;
}

/* Hover */
.w3-top .w3-bar .w3-button:hover,
.w3-top .w3-bar a.w3-bar-item:hover {
  background: rgba(255,255,255,0.10) !important;
}

/* Active link highlight (your JS adds .is-active) */
.w3-top .w3-bar a.is-active,
#navDemo a.is-active {
  background: rgba(255,255,255,0.18) !important;
}

/* Dropdown panels */
.w3-top .w3-dropdown-content {
  background: #111 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
  min-width: 220px;
}

/* Dropdown items */
.w3-top .w3-dropdown-content .w3-bar-item,
.w3-top .w3-dropdown-content .w3-button {
  color: #f5f5f5 !important;
  text-decoration: none !important;
}

.w3-top .w3-dropdown-content .w3-bar-item:hover,
.w3-top .w3-dropdown-content .w3-button:hover {
  background: rgba(255,255,255,0.10) !important;
}

/* Mobile menu panel */
#navDemo {
  background: #111 !important;
  color: #f5f5f5 !important;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Mobile separator */
.nav-separator {
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.18);
  margin: 8px 0;
}

/* Hamburger icon */
.hamburger-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
}

.hamburger-line {
  display: block;
  height: 2px;
  width: 18px;
  background: #f5f5f5;
  border-radius: 2px;
}

/* Make navbar background uniform (no per-button tiles) */
.w3-top .w3-bar,
.w3-top .w3-bar .w3-bar-item,
.w3-top .w3-bar .w3-button {
  background: #111 !important;
}

/* Subtle hover only */
.w3-top .w3-bar .w3-bar-item:hover,
.w3-top .w3-bar .w3-button:hover {
  background: rgba(255,255,255,0.10) !important;
}

/* =========================
   Contact section (clean + tight)
   ========================= */

#contact.w3-content {
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.contact-line {
  margin: 0;
  line-height: 1.15;
  padding-right: 16px;
  white-space: nowrap;
}

/* =========================
   Utility
   ========================= */

.hidden {
  display: none;
}

.section-spacer {
  height: 96px;
}

#contact, #PI {
  scroll-margin-top: 80px;
}

/* =========================
   Map layout
   ========================= */

.map-wrapper {
  padding-left: 24px !important;
  box-sizing: border-box !important;
}

.map-wrapper .map-embed {
  display: block !important;
  width: calc(100% - 24px) !important;
  max-width: 800px !important;
  margin-left: 24px !important;
  border: 0 !important;
}
