/*
Theme Name: NS 1688 Guide
Theme URI: https://netsurfing.vip
Author: NS Studio
Description: 1688 구매대행·배송대행 정보 가이드 전용 테마 (경량, 애드센스 최적화)
Version: 1.1.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ns1688
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
  --navy: #0b2b4b;
  --navy-700: #123a63;
  --navy-050: #eef4fb;
  --accent: #ff5a1f;
  --accent-600: #e64a12;
  --accent-050: #fff2ec;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #5b6b7c;
  --line: #e4e9f0;
  --bg: #f7f9fc;
  --white: #fff;
  --ok: #0e9f6e;
  --warn: #b54708;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-md: 0 12px 32px -12px rgba(11, 43, 75, .22);
  --container: 1180px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.32;
  letter-spacing: -.025em;
  font-weight: 800;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

strong { font-weight: 700; }

::selection { background: #ffd9c9; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

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

/* =========================================================
   3. Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.03em;
  color: var(--navy);
  flex: 0 0 auto;
}
.brand:hover { color: var(--navy); }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  line-height: 1.2;
}

.main-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
  display: block;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -.01em;
}
.nav-list a:hover,
.nav-list .current-menu-item > a {
  background: var(--navy-050);
  color: var(--navy);
}

.header-cta {
  margin-left: 8px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 11px 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  margin: 4px 0;
  transition: .2s;
}

/* =========================================================
   4. Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.2;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px rgba(255, 90, 31, .8); }
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; }
.btn-sm { padding: 9px 15px; font-size: 14px; border-radius: 8px; }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
  position: relative;
  padding: 76px 0 64px;
  background:
    radial-gradient(900px 420px at 78% -10%, #e8f0fb 0%, rgba(232, 240, 251, 0) 62%),
    radial-gradient(600px 320px at 8% 110%, #fff1ea 0%, rgba(255, 241, 234, 0) 60%),
    #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-050);
  color: var(--accent-600);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  line-height: 1.22;
  letter-spacing: -.04em;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  position: relative;
  color: var(--navy);
  background: linear-gradient(transparent 62%, #ffd9c9 62%);
  padding: 0 2px;
}

.hero-sub {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero-stats div { padding-right: 10px; }
.hero-stats dt {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.hero-stats dd {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
}

/* Hero visual: cost breakdown card */
.hero-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 26px;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef4fb, #fff2ec);
  z-index: -1;
}
.hero-card h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-card h2 span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ok);
  background: #e7f8f1;
  padding: 4px 8px;
  border-radius: 6px;
}

.cost-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.cost-row:last-of-type { border-bottom: 0; }
.cost-row span:first-child { color: var(--muted); }
.cost-row span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.cost-total {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}
.cost-total strong { font-size: 22px; letter-spacing: -.02em; }
.cost-note { font-size: 12px; color: var(--muted); margin: 12px 0 0; }

/* =========================================================
   6. Section primitives
   ========================================================= */
.section { padding: 72px 0; }
.section-alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  letter-spacing: -.035em;
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 16.5px; }

.kicker {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

/* =========================================================
   7. Cards / grids
   ========================================================= */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.card { color: inherit; display: block; }
a.card:hover {
  border-color: #c9d6e6;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--navy-050);
  color: var(--navy);
  margin-bottom: 16px;
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 { font-size: 18.5px; margin-bottom: 8px; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent-600);
}
.card-link::after { content: "→"; transition: transform .15s; }
a.card:hover .card-link::after { transform: translateX(3px); }

/* Guide cards */
.guide-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  color: inherit;
}
.guide-card:hover {
  border-color: #c9d6e6;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}
.guide-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy) 0%, #1d4d7e 100%);
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, .92);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.01em;
  text-align: center;
  padding: 18px;
}
.guide-thumb.alt-1 { background: linear-gradient(135deg, #0b2b4b, #2f6fa8); }
.guide-thumb.alt-2 { background: linear-gradient(135deg, #7a2e12, #ff5a1f); }
.guide-thumb.alt-3 { background: linear-gradient(135deg, #123f36, #0e9f6e); }
.guide-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide-thumb::before {
  content: "GUIDE";
  position: absolute;
  top: 14px; left: 16px;
  font-size: 10px;
  letter-spacing: .18em;
  font-weight: 700;
  opacity: .55;
}
.guide-thumb .thumb-cat { font-size: 13.5px; font-weight: 700; letter-spacing: .01em; opacity: .9; }
.guide-thumb .thumb-icon { display: block; opacity: .95; }
.guide-thumb .thumb-icon svg { width: 46px; height: 46px; }

.guide-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.guide-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.guide-meta .cat {
  color: var(--accent-600);
  background: var(--accent-050);
  padding: 3px 8px;
  border-radius: 6px;
}
.guide-card h3 {
  font-size: 17.5px;
  line-height: 1.45;
  margin-bottom: 10px;
  letter-spacing: -.02em;
}
.guide-card p { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; }
.guide-card .more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 6px; }

/* =========================================================
   8. Comparison table
   ========================================================= */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 640px;
}
.cmp-table th, .cmp-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.cmp-table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody tr:nth-child(even) { background: #fafcfe; }
.cmp-table td:first-child { font-weight: 700; color: var(--ink); }
.cmp-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cmp-table .best { color: var(--ok); font-weight: 700; }

/* =========================================================
   9. Steps / personas / FAQ
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

.persona {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.persona-ico {
  flex: 0 0 42px;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-050);
  color: var(--accent-600);
  font-weight: 800;
}
.persona h3 { font-size: 16.5px; margin-bottom: 4px; }
.persona p { font-size: 14.5px; color: var(--muted); margin: 0; }

.faq { max-width: 860px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 10px;
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 30px 19px 0;
  font-weight: 700;
  font-size: 16px;
  position: relative;
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  transition: transform .2s;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] { border-color: #c9d6e6; }
.faq .faq-a { padding: 0 0 20px; color: var(--ink-2); font-size: 15.5px; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* =========================================================
   10. CTA band
   ========================================================= */
.cta-band {
  background: var(--navy);
  color: #fff;
  border-radius: 24px;
  padding: 52px;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, .35), transparent 65%);
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .72); margin: 0; }
.cta-band .btn { justify-self: end; position: relative; z-index: 1; }

/* =========================================================
   11. Article
   ========================================================= */
.article-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 40px;
}
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }

.article-title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -.035em;
  max-width: 860px;
  margin-bottom: 16px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #c3cdd9; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  padding: 48px 0 72px;
  align-items: start;
}

.entry {
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-2);
  max-width: 760px;
}
.entry > *:first-child { margin-top: 0; }
.entry h2 {
  font-size: 1.55rem;
  margin: 2.2em 0 .7em;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  line-height: 1.4;
  scroll-margin-top: 90px;
}
.entry h3 {
  font-size: 1.2rem;
  margin: 1.8em 0 .6em;
  scroll-margin-top: 90px;
}
.entry h4 { font-size: 1.05rem; margin: 1.4em 0 .5em; }
.entry p { margin-bottom: 1.25em; }
.entry ul, .entry ol { padding-left: 1.3em; margin-bottom: 1.4em; }
.entry li { margin-bottom: .5em; }
.entry a { color: var(--navy-700); text-decoration: underline; text-decoration-color: #b9cbe0; text-underline-offset: 3px; }
.entry a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.entry strong { color: var(--ink); }

.entry table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 1.6em 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.entry thead th {
  background: var(--navy-050);
  color: var(--navy);
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.entry td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry tr:last-child td { border-bottom: 0; }

.entry blockquote {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: var(--navy-050);
  border-left: 4px solid var(--navy);
  border-radius: 0 10px 10px 0;
  color: var(--ink-2);
}
.entry blockquote p:last-child { margin-bottom: 0; }

.entry figure { margin: 1.8em 0; }
.entry figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }

.callout {
  margin: 1.8em 0;
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--accent-050);
  border: 1px solid #ffd9c9;
  font-size: 15.5px;
}
.callout strong { display: block; margin-bottom: 6px; color: var(--accent-600); }
.callout p:last-child { margin-bottom: 0; }

.note {
  margin: 1.8em 0;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--muted);
}

/* TOC */
.toc {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 2em;
  font-size: 15px;
}
.toc strong { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 0; list-style: none; columns: 2; column-gap: 28px; }
.toc li { margin-bottom: .35em; break-inside: avoid; }
.toc a { color: var(--ink-2); font-size: 14.5px; }
.toc a:hover { color: var(--accent); }

/* Author box */
.author-box {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-top: 40px;
}
.author-box .avatar {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
}
.author-box h4 { font-size: 15px; margin: 0 0 4px; }
.author-box p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* Sidebar */
.sidebar { position: sticky; top: 92px; display: grid; gap: 18px; }
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}
.side-card h3 { font-size: 15px; margin-bottom: 14px; letter-spacing: -.01em; }
.side-card ul { list-style: none; margin: 0; padding: 0; }
.side-card li { margin: 0; border-bottom: 1px dashed var(--line); }
.side-card li:last-child { border-bottom: 0; }
.side-card li a { display: block; padding: 10px 0; font-size: 14.5px; font-weight: 600; color: var(--ink-2); line-height: 1.5; }
.side-card li a:hover { color: var(--accent); }
.side-cta { background: var(--navy); color: #fff; border: 0; }
.side-cta h3 { color: #fff; }
.side-cta p { color: rgba(255, 255, 255, .72); font-size: 14px; margin-bottom: 16px; }

/* Prev/next */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.post-nav a {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-2);
}
.post-nav a:hover { border-color: var(--navy); color: var(--navy); }
.post-nav .dir { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.post-nav .next { text-align: right; }

/* =========================================================
   12. Archive
   ========================================================= */
.page-head {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 44px;
}
.page-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 10px; letter-spacing: -.035em; }
.page-head p { color: var(--muted); margin: 0; max-width: 640px; }

.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 48px 0 72px; }

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 0 0 64px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  padding: 0 12px;
}
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination a:hover { border-color: var(--navy); color: var(--navy); }

/* =========================================================
   13. Page / tools
   ========================================================= */
.page-body { padding: 56px 0 80px; }
.page-body .entry { max-width: 820px; margin: 0 auto; }

.tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(18, 58, 99, .12);
}
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.result-box {
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  margin-top: 8px;
}
.result-box .label { font-size: 13px; color: rgba(255, 255, 255, .7); font-weight: 600; }
.result-box .value { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 14px; }
.result-rows { display: grid; gap: 8px; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 14px; }
.result-rows div { display: flex; justify-content: space-between; }
.result-rows span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }

/* =========================================================
   14. Ads
   ========================================================= */
.ad-slot {
  margin: 28px 0;
  text-align: center;
  min-height: 100px;
  display: grid;
  place-items: center;
  background: #fbfcfe;
  border: 1px dashed #e0e7ef;
  border-radius: 10px;
  overflow: hidden;
}
.ad-slot::before {
  content: "광고";
  font-size: 10px;
  letter-spacing: .14em;
  color: #9aa8b8;
  position: absolute;
  margin-top: -6px;
  transform: translateY(-38px);
}
.ad-slot > * { margin: 0 auto; }
.ad-slot ins { display: block; }

/* Coupang Partners */
.coupang-slot {
  margin: 40px 0 4px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.coupang-slot-inner {
  max-width: 680px;
  margin: 0 auto;
  overflow: hidden;
}
.coupang-slot-inner iframe { max-width: 100%; }
.coupang-note {
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.6;
}

/* =========================================================
   15. Footer
   ========================================================= */
.site-footer {
  background: #0a2540;
  color: rgba(255, 255, 255, .7);
  padding: 60px 0 32px;
  font-size: 14.5px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: .04em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.footer-about { font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .58); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
  line-height: 1.8;
}
.biz-info { font-size: 12.5px; color: rgba(255, 255, 255, .45); line-height: 1.9; margin-top: 10px; }

/* Cookie banner */
.cookie-bar {
  position: fixed;
  right: 16px; bottom: 16px; left: auto;
  z-index: 120;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(11, 43, 75, .35);
  padding: 16px 18px;
  display: none;
  gap: 16px;
  align-items: center;
  max-width: 440px;
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
}
.cookie-bar.show { display: flex; }
.cookie-bar .btn { flex: 0 0 auto; }

/* =========================================================
   16. Utility
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* =========================================================
   17. Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-card { max-width: 520px; }
  .layout { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta-band { grid-template-columns: 1fr; padding: 40px; }
  .cta-band .btn { justify-self: start; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(11, 43, 75, .25);
    display: none;
    padding: 10px 16px 18px;
  }
  body.nav-open .main-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 13px 14px; font-size: 16px; }
  .header-cta { display: none; }
  .header-inner { gap: 12px; }
  .brand-sub { display: none; }
  .grid-3, .grid-2, .post-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 52px 0 44px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .tool-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .grid-3, .grid-2, .post-list, .steps, .sidebar { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .cta-band { padding: 30px 24px; border-radius: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .article-title { font-size: 1.65rem; }
  .entry { font-size: 16.5px; }
  .entry h2 { font-size: 1.32rem; }
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: left; left: 16px; right: 16px; max-width: none; }
  .post-nav { grid-template-columns: 1fr; }
  .page-head { padding: 40px 0 32px; }
}

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