/* ---------------------------------------------------------
   geukrim.com — /english-address/ 영문 주소 변환기
   style.css의 토큰(--gk-*)을 그대로 쓴다.
--------------------------------------------------------- */

.gk-ea {
  padding-top: 52px;
  padding-bottom: 16px;
}

/* 히어로 */
.gk-ea-hero {
  max-width: 780px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--gk-line);
}

.gk-ea-kicker {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gk-accent);
}

.gk-ea-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.04em;
}

.gk-ea-lead {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--gk-muted);
}

.gk-ea-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.gk-ea-chips li {
  padding: 5px 11px;
  border: 1px solid var(--gk-line);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gk-muted);
}

/* ---------------------------------------------------------
   도구 카드
--------------------------------------------------------- */
.gk-ea-tool {
  position: relative;
  margin-top: 34px;
  padding: 30px 32px 26px;
  border: 1px solid var(--gk-line-strong);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 18px 40px -28px rgba(11, 18, 32, 0.35);
}

.gk-ea-tool-head {
  margin-bottom: 22px;
}

.gk-ea-tool-head h2 {
  margin: 0 0 8px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.gk-ea-tool-head p {
  margin: 0;
  font-size: 14px;
  color: var(--gk-muted);
}

.gk-ea-searchrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.gk-ea-searchrow-note {
  margin: 0;
  font-size: 13px;
  color: var(--gk-muted-2);
}

/* 버튼 */
.gk-ea-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid var(--gk-ink);
  border-radius: 5px;
  background: var(--gk-ink);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.gk-ea-btn:hover {
  background: var(--gk-accent);
  border-color: var(--gk-accent);
  box-shadow: 0 10px 24px -14px rgba(15, 76, 255, 0.8);
}

.gk-ea-btn:active { transform: translateY(1px); }

.gk-ea-btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.gk-ea-btn.is-loading { opacity: 0.7; pointer-events: none; }

.gk-ea-btn--ghost {
  padding: 10px 18px;
  background: #fff;
  color: var(--gk-ink-soft);
  border-color: var(--gk-line-strong);
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.gk-ea-btn--ghost:hover {
  background: var(--gk-surface);
  color: var(--gk-ink);
  border-color: var(--gk-ink);
  box-shadow: none;
}

/* 상태 메시지 */
.gk-ea-status {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gk-muted);
}
.gk-ea-status:empty { display: none; }
.gk-ea-status.is-ok { color: #0d7a4f; }
.gk-ea-status.is-error { color: #b3261e; }

/* 검색 전 안내 */
.gk-ea-empty {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px dashed var(--gk-line-strong);
  border-radius: 8px;
  background: var(--gk-surface);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--gk-muted);
}

.gk-ea-empty strong { color: var(--gk-ink-soft); }
.gk-ea-empty ol { margin: 10px 0 0; padding-left: 1.2em; }
.gk-ea-empty li { margin-bottom: 4px; }
.gk-ea-empty > *:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------
   결과
--------------------------------------------------------- */
.gk-ea-result { margin-top: 24px; }
.gk-ea-result[hidden] { display: none; }

.gk-ea-picked {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--gk-accent-soft);
  border: 1px solid #d9e4ff;
}

.gk-ea-picked-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gk-accent);
}

.gk-ea-picked strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gk-ink);
  line-height: 1.5;
}

.gk-ea-picked-zip {
  font-size: 12.5px;
  color: #3c5fac;
}

/* 상세주소 입력 */
.gk-ea-detail-row {
  margin-top: 20px;
}

.gk-ea-detail-row > label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gk-ink);
}
.gk-ea-detail-row > label span {
  font-weight: 600;
  color: var(--gk-muted-2);
  letter-spacing: 0;
}

.gk-ea-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gk-line-strong);
  border-radius: 5px;
  background: #fff;
  color: var(--gk-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gk-ea-input::placeholder { color: var(--gk-muted-2); }

.gk-ea-input:focus {
  outline: none;
  border-color: var(--gk-accent);
  box-shadow: 0 0 0 3px rgba(15, 76, 255, 0.12);
}

.gk-ea-detail-hint {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--gk-muted-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}

.gk-ea-detail-hint.is-converted { color: #0d7a4f; }

/* 칸 */
.gk-ea-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.gk-ea-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px 15px 14px;
  border: 1px solid var(--gk-line);
  border-radius: 6px;
  background: #fff;
  min-width: 0;
}

.gk-ea-field--full {
  grid-column: 1 / -1;
  background: var(--gk-surface);
  border-color: var(--gk-line-strong);
}

.gk-ea-field--zip { grid-column: auto; }

.gk-ea-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gk-ea-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--gk-ink);
  line-height: 1.4;
}

.gk-ea-label-ko {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--gk-muted-2);
}

.gk-ea-value {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--gk-ink-soft);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.gk-ea-field--full .gk-ea-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--gk-ink);
}

.gk-ea-value.is-empty { color: var(--gk-muted-2); }

/* 복사 버튼 */
.gk-ea-copy {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid var(--gk-line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--gk-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.gk-ea-copy:hover:not(:disabled) {
  border-color: var(--gk-ink);
  color: var(--gk-ink);
}

.gk-ea-copy.is-done {
  border-color: #0d7a4f;
  background: #e8f6ef;
  color: #0d7a4f;
}

.gk-ea-copy:disabled {
  opacity: 0.4;
  cursor: default;
}

/* 국가명 체크 */
.gk-ea-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--gk-muted);
  cursor: pointer;
}

.gk-ea-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--gk-accent);
  cursor: pointer;
}

/* 원본 참고 */
.gk-ea-raw {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--gk-muted);
}
.gk-ea-raw:empty { display: none; }

.gk-ea-raw-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 6px;
  background: var(--gk-surface);
}

.gk-ea-raw-list dt {
  font-weight: 700;
  color: var(--gk-muted-2);
  white-space: nowrap;
}

.gk-ea-raw-list dd {
  margin: 0;
  color: var(--gk-ink-soft);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.gk-ea-result .gk-ea-btn--ghost { margin-top: 18px; }

/* 토스트 */
.gk-ea-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 9999;
  padding: 11px 18px;
  border-radius: 100px;
  background: rgba(11, 18, 32, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gk-ea-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------------
   안내 본문
--------------------------------------------------------- */
.gk-ea-guide {
  max-width: var(--gk-reading);
  margin: 0 auto;
  padding-top: 16px;
}

.gk-ea-section {
  margin-top: 56px;
}

.gk-ea-section > h2 {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gk-ink);
  font-size: 23px;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.gk-ea-section > h3 {
  margin: 2em 0 0.6em;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.gk-ea-section p,
.gk-ea-section li {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--gk-ink-soft);
}

.gk-ea-section p { margin: 0 0 1.25em; }

.gk-ea-section ul,
.gk-ea-section ol {
  margin: 0 0 1.4em;
  padding-left: 1.25em;
}

.gk-ea-section li { margin-bottom: 0.5em; }
.gk-ea-section li::marker { color: var(--gk-muted-2); }

.gk-ea-section a {
  color: var(--gk-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.gk-ea-section strong { color: var(--gk-ink); font-weight: 700; }

.gk-ea-section blockquote {
  margin: 1.8em 0;
  padding: 20px 24px;
  background: var(--gk-surface);
  border-left: 3px solid var(--gk-ink);
  font-size: 16px;
  line-height: 1.8;
  color: var(--gk-ink);
}

.gk-ea-section blockquote p:last-child { margin-bottom: 0; }

/* 표 */
.gk-ea-table-wrap {
  margin: 1.6em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gk-ea-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.6;
}

.gk-ea-table th,
.gk-ea-table td {
  padding: 11px 13px;
  border: 1px solid var(--gk-line);
  text-align: left;
  vertical-align: top;
}

.gk-ea-table th {
  background: var(--gk-surface);
  font-weight: 700;
  color: var(--gk-ink);
  white-space: nowrap;
}

.gk-ea-table td { color: var(--gk-ink-soft); }
.gk-ea-table code,
.gk-ea-section code,
.gk-ea-table td b {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.94em;
}

.gk-ea-table tbody tr:nth-child(even) td { background: #fcfcfd; }

/* 단계 목록 */
.gk-ea-steps {
  counter-reset: gkstep;
  margin: 1.6em 0;
  padding: 0;
  list-style: none;
}

.gk-ea-steps li {
  position: relative;
  counter-increment: gkstep;
  padding: 0 0 0 46px;
  margin-bottom: 1.1em;
}

.gk-ea-steps li::before {
  content: counter(gkstep);
  position: absolute;
  left: 0;
  top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gk-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

/* FAQ */
.gk-ea-faq {
  margin-top: 1.4em;
  border-top: 1px solid var(--gk-line);
}

.gk-ea-faq details {
  border-bottom: 1px solid var(--gk-line);
}

.gk-ea-faq summary {
  position: relative;
  padding: 18px 36px 18px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--gk-ink);
  line-height: 1.55;
  cursor: pointer;
  list-style: none;
}

.gk-ea-faq summary::-webkit-details-marker { display: none; }

.gk-ea-faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--gk-muted-2);
  border-bottom: 2px solid var(--gk-muted-2);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.gk-ea-faq details[open] summary::after { transform: rotate(-135deg); }
.gk-ea-faq summary:hover { color: var(--gk-accent); }

.gk-ea-faq .gk-ea-answer { padding: 0 0 20px; }
.gk-ea-faq .gk-ea-answer p {
  margin: 0 0 0.9em;
  font-size: 15.5px;
  color: var(--gk-muted);
}
.gk-ea-faq .gk-ea-answer p:last-child { margin-bottom: 0; }

/* 다음 단계 카드 */
.gk-ea-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 56px;
  padding: 26px 28px;
  border: 1px solid var(--gk-line-strong);
  border-radius: 10px;
  background: var(--gk-surface);
}

.gk-ea-next-body { max-width: 560px; }

.gk-ea-next-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gk-accent);
}

.gk-ea-next h2 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.gk-ea-next p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gk-muted);
}

.gk-ea-next-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1px solid var(--gk-ink);
  border-radius: 5px;
  background: var(--gk-ink);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.gk-ea-next-link:hover {
  background: var(--gk-accent);
  border-color: var(--gk-accent);
  color: #fff;
}

/* 하단 고지 */
.gk-ea-footnote {
  max-width: var(--gk-reading);
  margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--gk-line);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--gk-muted-2);
}

/* ---------------------------------------------------------
   반응형
--------------------------------------------------------- */
@media (max-width: 760px) {
  .gk-ea { padding-top: 34px; }
  .gk-ea-title { font-size: 26px; }
  .gk-ea-lead { font-size: 15.5px; }
  .gk-ea-tool { padding: 22px 18px 20px; border-radius: 8px; }
  .gk-ea-tool-head h2 { font-size: 19px; }
  .gk-ea-btn { width: 100%; justify-content: center; padding: 15px 20px; }
  .gk-ea-searchrow { gap: 10px; }
  .gk-ea-searchrow-note { font-size: 12.5px; }
  .gk-ea-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gk-ea-field--full { grid-column: auto; }
  .gk-ea-field { padding: 12px 14px 13px; }
  .gk-ea-section { margin-top: 44px; }
  .gk-ea-section > h2 { font-size: 20px; }
  .gk-ea-section p,
  .gk-ea-section li { font-size: 15.5px; line-height: 1.82; }
  .gk-ea-table { font-size: 13.5px; min-width: 480px; }
  .gk-ea-next { padding: 22px 18px; }
  .gk-ea-next-link { width: 100%; justify-content: center; }
  .gk-ea-faq summary { font-size: 15px; padding: 16px 32px 16px 0; }
  .gk-ea-faq summary::after { top: 23px; }
  .gk-ea-raw-list { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .gk-ea-raw-list dd { margin-bottom: 8px; }
  .gk-ea-toast { bottom: 18px; }
}
