/* ShopKit guides — matches shopkitIntro olive/paper system */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --ink: #1c221c;
  --muted: #5e6a5e;
  --paper: #f2eee6;
  --paper-2: #e8e2d6;
  --surface: #fbf9f5;
  --line: #d5cfc3;
  --olive: #2d3a2e;
  --olive-mid: #3f5241;
  --olive-soft: #e4ebe4;
  --sand: #c4b49a;
  --ok: #3d6b45;
  --warn-bg: #f5efe3;
  --warn-line: #d9cbb3;
  --radius: 6px;
  --font: "Outfit", "Apple SD Gothic Neo", sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --accent: var(--olive);
  --accent-soft: var(--olive-soft);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.shop-guide {
  margin: 0;
  padding-top: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--olive-mid); }
a:hover { color: var(--olive); }

/* —— Nav —— */
.sg-nav {
  position: sticky !important;
  top: 0;
  z-index: 40;
  background: rgba(242, 238, 230, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: .15rem 0;
}
.sg-nav .container {
  max-width: 980px;
}
.sg-nav .navbar-brand {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
}
.sg-nav .nav-link {
  font-weight: 500;
  color: var(--muted) !important;
  font-size: 0.9rem;
}
.sg-nav .nav-link.active,
.sg-nav .nav-link.sg-accent {
  color: var(--olive) !important;
  font-weight: 600;
}
.sg-nav .navbar-toggler {
  border-color: var(--line);
}

/* —— Layout —— */
.sg-wrap {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto 4rem;
  padding-top: 1.5rem;
}
.sg-crumb {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.sg-crumb a {
  color: var(--muted);
  text-decoration: none;
}
.sg-crumb a:hover { color: var(--olive); }

/* —— Article hero —— */
.sg-hero {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 1.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.sg-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-mid);
  margin-bottom: 0.7rem;
}
.sg-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 5.5vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin: 0 0 0.95rem;
  color: var(--ink);
}
.sg-lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 36rem;
}
.sg-meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--sand);
}

.sg-summary {
  display: grid;
  gap: 0.5rem;
  margin: 1.35rem 0 0;
  padding: 1.15rem 1.2rem;
  background: var(--olive);
  color: #e8ebe4;
  border-radius: var(--radius);
}
.sg-summary strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.45rem;
}
.sg-summary ol {
  margin: 0;
  padding-left: 1.15rem;
  color: #f7f4ee;
  font-size: 0.95rem;
}
.sg-summary li { margin: 0.35rem 0; }

/* —— CTA band —— */
.sg-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  background: var(--olive);
  color: #f7f4ee;
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  margin: 1.5rem 0;
}
.sg-cta p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
  max-width: 22rem;
  line-height: 1.5;
}
.sg-cta-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.sg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s;
}
.sg-btn:hover { transform: translateY(-1px); }
.sg-btn-primary {
  background: #f7f4ee;
  color: var(--olive) !important;
}
.sg-btn-ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(247,244,238,.4);
}
.sg-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.sg-btn-accent {
  background: var(--olive-mid);
  color: #fff !important;
}
.sg-btn-outline {
  background: var(--surface);
  color: var(--olive) !important;
  border-color: var(--line);
}

/* —— TOC —— */
.sg-toc {
  background: var(--surface);
  border: 0;
  border-top: 2px solid var(--olive);
  border-radius: 0;
  padding: 1.15rem 1.25rem 0.35rem;
  margin-bottom: 1.75rem;
}
.sg-toc h2 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.sg-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.sg-toc li {
  margin: 0;
  border-bottom: 1px solid var(--line);
  counter-increment: toc;
}
.sg-toc a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0.15rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.sg-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sand);
  flex-shrink: 0;
  min-width: 1.75rem;
}
.sg-toc a:hover { color: var(--olive); }

/* —— Sections —— */
.sg-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 0 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}
.sg-section h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  padding-bottom: 0;
  border-bottom: 0;
  line-height: 1.3;
}
.sg-section p {
  margin: 0 0 0.9rem;
  color: #2a322a;
}
.sg-section p:last-child { margin-bottom: 0; }
.sg-section ul,
.sg-section ol {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
  color: #2a322a;
}
.sg-section li { margin: 0.4rem 0; }

.sg-note {
  margin: 1.1rem 0 0;
  padding: 1rem 1.1rem;
  background: var(--warn-bg);
  border: 0;
  border-left: 3px solid var(--sand);
  border-radius: 0;
  font-size: 0.94rem;
  color: #4a4030;
}
.sg-note strong { color: var(--ink); }

/* —— Price grid —— */
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.85rem 0 1rem;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  background: var(--surface);
}
.price-card .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.price-card .amount {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.4rem;
  line-height: 1.15;
}
.price-card .desc {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.price-card.highlight {
  background: var(--olive);
  border-color: var(--olive);
  color: #e8ebe4;
}
.price-card.highlight .label { color: var(--sand); }
.price-card.highlight .amount { color: #fff; }
.price-card.highlight .desc { color: rgba(232,235,228,.75); }

.check-list {
  list-style: none;
  padding: 0 !important;
  margin: 0.5rem 0 0 !important;
}
.check-list li {
  position: relative;
  padding: 0.7rem 0.85rem 0.7rem 2.1rem;
  margin: 0.4rem 0 !important;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0.75rem;
  top: 0.7rem;
  color: var(--ok);
  font-weight: 800;
}

.type-grid {
  display: grid;
  gap: 0;
  margin: 0.5rem 0;
}
.type-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1.1rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.type-item:first-child { border-top: 1px solid var(--line); }
.type-item strong {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sand);
}
.type-item p {
  margin: 0 !important;
  font-size: 0.94rem;
  color: var(--muted);
}

.demo-links {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
}
.demo-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.15rem;
  border: 0;
  border-radius: var(--radius);
  text-decoration: none !important;
  color: #f7f4ee !important;
  background: var(--olive);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .2s, background .2s;
}
.demo-links a:nth-child(2) { background: var(--olive-mid); }
.demo-links a:nth-child(3) { background: #4a3f32; }
.demo-links a span {
  color: rgba(247,244,238,.65);
  font-weight: 500;
  font-size: 0.82rem;
}
.demo-links a:hover { transform: translateY(-2px); }

.sg-faq details {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 0.95rem 0;
  margin: 0;
}
.sg-faq details:first-of-type { border-top: 1px solid var(--line); }
.sg-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.sg-faq summary::-webkit-details-marker { display: none; }
.sg-faq summary::before {
  content: "+";
  display: inline-block;
  width: 1.2rem;
  color: var(--olive);
  font-weight: 700;
}
.sg-faq details[open] summary::before { content: "–"; }
.sg-faq details p {
  margin: 0.65rem 0 0.15rem;
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 1.2rem;
}

.sg-related {
  margin-top: 2rem;
  padding-top: 0.5rem;
}
.sg-related h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 1rem;
}
.sg-related-list {
  display: grid;
  gap: 0;
}
.sg-related-list a {
  display: block;
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.95rem 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink) !important;
}
.sg-related-list a:first-child { border-top: 1px solid var(--line); }
.sg-related-list a:hover { color: var(--olive) !important; }

.sg-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.84rem;
  background: var(--paper-2);
  margin-top: 1rem;
}
.sg-footer a { color: var(--muted); }

/* 수동 광고 — 글 중간·하단만, 자동광고 없음 */
.sg-ad {
  max-width: 720px;
  margin: 1.75rem auto;
  padding: 0.85rem 0 0.35rem;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sg-ad-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.calculator-ad-wrapper {
  max-width: 720px;
  margin: 1.5rem auto;
  padding: 8px 0;
  text-align: center;
}
.calculator-ad-label {
  display: block;
  margin-bottom: 6px;
  color: var(--sand);
  font-size: 12px;
}

/* —— Guide index hub —— */
.guide-hub {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}
.guide-hub-hero {
  padding: 1.5rem 0 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.guide-hub-hero .kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-mid);
}
.guide-hub-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2.1rem, 6vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.guide-hub-hero .lede {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
}
.guide-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.guide-featured {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.25rem;
  padding: 1.5rem 1.35rem;
  background: var(--olive);
  color: #f7f4ee;
  border-radius: var(--radius);
  text-decoration: none !important;
  transition: transform .2s;
}
.guide-featured:hover { transform: translateY(-2px); color: #f7f4ee; }
.guide-featured .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}
.guide-featured h2 {
  margin: 0.35rem 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 1.95rem);
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
}
.guide-featured p {
  margin: 0 0 0.85rem;
  color: rgba(247,244,238,.75);
  font-size: 0.95rem;
  max-width: 34rem;
}
.guide-featured .more {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.guide-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: g;
}
.guide-list li {
  counter-increment: g;
  border-bottom: 1px solid var(--line);
}
.guide-list li:first-child { border-top: 1px solid var(--line); }
.guide-list a {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 1.25rem 0;
  text-decoration: none !important;
  color: inherit;
}
.guide-list .num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sand);
  padding-top: 0.2rem;
}
.guide-list .num::before {
  content: counter(g, decimal-leading-zero);
}
.guide-list h2 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}
.guide-list p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.guide-list .go {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--olive);
  white-space: nowrap;
  padding-top: 0.15rem;
}
.guide-list a:hover h2 { color: var(--olive); }

@media (max-width: 640px) {
  .price-grid { grid-template-columns: 1fr; }
  .sg-cta { flex-direction: column; align-items: flex-start; }
  .type-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .guide-list a {
    grid-template-columns: 2.5rem 1fr;
  }
  .guide-list .go {
    grid-column: 2;
    padding-top: 0.35rem;
  }
}

@media (min-width: 720px) {
  .guide-list a {
    grid-template-columns: 3.25rem 1fr 5rem;
    align-items: center;
  }
}
