/* AMark Web 공통 스타일 (단일 파일) */
/* 모바일 우선 · 고대비 · 무거운 라이브러리/프레임워크 없음 */

:root {
  --ink: #111111;
  --ink-soft: #3b3b3b;
  --bg: #ffffff;
  --bg-soft: #f2f2f2;
  --line: #c4c4c4;
  --brand: #a83400;
  --brand-dark: #7a2400;
  --brand-soft: #fdf0e9;
  --focus: #0b4fd0;
  --ok: #14622f;
  --maxw: 780px;
  --radius: 10px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Nanum Gothic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: normal;
  overflow-wrap: anywhere;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 한국어/중국어는 단어 단위 줄바꿈을 우선하고, 영문/베트남어/크메르어는 자연 줄바꿈을 허용 */
html[lang="ko"] body,
html[lang="zh"] body {
  word-break: keep-all;
  overflow-wrap: break-word;
}

html[lang="en"] body,
html[lang="vi"] body,
html[lang="km"] body {
  word-break: normal;
  overflow-wrap: anywhere;
}

a {
  color: var(--brand-dark);
  text-underline-offset: 3px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- 헤더 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-toggle {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-soft);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  min-height: 44px;
  padding: 8px 16px;
  cursor: pointer;
}

/* ---------- 언어 전환 ---------- */

.langbar {
  order: 3;
  width: 100%;
  min-width: 0;
  border-top: 2px solid var(--line);
  padding: 8px 0 0;
}

.langbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.langbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 8px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}


.langbar a[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.site-nav {
  order: 4;
  display: none;
  width: 100%;
  min-width: 0;
  border-top: 2px solid var(--line);
  background: var(--bg);
}

.site-nav.open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.site-nav a {
  display: block;
  min-height: 52px;
  padding: 14px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}

.site-nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- 본문 ---------- */

main {
  display: block;
}

.hero {
  border-bottom: 2px solid var(--line);
  background: var(--brand-soft);
  padding: 28px 0 30px;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: 0.5px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(27px, 8.5vw, 30px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero-title > span {
  display: block;
}

.hero-title > .sub {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-top: 10px;
  letter-spacing: 0;
}

.hero-desc {
  margin: 0 0 20px;
  font-size: 18px;
  color: var(--ink-soft);
}

.section {
  padding: 30px 0;
  border-bottom: 2px solid var(--line);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.section-lead {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

p {
  margin: 0 0 14px;
}

.lead {
  font-size: 19px;
  font-weight: 700;
}

ul.plain,
ol.plain {
  margin: 0 0 14px;
  padding-left: 22px;
}

ul.plain li,
ol.plain li {
  margin-bottom: 8px;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 15px;
}

/* ---------- 버튼 ---------- */

.btn {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  padding: 14px 22px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand-dark);
  color: #fff;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 14px;
}

.btn[aria-disabled="true"],
.btn.is-disabled {
  background: var(--bg-soft);
  border-color: var(--line);
  color: #5a5a5a;
  cursor: default;
}

.status {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

/* ---------- 카드 / 목록 ---------- */

.card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  background: var(--bg);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
}

.card p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.grid .card {
  margin-bottom: 0;
}

.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  margin: 0 6px 6px 0;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  background: var(--bg-soft);
}

/* ---------- 단계(순서) 목록 ---------- */

.steps {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  counter-reset: step;
}

.steps > li {
  position: relative;
  counter-increment: step;
  border: 2px solid var(--line);
  border-left: 6px solid var(--ink);
  border-radius: var(--radius);
  padding: 14px 14px 14px 16px;
  margin-bottom: 10px;
  background: var(--bg);
}

.steps > li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.steps strong {
  font-size: 18px;
}

/* ---------- 아코디언(FAQ) ---------- */

.accordion {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--bg);
  overflow: hidden;
}

.accordion summary {
  min-height: 58px;
  padding: 16px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  background: var(--bg-soft);
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: " +";
  font-weight: 800;
}

.accordion[open] summary::after {
  content: " \2212";
}

.accordion .accordion-body {
  padding: 16px;
  border-top: 2px solid var(--line);
}

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

/* ---------- 업데이트 항목 ---------- */

.release {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
}

.release-ver {
  font-size: 21px;
  font-weight: 800;
}

.release-date {
  font-size: 15px;
  font-weight: 700;
}

.release-note {
  font-size: 14px;
  padding: 2px 9px;
  border: 2px solid #fff;
  border-radius: 999px;
}

.release-body {
  padding: 16px;
}

.release-body h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink-soft);
}

.release-body ul {
  margin: 0;
  padding-left: 22px;
}

.release-body li {
  margin-bottom: 6px;
}

/* ---------- 안내 박스 ---------- */

.notice {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  background: var(--bg-soft);
}

.notice h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

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

.notice-warn {
  background: var(--brand-soft);
  border-color: var(--brand-dark);
}

/* ---------- 폼(수집 전용, 전송 없음) ---------- */

.field {
  margin-bottom: 16px;
}

.field > label,
.field > .field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 800;
}

.field .hint {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.field-static {
  min-height: 56px;
  padding: 14px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- 문서(법무 페이지) ---------- */

.doc h2 {
  margin: 30px 0 8px;
  font-size: 20px;
  font-weight: 800;
  border-left: 6px solid var(--ink);
  padding-left: 10px;
}

.doc h2:first-of-type {
  margin-top: 22px;
}

.doc h3 {
  margin: 18px 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.doc p,
.doc li {
  font-size: 16px;
}

.meta-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.meta-list li {
  padding: 10px 14px;
  border-bottom: 2px solid var(--line);
  font-size: 16px;
}

.meta-list li:last-child {
  border-bottom: 0;
}

.meta-list b {
  display: inline-block;
  min-width: 92px;
}

/* ---------- 푸터 ---------- */

.site-footer {
  border-top: 3px solid var(--ink);
  background: var(--bg-soft);
  padding: 26px 0 34px;
  margin-top: 10px;
}

.site-footer h2 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
}

.site-footer ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.site-footer a {
  display: block;
  min-height: 46px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.footer-note {
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-note p {
  margin-bottom: 8px;
}

/* ---------- 스마트폰 최적화 ---------- */

@media (max-width: 420px) {
  .wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-header .wrap {
    gap: 8px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 20px;
  }

  .nav-toggle {
    min-height: 42px;
    padding: 7px 13px;
  }

  .langbar a {
    min-height: 40px;
    font-size: 14px;
    line-height: 1.25;
  }

  .site-nav a {
    min-height: 48px;
    padding: 12px 10px;
  }

  .hero {
    padding: 24px 0 26px;
  }

  .hero-desc {
    font-size: 17px;
  }

  .section {
    padding: 26px 0;
  }

  .section-title {
    font-size: 22px;
  }

  .btn {
    width: 100%;
    min-height: 54px;
    padding: 12px 14px;
    font-size: 17px;
    line-height: 1.35;
  }

  .card,
  .notice,
  .release-body,
  .accordion .accordion-body {
    padding: 14px;
  }

  .accordion summary {
    padding: 14px;
    font-size: 17px;
  }

  .steps > li {
    padding: 13px 12px 13px 14px;
  }

  .release-head {
    align-items: flex-start;
    padding: 12px 14px;
  }

  .meta-list b {
    display: block;
    min-width: 0;
    margin-bottom: 2px;
  }

  .site-footer {
    padding: 24px 0 30px;
  }
}

@media (min-width: 421px) and (max-width: 767px) {
  .langbar ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- 데스크톱 ---------- */

@media (min-width: 560px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  body {
    font-size: 18px;
  }

  .wrap {
    padding: 0 24px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.open {
    display: block;
  }

  .site-header {
    position: static;
  }

  .site-header .wrap {
    flex-wrap: wrap;
  }

  .site-nav {
    border-top: 0;
    width: 100%;
  }

  .site-nav ul {
    grid-template-columns: repeat(4, 1fr);
    padding: 12px 24px 16px;
    gap: 8px;
  }

  .langbar {
    order: 2;
    width: auto;
    padding: 10px 0;
    border-top: 0;
  }

  .langbar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .langbar a {
    width: auto;
    min-height: 38px;
    padding: 6px 14px;
    white-space: nowrap;
  }

  .site-nav {
    order: 3;
  }

  .site-nav a {
    min-height: 48px;
    padding: 12px 8px;
    font-size: 16px;
  }

  .hero {
    padding: 46px 0 48px;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-title > .sub {
    font-size: 22px;
  }

  .hero-desc {
    font-size: 20px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 27px;
  }

  .site-footer ul {
    grid-template-columns: repeat(4, 1fr);
  }
}
