/* common.css */
/* ===== Base ===== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f2f2f2;
}

/* ===== Top Nav ===== */
.topnav{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1a1a1a;
  border-bottom: 1px solid #000;
}

.topnav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.menu{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.menu a{
  color: #d9d9d9;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}

/* hover (비활성 메뉴) */
.menu a:hover{
  background: #333;
  color: #fff;
}

/* ✅ active: 하얀색 음영 처리 */
.menu a.active{
  background: rgba(255,255,255,0.92);
  color: #000;
  font-weight: 700;
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* ✅ active는 hover에 덮이지 않도록 별도 처리 */
.menu a.active:hover{
  background: rgba(255,255,255,0.96);
  color: #000;
}

/* ===== Layout ===== */
.wrap {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 16px;
}

.panel{
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
