html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.ca {
  box-sizing: border-box;
  width: min(420px, 88vw);
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #17141a;
}

.ca__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ca__table th,
.ca__table td {
  padding: 0;
  text-align: left;
  vertical-align: middle;
}

.ca__headrow th {
  background: #17141a;
}

.ca__headrow th:nth-child(1) {
  width: 44%;
}

.ca__headrow th:nth-child(2) {
  width: 28%;
}

.ca__headrow th:nth-child(3) {
  width: 28%;
}

.ca__cap {
  display: block;
  line-height: 26px;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff7e6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ca__cap--hi {
  color: #ffd23f;
}

.ca__gth {
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.1);
}

.ca__btn {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 12px;
  padding-right: 12px;
  border: 0;
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0.05);
  color: #17141a;
  font-family: inherit;
  font-size: 12px;
  line-height: 22px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.ca__btn:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: -2px;
}

.ca__caret {
  display: inline-flex;
  flex: 0 0 auto;
  color: #2f6df6;
  transition: transform 300ms ease-out;
}

.ca__caret svg {
  display: block;
}

.ca__gname {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ca__box {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  transition: grid-template-rows 300ms ease-out;
}

.ca__group[data-open="0"] .ca__box {
  grid-template-rows: 0fr;
}

.ca__group[data-open="0"] .ca__caret {
  transform: rotate(-90deg);
}

.cell {
  display: block;
  min-height: 0;
  line-height: 26px;
  padding-left: 12px;
  padding-right: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #17141a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.ca__row th .cell {
  font-weight: 700;
}

.cell--hi {
  color: #2f6df6;
  font-weight: 700;
}

.ca.is-demo .ca__box {
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.ca.is-demo .ca__caret {
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.ca.is-demo .ca__group[data-g=a] .ca__box {
  animation-name: ca-shut-a;
}

.ca.is-demo .ca__group[data-g=b] .ca__box {
  animation-name: ca-shut-b;
}

.ca.is-demo .ca__group[data-g=a] .ca__caret {
  animation-name: ca-caret-a;
}

.ca.is-demo .ca__group[data-g=b] .ca__caret {
  animation-name: ca-caret-b;
}

@keyframes ca-shut-a {
  0% {
    grid-template-rows: 1fr;
  }
  20% {
    grid-template-rows: 0fr;
  }
  34% {
    grid-template-rows: 0fr;
  }
  48% {
    grid-template-rows: 1fr;
  }
  100% {
    grid-template-rows: 1fr;
  }
}
@keyframes ca-shut-b {
  0% {
    grid-template-rows: 1fr;
  }
  48% {
    grid-template-rows: 1fr;
  }
  66% {
    grid-template-rows: 0fr;
  }
  76% {
    grid-template-rows: 0fr;
  }
  88% {
    grid-template-rows: 1fr;
  }
  100% {
    grid-template-rows: 1fr;
  }
}
@keyframes ca-caret-a {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-90deg);
  }
  34% {
    transform: rotate(-90deg);
  }
  48% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@keyframes ca-caret-b {
  0% {
    transform: rotate(0deg);
  }
  48% {
    transform: rotate(0deg);
  }
  66% {
    transform: rotate(-90deg);
  }
  76% {
    transform: rotate(-90deg);
  }
  88% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
@media (max-width: 340px) {
  .ca__cap {
    line-height: 20px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 10px;
  }
  .ca__btn {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 11px;
    line-height: 18px;
  }
  .cell {
    line-height: 20px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ca.is-demo .ca__box,
  .ca.is-demo .ca__caret {
    animation: none !important;
  }
  .ca__box,
  .ca__caret {
    transition: none;
  }
  .ca.is-demo .ca__box {
    grid-template-rows: 1fr;
  }
}
