:root {
  color-scheme: light;
  font-family:
    Inter, "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #f6f7f9;
  color: #17191c;
}

* {
  box-sizing: border-box;
}

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 8px;
  background: #0f6b63;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.brand-header {
  padding: 0 0 24px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #0f6b63;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2,
p {
  overflow-wrap: anywhere;
}

.search-panel,
.results-panel {
  border-top: 1px solid #d9dee5;
  padding-top: 28px;
}

.search-panel h2,
.results-panel h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  letter-spacing: 0;
}

.search-panel {
  margin-bottom: 36px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 180px) minmax(130px, 160px) 120px;
  gap: 16px;
  align-items: end;
  margin-top: 24px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: #4b535c;
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c8d0d9;
  border-radius: 8px;
  background: #ffffff;
  color: #17191c;
  padding: 0 14px;
}

.search-form button {
  min-height: 48px;
  padding: 0 18px;
}

.results-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.results-head .eyebrow {
  margin-bottom: 10px;
}

.meta {
  max-width: 380px;
  margin: 4px 0 0;
  color: #4b535c;
  line-height: 1.6;
  text-align: right;
}

.status {
  margin-top: 24px;
  border: 1px solid #c8d0d9;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  color: #4b535c;
  line-height: 1.6;
}

.status[data-type="error"] {
  border-color: #d98d8d;
  color: #8f1d1d;
}

.results {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.result-item {
  border: 1px solid #d9dee5;
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
}

.result-title {
  display: inline-block;
  color: #17191c;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.result-title:hover {
  color: #0f6b63;
}

.result-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  color: #68727d;
  font-size: 0.92rem;
}

.result-footer a {
  color: #0f6b63;
  font-weight: 700;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.pager button {
  min-width: 88px;
  min-height: 42px;
  padding: 0 16px;
}

.pager span {
  min-width: 76px;
  color: #4b535c;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1080px);
    padding: 24px 0 40px;
  }

  .brand-header {
    padding-bottom: 20px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .results-head {
    display: block;
  }

  .meta {
    max-width: none;
    text-align: left;
  }
}
