:root {
  color-scheme: light;
  --background: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --subtle: #86868b;
  --line: #e5e5e7;
  --accent: #0066cc;
  --accent-hover: #004f9f;
  --container: 1040px;
  --reading: 740px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(0, 102, 204, 0.24);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  padding: 9px 13px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  color: var(--text);
  font-weight: 750;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-link {
  font-size: 1.08rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.home-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 96px 0 76px;
  text-align: center;
}

.home-intro h1 {
  margin: 0;
  font-size: 4.2rem;
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: 0;
}

.home-intro h1 span {
  display: block;
}

.home-intro-kicker {
  font-size: 0.72em;
  font-weight: 680;
}

.home-intro > p {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
  word-break: keep-all;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px;
  border: 1px solid #d2d2d7;
  border-radius: 16px;
  background: #fff;
}

.home-search {
  max-width: 680px;
  margin: 34px auto 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  outline: none;
  appearance: none;
}

input[type="search"]::placeholder {
  color: #9a9a9f;
}

.search-form button,
.button-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.search-form button:hover,
.button-link:hover {
  background: #3a3a3c;
}

.home-browse {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--subtle);
  font-size: 0.9rem;
}

.home-browse a {
  color: var(--accent);
  text-decoration: none;
}

.home-browse a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.list-section,
.directory-page,
.search-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 0 104px;
}

.list-section-header,
.page-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.list-section-header h2,
.page-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 730;
  line-height: 1.15;
  letter-spacing: 0;
}

.page-header {
  padding-top: 72px;
}

.page-header p {
  margin: 8px 0 0;
  color: var(--muted);
}

.search-page .search-form {
  margin: 28px 0 34px;
}

.search-results {
  margin-top: 0;
}

.manual-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.manual-list li {
  border-bottom: 1px solid var(--line);
}

.manual-list a {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 19px 38px 19px 2px;
  text-decoration: none;
}

.manual-list a::after {
  content: "›";
  position: absolute;
  top: 50%;
  right: 4px;
  color: #b0b0b5;
  font-size: 1.5rem;
  font-weight: 300;
  transform: translateY(-52%);
}

.manual-list a:hover .manual-title {
  color: var(--accent);
}

.manual-title {
  color: var(--text);
  font-weight: 670;
  line-height: 1.45;
}

.manual-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.skeleton-result {
  display: grid;
  gap: 10px;
  padding: 20px 2px;
}

.directory-skeleton {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
}

.skeleton-line {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #ececef;
}

.skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: shimmer 1.25s ease-in-out infinite;
}

.skeleton-title {
  width: min(78%, 520px);
  height: 17px;
}

.skeleton-meta {
  width: min(46%, 280px);
  height: 12px;
}

.directory-skeleton .skeleton-title {
  width: 62%;
}

.directory-skeleton .skeleton-meta {
  width: 34px;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.directory-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}

.directory-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  font-weight: 620;
  text-decoration: none;
}

.directory-link:hover {
  color: var(--accent);
}

.directory-link small {
  color: var(--subtle);
  font-size: 0.78rem;
  font-weight: 500;
}

.empty {
  margin: 0;
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}

.manual-page {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 58px 0 104px;
}

.manual-header {
  padding-bottom: 0;
}

.manual-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.breadcrumb {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  color: var(--subtle);
  font-size: 0.8rem;
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: #c7c7cc;
}

.manual-updated {
  flex: none;
  margin: 0;
  color: var(--subtle);
  font-size: 0.8rem;
  text-align: right;
  white-space: nowrap;
}

.manual-header h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(1.12rem, 5vw, 2.35rem);
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: 0;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.manual-product-name {
  margin: 14px 0 0;
  color: #3a3a3c;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
}

.manual-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 28px 0 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manual-facts > div {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin-right: 22px;
}

.manual-facts dt {
  flex: 0 0 auto;
  color: var(--subtle);
  font-size: 0.76rem;
  white-space: nowrap;
}

.manual-facts dd {
  min-width: 0;
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.manual-body {
  margin-top: 48px;
  color: #2c2c2e;
  font-size: 1rem;
  line-height: 1.78;
}

.manual-body > :first-child {
  margin-top: 0;
}

.manual-body .manual-summary {
  margin: 0 0 52px;
}

.manual-body .manual-summary + .manual-summary {
  margin-top: 44px;
}

.manual-body h2 {
  margin: 0 0 22px;
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.manual-body h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.4;
  letter-spacing: 0;
}

.manual-section {
  margin: 14px 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--surface);
}

.manual-copy > :first-child {
  margin-top: 0;
}

.manual-copy > :last-child {
  margin-bottom: 0;
}

.manual-body p {
  margin: 0 0 1em;
}

.manual-body ul,
.manual-body ol {
  margin: 0.7em 0 1em;
  padding-left: 1.35em;
}

.manual-body li {
  margin: 0.38em 0;
}

.manual-body li::marker {
  color: var(--accent);
}

.manual-body a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.manual-body code {
  padding: 0.12em 0.32em;
  border-radius: 5px;
  background: #e9e9ed;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.manual-source-pages {
  display: inline-block;
  margin: 0 0 10px !important;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 600;
}

.page-ref {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--subtle);
  background: var(--surface);
  font-size: 0.78rem;
  font-weight: 700;
  vertical-align: 0.15em;
  white-space: nowrap;
}

.manual-body table {
  width: 100%;
  display: block;
  overflow-x: auto;
  margin: 22px 0;
  border-collapse: collapse;
}

.manual-body th,
.manual-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.manual-body th {
  background: var(--surface);
  font-size: 0.85rem;
}

.manual-body.has-source-footer > .manual-source {
  display: none;
}

.manual-body > :last-child {
  margin-bottom: 0;
}

.manual-feedback {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 28px;
  color: var(--subtle);
  font-size: 0.82rem;
}

.manual-feedback-question {
  white-space: nowrap;
}

.manual-feedback-actions {
  display: inline-flex;
  gap: 6px;
}

.manual-feedback button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1;
}

.manual-feedback button:hover,
.manual-feedback button.is-selected {
  border-color: var(--accent);
  color: var(--accent);
}

.manual-feedback button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.manual-feedback-status {
  min-width: 0;
  color: var(--subtle);
  font-size: 0.76rem;
}

.manual-feedback-status:empty {
  display: none;
}

.manual-footer-section {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.manual-feedback + .manual-footer-section {
  margin-top: 24px;
}

.manual-related-section {
  margin-top: 32px;
  padding-top: 0;
  border-top: 0;
}

.manual-footer-section h2 {
  margin: 0 0 15px;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.source-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.source-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  color: var(--accent);
  font-weight: 620;
  text-decoration: none;
}

.source-list li + li a {
  border-top: 1px solid var(--line);
}

.source-list a::after {
  content: "↗";
  flex: none;
}

.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.tag-list a {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
}

.tag-list a:hover {
  color: var(--accent);
}

.empty-state {
  max-width: 620px;
  margin: 80px auto 110px;
  text-align: center;
}

.empty-state h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0;
}

.empty-state p {
  margin: 14px 0 24px;
  color: var(--muted);
}

.info-page {
  max-width: var(--reading);
  margin: 0 auto;
  padding-bottom: 104px;
}

.info-copy {
  margin-top: 34px;
}

.info-copy h2 {
  margin: 34px 0 8px;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.info-copy p {
  margin: 0;
  color: var(--muted);
}

.page-header-with-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.page-header-with-meta h1 {
  margin: 0;
}

.page-meta {
  flex: none;
  margin: 7px 0 0;
  color: var(--subtle);
  font-size: 0.78rem;
  text-align: right;
  white-space: nowrap;
}

.info-copy ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.info-copy li {
  margin: 0.42em 0;
}

.privacy-list {
  display: grid;
  gap: 14px;
  margin: 12px 0 0;
}

.privacy-list div {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
}

.privacy-list dt {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 680;
}

.privacy-list dd {
  margin: 0;
  color: var(--muted);
}

.info-copy a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  padding: 30px 0 34px;
}

.footer-compact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-mail-link {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
}

.footer-mail-link:hover {
  color: var(--text);
}

.footer-mail-icon {
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: url("/icons/mail.svg") center / contain no-repeat;
  mask: url("/icons/mail.svg") center / contain no-repeat;
}

.footer-policy-link {
  color: var(--muted);
  text-decoration: none;
}

.footer-policy-link:hover {
  color: var(--text);
}

@media (max-width: 700px) {
  .site-container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 58px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .home-intro {
    padding: 66px 0 56px;
  }

  .home-intro h1 {
    font-size: 3.12rem;
  }

  .home-intro > p {
    font-size: 1rem;
  }

  .search-form {
    padding: 6px;
  }

  input[type="search"] {
    min-height: 46px;
    padding: 0 10px;
    font-size: 0.93rem;
  }

  .search-form button {
    min-height: 42px;
    padding: 0 14px;
  }

  .list-section,
  .directory-page,
  .search-page {
    padding-bottom: 76px;
  }

  .page-header {
    padding-top: 50px;
  }

  .directory-list {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .manual-page {
    padding: 38px 0 76px;
  }

  .manual-topline,
  .page-header-with-meta {
    display: grid;
    gap: 8px;
  }

  .manual-updated,
  .page-meta {
    text-align: left;
    white-space: normal;
  }

  .manual-header h1 {
    font-size: clamp(1.08rem, 5vw, 1.46rem);
  }

  .manual-facts {
    display: grid;
    gap: 8px;
  }

  .manual-facts > div {
    margin-right: 0;
  }

  .manual-body {
    margin-top: 38px;
  }

  .manual-section {
    margin: 12px -2px;
    padding: 18px;
  }

  .manual-feedback {
    flex-wrap: wrap;
    gap: 8px;
  }

  .manual-feedback-status {
    width: 100%;
    min-width: 0;
    text-align: right;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skeleton-line::after {
    animation: none;
  }
}
