:root {
  color-scheme: light;
  font-family: Arial, "Noto Sans KR", sans-serif;
  color: #1f2933;
  background: #f4f7f8;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

.search-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.search-panel {
  display: grid;
  width: min(760px, 100%);
  gap: 18px;
}

.upload-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: #52636d;
  font-size: 14px;
}

.upload-bar input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.upload-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid #b8c8ce;
  border-radius: 6px;
  padding: 0 14px;
  color: #1f2933;
  background: #ffffff;
  cursor: pointer;
}

.upload-button:hover {
  border-color: #267c8d;
  color: #1f6b79;
}

.upload-bar p {
  margin: 0;
}

.search-form {
  display: flex;
  min-height: 56px;
  overflow: hidden;
  border: 1px solid #c9d4d8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(31, 41, 51, 0.08);
}

.search-form:focus-within {
  border-color: #267c8d;
  box-shadow: 0 0 0 4px rgba(38, 124, 141, 0.16);
}

.search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 20px;
  color: #1f2933;
  background: transparent;
  outline: 0;
}

.search-form input::placeholder {
  color: #6b7c86;
}

.search-form button {
  flex: 0 0 auto;
  min-width: 88px;
  border: 0;
  border-left: 1px solid #d7e0e3;
  padding: 0 22px;
  color: #ffffff;
  background: #267c8d;
  cursor: pointer;
}

.search-form button:hover {
  background: #1f6b79;
}

.search-form button:active {
  background: #185763;
}

.results {
  display: grid;
  gap: 12px;
}

.result-card {
  border: 1px solid #d7e0e3;
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.06);
}

.result-card h2 {
  margin: 0 0 12px;
  color: #1f2933;
  font-size: 20px;
  line-height: 1.3;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.result-grid div {
  min-width: 0;
}

.result-grid dt {
  margin-bottom: 3px;
  color: #6b7c86;
  font-size: 12px;
}

.result-grid dd {
  margin: 0;
  color: #1f2933;
  overflow-wrap: anywhere;
}

.empty-state {
  margin: 0;
  border: 1px dashed #b8c8ce;
  border-radius: 8px;
  padding: 18px;
  color: #52636d;
  text-align: center;
  background: rgba(255, 255, 255, 0.68);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .search-panel {
    gap: 14px;
  }

  .upload-bar {
    display: grid;
    justify-items: end;
    gap: 8px;
    font-size: 13px;
  }

  .search-form {
    min-height: 52px;
  }

  .search-form input {
    padding: 0 14px;
  }

  .search-form button {
    min-width: 72px;
    padding: 0 14px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}
