* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  color: #0f172a;
}

main.page {
  min-height: 100vh;
  padding: 2rem 1rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.title {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

.subtitle {
  margin: 0;
  color: #475569;
  font-size: 1rem;
}

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
}

.detail-panel {
  padding-bottom: 2rem;
}

.detail-note {
  margin: 0;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.5;
}

.detail-title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.detail-info {
  margin: 0;
  color: #1e293b;
  font-size: 0.95rem;
}

.detail-subtitle {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #0f172a;
}

.month-list {
  padding-left: 1.2rem;
  margin: 0;
  display: grid;
  gap: 0.2rem;
  color: #475569;
  font-size: 0.9rem;
}

.temperature-chart {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
  gap: 0.6rem;
}

.chart-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bar-track {
  width: 100%;
  height: 140px;
  background: #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #cbd5f5;
  display: flex;
  align-items: flex-end;
}

.bar-fill {
  width: 100%;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #bfdbfe, #2563eb);
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-origin: bottom;
}

.bar-temp {
  position: absolute;
  top: -1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f172a;
}

.bar-label {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #475569;
}

.bar-fill.highlight {
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
  transform: scaleY(1.05);
}

.selection-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.country-search {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid #cbd5f5;
  background: #f8fafc;
  color: #0f172a;
  font-size: 1rem;
}

.panel-heading {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.panel-heading--gap {
  margin-top: 0.5rem;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #cbd5f5;
  background: #e0e7ff;
  color: #0f172a;
  cursor: pointer;
  font-weight: 600;
}

.pill.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

select#country-picker {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #cbd5f5;
  color: #0f172a;
  font-size: 1rem;
}

.status-lines {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
  color: #64748b;
}

.status-lines span {
  color: #0f172a;
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.actions button {
  flex: 1;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

.actions button:nth-child(2) {
  background: #e2e8f0;
  color: #0f172a;
  border: 1px solid #cbd5f5;
}

.note {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.faq {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 1rem 1.5rem;
  border-radius: 18px;
  display: grid;
  gap: 0.8rem;
}

.faq .question {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.answer {
  margin: 0;
  color: #0f172a;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .actions button {
    flex: 1 1 100%;
  }

  .panel {
    padding: 1.2rem;
  }
}
