/* ===== Base ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {

  line-height: 1.5;
  padding: 1rem;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 2rem 1.5rem;
}

/* ===== Term selector (common include) ===== */
.term-selector{
  margin-bottom: 2rem;
  display:flex;
  align-items:center;
  justify-content:space-between; /* ✅ 좌/우 배치 */
  gap: 16px;
}

/* ✅ 왼쪽 타이틀 */
.term-selector__title{
  flex: 1 1 auto;
  font-size: 1.4rem;     /* 필요시 조절 */
  font-weight: 700;
  color:#111827;
  line-height:1.2;
}

#imwon_list {
  font-size: 1rem;
  padding: 0.6rem 2.5rem 0.6rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: white;
  color: #1f2937;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.2rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 280px;
}

#imwon_list:hover {
  border-color: #9ca3af;
}

#imwon_list:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== Sections ===== */
section {
  margin-top: 2.5rem;
}

section:first-of-type {
  margin-top: 0;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111827;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  /*border-bottom: 2px solid #e5e7eb;*/
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin: 2rem 0 1rem;
}

/* ===== Tables ===== */
.table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #edf2f7;
  background: white;
}

.committee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.00rem;
  min-width: 600px;
}

.committee-table th {
  background-color: #f8fafc;
  font-weight: 600;
  color: #1e293b;
  padding: 0.9rem 1rem;
  text-align: center;
  border-bottom: 2px solid #e2e8f0;
}

.committee-table td {
  padding: 0.9rem 1rem;
  text-align: center;
  border-bottom: 1px solid #e9eef2;
  background-color: white;
}

.committee-table tr:last-child td {
  border-bottom: none;
}

/* Subtle zebra striping for readability */
.committee-table tbody tr:nth-child(even) td {
  background-color: #fcfdff;
}

/* For tables that use rowspan (editorial committee) */
.committee-table td[rowspan] {
  vertical-align: middle;
  background-color: #f9f9fc;
  font-weight: 500;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 640px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .term-selector{
    flex-direction: column;
    align-items: stretch;
  }
  .term-selector__title{
    font-size: 1.2rem;
  }
  #imwon_list {
    max-width: 100%;
  }

  h2 {
    font-size: 1.3rem;
  }

  .committee-table th,
  .committee-table td {
    padding: 0.7rem 0.5rem;
    font-size: 0.85rem;
  }
}