*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --index-bg: #EDF1F3;
  --index-surface: #FFFFFF;
  --index-ink: #17212B;
  --index-muted: #5F6B76;
  --index-line: #CED7DD;
  --index-primary: #0A3055;
  --index-primary-strong: #062541;
  --index-accent: #B38855;
  --index-accent-soft: #EEE5D9;
  --index-shadow: rgba(23, 33, 43, 0.13);
  --index-focus: rgba(179, 136, 85, 0.55);
}

html {
  min-width: 320px;
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--index-bg);
  color: var(--index-ink);
  font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--index-focus);
  outline-offset: 3px;
}

.nl-index-shell {
  width: min(100%, 1640px);
  margin-inline: auto;
  padding: 26px;
}

.nl-index-header {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.nl-index-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nl-index-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--index-primary);
  color: var(--index-surface);
  font-size: 11px;
  font-weight: 900;
}

.nl-index-title {
  margin: 0;
  color: var(--index-primary-strong);
  font-size: 24px;
  line-height: 1.2;
}

.nl-index-subtitle {
  margin: 5px 0 0;
  color: var(--index-muted);
  font-size: 12px;
  font-weight: 700;
}

.nl-index-modes {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--index-line);
  border-radius: 8px;
  background: var(--index-surface);
}

.nl-index-mode {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--index-muted);
  cursor: pointer;
}

.nl-index-mode svg {
  width: 19px;
  height: 19px;
}

.nl-index-mode:hover,
.nl-index-mode.is-active {
  background: var(--index-accent-soft);
  color: var(--index-primary);
}

.nl-index-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.nl-index-concept {
  min-width: 0;
}

.nl-index-concept-head {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--index-line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--index-surface);
}

.nl-index-concept-label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nl-index-letter {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--index-primary);
  color: var(--index-surface);
  font-size: 17px;
  font-weight: 900;
}

.nl-index-concept:nth-child(2) .nl-index-letter {
  background: var(--index-accent);
  color: var(--index-primary-strong);
}

.nl-index-concept h2 {
  margin: 0;
  color: var(--index-primary-strong);
  font-size: 17px;
  line-height: 1.2;
}

.nl-index-concept p {
  margin: 5px 0 0;
  color: var(--index-muted);
  font-size: 12px;
}

.nl-index-recommend {
  color: var(--index-accent);
  font-weight: 900;
}

.nl-index-open {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid var(--index-primary);
  border-radius: 8px;
  background: var(--index-surface);
  color: var(--index-primary);
  font-size: 13px;
  font-weight: 900;
}

.nl-index-open:hover {
  background: var(--index-accent-soft);
}

.nl-index-open svg {
  width: 16px;
  height: 16px;
}

.nl-index-stage {
  width: 100%;
  min-height: 760px;
  display: flex;
  justify-content: center;
  overflow: auto;
  border: 1px solid var(--index-line);
  border-radius: 0 0 8px 8px;
  background: var(--index-line);
  box-shadow: 0 18px 50px var(--index-shadow);
}

.nl-index-frame {
  width: 100%;
  height: 760px;
  flex: 0 0 auto;
  border: 0;
  background: var(--index-surface);
  transition: width 180ms ease;
}

.nl-index-compare[data-mode="tablet"],
.nl-index-compare[data-mode="mobile"] {
  grid-template-columns: 1fr;
}

.nl-index-compare[data-mode="tablet"] .nl-index-stage,
.nl-index-compare[data-mode="mobile"] .nl-index-stage {
  padding: 18px;
}

.nl-index-compare[data-mode="tablet"] .nl-index-frame {
  width: 768px;
  max-width: 100%;
}

.nl-index-compare[data-mode="mobile"] .nl-index-frame {
  width: 390px;
  max-width: 100%;
}

.nl-index-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 2px 4px;
  color: var(--index-muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .nl-index-shell {
    padding: 18px;
  }

  .nl-index-compare {
    grid-template-columns: 1fr;
  }

  .nl-index-stage,
  .nl-index-frame {
    min-height: 700px;
    height: 700px;
  }
}

@media (max-width: 600px) {
  .nl-index-shell {
    padding: 14px;
  }

  .nl-index-header {
    display: grid;
    align-items: start;
  }

  .nl-index-modes {
    justify-self: start;
  }

  .nl-index-title {
    font-size: 21px;
  }

  .nl-index-concept-head {
    align-items: flex-start;
  }

  .nl-index-concept p {
    max-width: 190px;
  }

  .nl-index-open {
    width: 44px;
    padding: 0;
  }

  .nl-index-open span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .nl-index-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}
