:root {
  --bg-0: #e8eef4;
  --bg-1: #f4f7fa;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-soft: rgba(15, 118, 110, 0.1);
  --accent-sky: #0369a1;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: "Outfit", "Pretendard", sans-serif;
}

* {
  box-sizing: border-box;
}

body.guide-page {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 45% at 0% 0%, rgba(15, 118, 110, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 40% at 100% 0%, rgba(3, 105, 161, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, #edf2f7 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.guide-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  width: 100%;
}

.guide-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.seo-breadcrumb {
  margin-bottom: 10px;
}

.seo-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.seo-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: #94a3b8;
}

.seo-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.seo-breadcrumb a:hover {
  text-decoration: underline;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}

.related-list a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.related-list a:hover {
  text-decoration: underline;
  color: #b91c1c;
}

.related-list span {
  font-size: 0.84rem;
  color: var(--muted);
}

.guide-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.guide-nav a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.guide-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.guide-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-sky));
}

.guide-kicker {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.guide-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.guide-lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.guide-meta {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px;
  margin-bottom: 16px;
}

.guide-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.guide-card h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.guide-card p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.guide-card ul,
.guide-card ol {
  margin: 0 0 12px;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.guide-card li {
  margin-bottom: 6px;
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.guide-toc a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.guide-toc a:hover {
  text-decoration: underline;
}

.guide-toc a.toc-highlight {
  color: #dc2626;
  font-weight: 700;
}

.guide-toc a.toc-highlight:hover {
  color: #b91c1c;
}

.summary-item {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

.summary-item:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.summary-item .source {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding: 10px 12px 10px 36px;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--accent);
  font-weight: 700;
}

.cta-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #dc2626;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -140%;
  width: 70%;
  height: 140%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 32%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.12) 68%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: cta-shine 1.6s ease-in-out infinite;
  pointer-events: none;
}

.cta-btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(185, 28, 28, 0.32);
}

.cta-btn:hover::before {
  animation-duration: 1.1s;
}

@keyframes cta-shine {
  0% {
    left: -140%;
  }
  55%,
  100% {
    left: 160%;
  }
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #f8fafc;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
}

.faq details p {
  margin: 10px 0 0;
}

.guide-footer {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.guide-note {
  font-size: 0.85rem;
  color: var(--muted);
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 12px 14px;
}

.guide-figure {
  margin: 18px 0 0;
  padding: 0;
  max-width: 480px;
}

.guide-figure img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
}

.guide-figure--hero {
  margin-top: 18px;
}

.guide-figure--inline {
  margin: 20px auto 4px;
}

.guide-figure figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 480px;
}

@media (max-width: 640px) {
  .guide-figure,
  .guide-figure img,
  .guide-figure figcaption {
    max-width: 100%;
  }
}

.sources .source-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.sources .source-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.sources .source-blog {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.sources .source-title {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.sources .source-extra {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.sources .source-extra a,
.guide-note a {
  color: var(--accent-sky);
  font-weight: 600;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  width: 58px;
  height: 58px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-2px);
}

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

.scroll-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.scroll-top__track {
  fill: none;
  stroke: #e2e8f0;
  stroke-width: 3.5;
}

.scroll-top__progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.scroll-top__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1.1;
}

.scroll-top__pct {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
}

.scroll-top__label {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

@media (min-width: 1400px) {
  .guide-wrap {
    max-width: 1400px;
  }
}

@media (max-width: 1200px) {
  .guide-wrap {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .guide-wrap {
    padding: 14px 12px 36px;
  }

  .guide-hero,
  .guide-card {
    padding: 18px 16px;
  }

  .scroll-top {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
}
