/* --------------------------------------------------
   Base / Reset
-------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f7f4ef;
  color: #2b2b2b;
  line-height: 1.6;
}

/* --------------------------------------------------
   Header (full-width SVG header image)
-------------------------------------------------- */
.header {
  background: #f3f1ea;
  padding: 0;
  margin: 0;
}

.header-image {
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* --------------------------------------------------
   Navigation Bar
-------------------------------------------------- */
.nav {
  background: #2a9d8f;
  padding: 0.5rem 1rem;
}

.nav .menu {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1040px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.menu > li {
  position: relative;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0;
  display: block;
}

.menu a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------
   Dropdown Submenus
-------------------------------------------------- */
.submenu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;

  position: absolute;
  top: 100%;
  left: 0;

  background: #264653;
  border-radius: 4px;
  min-width: 200px;

  display: none;
  flex-direction: column;
  z-index: 1000;
}

.submenu li a {
  padding: 0.5rem 1rem;
  white-space: nowrap;
}

.has-submenu:hover .submenu {
  display: flex;
}

/* --------------------------------------------------
   Mobile Navigation Behavior
-------------------------------------------------- */
@media (max-width: 700px) {
  .header {
    overflow: hidden;
  }

  .header-image {
    height: clamp(63px, 15.4vw, 91px);
    width: 70%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
  }

  .menu {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .submenu {
    position: static;
    display: none;
    background: #264653;
    width: 100%;
  }

  .has-submenu:hover .submenu {
    display: block;
  }
}

/* --------------------------------------------------
   Main Content Area
-------------------------------------------------- */
.content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.content h1 {
  margin-top: 0;
  font-size: 2rem;
  color: #264653;
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
.footer {
  background: #264653;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* --------------------------------------------------
   Proceedings Search + Index
-------------------------------------------------- */
.proceedings-note {
  background: #fff;
  border-left: 4px solid #2a9d8f;
  padding: 0.9rem 1rem;
  margin: 1rem 0 1.5rem;
}

.proceedings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0 1.5rem;
}

.proceedings-actions a {
  display: inline-block;
  background: #2a9d8f;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
}

.proceedings-actions a:hover {
  background: #237f73;
}

.proceedings-repo-link {
  margin-left: 0.25rem;
}

.proceedings-search-wrap {
  background: #fff;
  border: 1px solid #d9d2c6;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
}

.proceedings-search-status {
  margin-top: 0.75rem;
  color: #5a5a5a;
  font-size: 0.95rem;
}

.abstract-index-list {
  margin: 1rem 0;
  padding-left: 1.1rem;
}

.abstract-index-list li {
  margin: 0.25rem 0;
}

/* --------------------------------------------------
   Generic Google Sheet Tables
-------------------------------------------------- */
.sheet-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1rem 0 2rem;
  background: #fff;
  border-radius: 8px;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  border-bottom: 2px solid #cfc7ba;
  font-size: 0.97rem;
}

.sheet-table thead th {
  text-align: left;
  font-weight: 700;
  color: #1f3a4a;
  background: #f3efe7;
  border-bottom: 2px solid #cfc7ba;
  padding: 0.65rem 0.75rem;
  white-space: nowrap;
}

.sheet-table tbody td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #ddd6c9;
  vertical-align: top;
}

.sheet-table-nowrap {
  white-space: nowrap;
}

.sheet-table tbody th {
  text-align: left;
  font-weight: 700;
  color: #1f3a4a;
  background: #f3efe7;
  border-bottom: 2px solid #cfc7ba;
  padding: 0.65rem 0.75rem;
  white-space: nowrap;
}

.sheet-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.sheet-table tbody tr:nth-child(even) {
  background: #f5f5f5;
}

.sheet-table-error {
  margin: 1rem 0;
  padding: 0.75rem 0.9rem;
  background: #fff;
  border-left: 4px solid #cc7a00;
}
