@charset "UTF-8";
/* 대학/학과 코드 검색 페이지 스타일 (모바일) */

.univ-dept-search [hidden] {
  display: none;
}

.univ-dept-search__title {
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  padding-top: 20px;
}

.univ-dept-search__subtitle {
  font-size: 14px;
  line-height: 20px;
  color: #535556;
  text-align: center;
  padding: 8px 0 24px;
}

.univ-dept-search {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
}

/* 요약 박스 */
.univ-dept-search__summary {
  border: 1px solid var(--primary);
  background: #e5f7f7;
  border-radius: 6px;
  padding: 24px;
}

.univ-dept-search__summary-title {
  font-size: 18px;
  font-weight: 700;
}

.univ-dept-search__summary-divider {
  border-top: 1px dashed var(--primary);
  margin: 16px 0;
}

.univ-dept-search__summary-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.univ-dept-search__summary-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.univ-dept-search__summary-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.univ-dept-search__summary-field:first-child {
  flex-basis: 100%;
}

.univ-dept-search__summary-label {
  font-size: 14px;
  color: #8a8d8f;
  white-space: nowrap;
}

.univ-dept-search__summary-divider-v {
  width: 1px;
  height: 14px;
  background: #D0D1D2;
}

.univ-dept-search__summary-placeholder {
  display: inline-flex;
  background: #ccefef;
  color: #008c8a;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
}

.univ-dept-search__pill {
  background: #ccefef;
  color: #008c8a;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
}

.univ-dept-search__pill--empty {
  background: #1c1c1d;
  color: #fff;
}

.univ-dept-search__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 48px;
  font-size: 16px;
  font-weight: 500;
}

.univ-dept-search__icon-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* 메인 컨테이너 */
.univ-dept-search__container {
  border: 1px solid #e8e8e9;
  border-radius: 8px;
  padding: 20px;
}

/* 검색 섹션 */
.univ-dept-search__search-section {
  background: #f3f4f4;
  border-radius: 6px;
  padding: 32px 16px;
  margin-bottom: 20px;
}

.univ-dept-search__search-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.univ-dept-search__search-label {
  font-size: 15px;
  font-weight: 600;
  color: #1c1c1d;
}

.univ-dept-search__search-row-divider {
  border-top: 1px dashed #d0d1d2;
  margin: 32px 0;
}

/* 대학 선택 입력창: 라벨+input이 하나의 입력창처럼 보이도록 wrap 자체를 박스로 스타일링 */
.univ-dept-search__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 40px 0 12px;
  border: 1px solid #d0d1d2;
  border-radius: 6px;
  background: #fff;
}

.univ-dept-search__input-wrap:focus-within {
  border-color: var(--primary);
}

.univ-dept-search__input-wrap--disabled {
  background: #e8e8e9;
}

.univ-dept-search__input-wrap-label {
  flex-shrink: 0;
  font-size: 13px;
  color: #6e7172;
  white-space: nowrap;
}

.univ-dept-search__input-icon {
  position: absolute;
  right: 12px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.univ-dept-search__clear-btn {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: #8a8d8f;
  cursor: pointer;
  padding: 4px;
}

.univ-dept-search__univ-input {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0;
  font-size: 15px;
  color: #1c1c1d;
}

.univ-dept-search__univ-input::placeholder {
  color: #b9bbbc;
}

.univ-dept-search__univ-input:disabled {
  color: #8a8d8f;
}

.univ-dept-search__dept-input {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0;
  font-size: 15px;
  color: #1c1c1d;
}

.univ-dept-search__dept-input::placeholder {
  color: #b9bbbc;
}

/* 카드 리스트: 모바일은 항상 1열 */
.univ-dept-search__card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.univ-dept-search__card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border: 1px solid #e8e8e9;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
}

.univ-dept-search__card-name {
  font-size: 15px;
  font-weight: 700;
  color: #1c1c1d;
}

.univ-dept-search__card-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.univ-dept-search__card-label {
  font-size: 14px;
  color: #8a8d8f;
}

.univ-dept-search__card-divider-v {
  width: 1px;
  height: 14px;
  background: #d0d1d2;
}

.univ-dept-search__card-badge {
  background: #f3f4f4;
  color: #373839;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 500;
}

.univ-dept-search__card.is-selected {
  background: #e5f7f7;
  border-color: var(--primary);
}

.univ-dept-search__card.is-selected .univ-dept-search__card-divider-v {
  background: var(--primary);
}

.univ-dept-search__empty {
  text-align: center;
  color: #8a8d8f;
  padding: 40px 0;
}