:root {
  --accent-green: #1cc983;
  --ink: #17191d;
  --muted: #626973;
  --line: #dfe3e8;
  --soft-line: #edf0f3;
  --surface: #f6f7f9;
  --white: #ffffff;
  font-family: "Noto Sans KR", sans-serif;
  color: #000;
  background: var(--white);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: #000;
  font-family: "Noto Sans KR", sans-serif;
  font-size: 1em;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: .1px;
  word-break: keep-all;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
.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; }

.site-header { background: var(--accent-green); }
.header-inner, .intro, .faq-section, .footer-inner { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.header-inner { height: 108px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 18px; color: inherit; text-decoration: none; }
.brand-logo {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.brand-name { display: flex; flex-direction: column; color: #fff; line-height: 1.45; }
.brand-name strong { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.brand-name span { font-size: 11px; font-weight: 300; letter-spacing: .025em; opacity: .9; }

.intro { padding: 88px 0 58px; text-align: center; }
.eyebrow { margin: 0 0 13px; color: var(--accent-green); font-family: "Nanum Myeongjo", serif; font-size: 13px; font-weight: 700; letter-spacing: .12em; }
h1 {
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--accent-green);
  font-family: "Nanum Myeongjo", serif;
  font-size: 1.875em;
  font-weight: 500;
  line-height: 1.5em;
  letter-spacing: normal;
}
.intro-copy { margin: 15px 0 34px; color: var(--muted); font-size: 17px; }
.search-wrap { position: relative; width: min(720px, 100%); margin: 0 auto; }
.search-wrap svg { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); fill: none; stroke: var(--accent-green); stroke-width: 1.8; stroke-linecap: round; }
.search-wrap input { width: 100%; height: 68px; padding: 0 92px 0 62px; border: 2px solid var(--accent-green); border-radius: 2px; outline: none; color: var(--ink); background: var(--white); font-size: 17px; box-shadow: 0 8px 24px rgba(28, 201, 131, .10); }
.search-wrap input::placeholder { color: #858b93; }
.search-wrap input:focus { box-shadow: 0 0 0 3px rgba(28, 201, 131, .20), 0 8px 24px rgba(28, 201, 131, .10); }
.clear-search { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }

.faq-section { padding: 0 0 110px; }
.category-list { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); border-right: 0; }
.category { min-height: 56px; padding: 10px 8px; border: 0; border-right: 1px solid var(--line); background: var(--white); font-weight: 600; cursor: pointer; transition: color .15s ease, background .15s ease; }
.category:hover { background: #f1fbf7; color: #08794d; }
.category:focus-visible { position: relative; outline: 3px solid rgba(28, 201, 131, .30); outline-offset: -3px; }
.category.active { background: var(--accent-green); color: #000; }
.result-bar { min-height: 76px; display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 0 2px 17px; border-bottom: 2px solid var(--ink); }
.result-bar p { margin: 0; color: var(--muted); font-size: 14px; }
.result-bar strong { color: #08794d; font-size: 17px; }
.sample-note { text-align: right; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { min-height: 78px; display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: 16px; padding: 17px 18px 17px 8px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .question-text { color: #08794d; }
.faq-item summary:focus-visible { outline: 3px solid rgba(28, 201, 131, .22); outline-offset: -3px; }
.question-mark, .answer-mark { color: var(--accent-green); font-family: Georgia, serif; font-size: 21px; font-weight: 700; }
.question-text { font-size: 17px; font-weight: 600; letter-spacing: -.015em; transition: color .15s ease; }
.chevron { width: 10px; height: 10px; justify-self: center; border-right: 1.5px solid #49505a; border-bottom: 1.5px solid #49505a; transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s ease; }
.faq-item[open] .chevron { transform: rotate(225deg) translate(-2px, -2px); }
.faq-item[open] summary { border-bottom: 1px solid var(--soft-line); }
.answer { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 25px 56px 27px 8px; background: var(--surface); color: #3f454d; }
.answer p { margin: 0; }
.answer-content > *:first-child { margin-top: 0; }
.answer-content > *:last-child { margin-bottom: 0; }
.answer-content a { color: #08794d; text-underline-offset: 3px; }
.answer-attachments { display: grid; gap: 12px; margin-top: 22px; }
.answer-attachments img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); }
.attachment-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; border: 1px solid var(--line); background: var(--white); color: var(--ink) !important; text-decoration: none; }
.attachment-link:hover { border-color: var(--accent-green); }
.attachment-link span { min-width: 0; overflow-wrap: anywhere; }
.attachment-link strong { flex: 0 0 auto; color: #08794d; font-size: 13px; font-weight: 500; }
.faq-item[hidden] { display: none; }
.loading-state { padding: 54px 24px; border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; }
.error-state { color: #8a3333; }
.error-state button { margin-top: 12px; padding: 7px 12px; border: 1px solid #bcc2c7; background: #fff; cursor: pointer; }
.empty-state { padding: 70px 24px; border-bottom: 1px solid var(--line); text-align: center; }
.empty-state p { margin: 0 0 5px; font-weight: 700; }
.empty-state span { color: var(--muted); font-size: 14px; }

footer { border-top: 1px solid var(--line); background: #f3f4f5; color: #666d76; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; padding: 31px 0 34px; font-size: 13px; }
.footer-inner p { margin: 0; }

@media (max-width: 720px) {
  .header-inner, .intro, .faq-section, .footer-inner { width: min(100% - 32px, 1120px); }
  .header-inner { height: 84px; }
  .brand-logo { width: 68px; height: 68px; }
  .brand { gap: 12px; }
  .brand-name strong { font-size: 13px; }
  .brand-name span { font-size: 9px; letter-spacing: 0; }
  .intro { padding: 60px 0 43px; text-align: left; }
  .eyebrow { font-size: 11px; }
  h1 { font-size: 1.875em; }
  .intro-copy { margin: 11px 0 27px; font-size: 16px; }
  .search-wrap input { height: 60px; padding-left: 54px; font-size: 16px; }
  .search-wrap svg { left: 20px; }
  .category-list { display: flex; overflow-x: auto; border: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .category-list::-webkit-scrollbar { display: none; }
  .category { flex: 0 0 auto; min-height: 49px; padding: 8px 17px; border-right: 0; border-bottom: 3px solid transparent; background: transparent; white-space: nowrap; }
  .category.active { border-bottom-color: var(--accent-green); background: transparent; color: #08794d; }
  .result-bar { min-height: 66px; align-items: center; }
  .sample-note { display: none; }
  .faq-item summary { min-height: 73px; grid-template-columns: 27px 1fr 20px; gap: 10px; padding-right: 8px; }
  .question-text { font-size: 16px; }
  .answer { grid-template-columns: 27px 1fr; gap: 10px; padding: 22px 16px 24px 8px; }
  .footer-inner { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
