:root {
  color-scheme: dark;
  --guide-bg: #08080a;
  --guide-panel: rgba(20, 20, 24, 0.82);
  --guide-border: rgba(255, 255, 255, 0.1);
  --guide-gold: #d4af37;
  --guide-green: #4ade80;
  --guide-text: rgba(255, 255, 255, 0.88);
  --guide-muted: rgba(255, 255, 255, 0.64);
}

html {
  scroll-behavior: smooth;
}

body.guide-page {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(212, 175, 55, 0.12), transparent 34rem),
    var(--guide-bg);
  color: var(--guide-text);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.guide-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  transform: translateY(-140%);
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 800;
}

.guide-skip:focus {
  transform: translateY(0);
}

.guide-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--guide-border);
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: blur(16px);
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.guide-brand__square {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.guide-brand__wordmark {
  width: 126px;
  height: 40px;
  object-fit: contain;
}

.guide-nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.guide-nav__links a {
  color: var(--guide-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.guide-nav__links a:hover,
.guide-nav__links a:focus-visible {
  color: var(--guide-gold);
}

.guide-hero {
  padding: clamp(72px, 10vw, 126px) 20px 58px;
  text-align: center;
}

.guide-hero__inner,
.guide-layout,
.guide-footer__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.guide-eyebrow {
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  color: #f5d67b;
  font-size: 0.82rem;
  font-weight: 800;
}

.guide-hero h1 {
  max-width: 850px;
  margin: 24px auto 18px;
  color: #fff;
  font-size: clamp(2.05rem, 5.5vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

.guide-hero__lead {
  max-width: 760px;
  margin: 0 auto;
  color: var(--guide-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.75;
  word-break: keep-all;
}

.guide-hero__chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.guide-hero__chips span {
  padding: 9px 13px;
  border: 1px solid var(--guide-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 34px;
  padding: 0 20px 90px;
}

.guide-content {
  min-width: 0;
}

.guide-section {
  scroll-margin-top: 90px;
  margin-bottom: 26px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--guide-border);
  border-radius: 24px;
  background: var(--guide-panel);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.guide-section h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.45rem, 3.5vw, 2.1rem);
  line-height: 1.35;
  letter-spacing: -0.025em;
  word-break: keep-all;
}

.guide-section h3 {
  margin: 26px 0 10px;
  color: #f5d67b;
  font-size: 1.08rem;
  line-height: 1.45;
}

.guide-section p,
.guide-section li,
.guide-section td,
.guide-section th {
  font-size: 0.98rem;
  line-height: 1.75;
}

.guide-section p {
  color: var(--guide-muted);
}

.guide-principle {
  margin: 20px 0 0;
  padding: 18px 20px;
  border-left: 4px solid var(--guide-green);
  border-radius: 0 14px 14px 0;
  background: rgba(74, 222, 128, 0.07);
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.guide-card {
  padding: 20px;
  border: 1px solid var(--guide-border);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.26);
}

.guide-card strong {
  display: block;
  margin-bottom: 7px;
  color: #fff;
}

.guide-card p {
  margin: 0;
  font-size: 0.9rem;
}

.guide-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--guide-border);
  border-radius: 16px;
}

.guide-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.guide-table th,
.guide-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--guide-border);
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  color: #fff;
  background: rgba(212, 175, 55, 0.08);
  font-size: 0.88rem;
}

.guide-table td {
  color: var(--guide-muted);
}

.guide-table tr:last-child td {
  border-bottom: 0;
}

.guide-checklist {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.guide-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--guide-border);
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.guide-check:hover {
  border-color: rgba(212, 175, 55, 0.38);
}

.guide-check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--guide-green);
  flex: 0 0 auto;
}

.guide-check span {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

.guide-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 14px;
  background: rgba(74, 222, 128, 0.07);
}

.guide-progress strong {
  color: var(--guide-green);
}

.guide-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.09);
  color: #f5d67b;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.guide-button--primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--guide-green), #22c55e);
  color: #041109;
}

.guide-button:hover,
.guide-button:focus-visible {
  border-color: var(--guide-gold);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.guide-toc {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 22px;
  border: 1px solid var(--guide-border);
  border-radius: 20px;
  background: rgba(15, 15, 19, 0.88);
}

.guide-toc strong {
  color: #fff;
}

.guide-toc ol {
  display: grid;
  gap: 11px;
  margin: 16px 0 0;
  padding-left: 20px;
}

.guide-toc a {
  color: var(--guide-muted);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.4;
}

.guide-toc a:hover,
.guide-toc a:focus-visible {
  color: var(--guide-gold);
}

.guide-faq details {
  border-top: 1px solid var(--guide-border);
  padding: 15px 0;
}

.guide-faq details:first-of-type {
  margin-top: 12px;
}

.guide-faq summary {
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.guide-footer {
  padding: 34px 20px 44px;
  border-top: 1px solid var(--guide-border);
  text-align: center;
}

.guide-footer p {
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  line-height: 1.6;
}

.guide-footer a {
  color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 880px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    position: static;
    grid-row: 1;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .guide-nav {
    align-items: flex-start;
    padding: 10px 14px;
  }

  .guide-brand__wordmark {
    display: none;
  }

  .guide-nav__links {
    gap: 10px 14px;
  }

  .guide-nav__links a {
    font-size: 0.8rem;
  }

  .guide-section {
    border-radius: 18px;
  }

  .guide-progress {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  body.guide-page {
    background: #fff;
    color: #111;
  }

  .guide-nav,
  .guide-hero__chips,
  .guide-toc,
  .guide-actions,
  #pf-messenger-fab,
  #pf-cookie-settings,
  #pf-gdpr-banner {
    display: none !important;
  }

  .guide-hero {
    padding: 20px 0;
  }

  .guide-hero h1,
  .guide-section h2,
  .guide-section h3,
  .guide-card strong,
  .guide-faq summary {
    color: #111;
  }

  .guide-hero__lead,
  .guide-section p,
  .guide-table td,
  .guide-check span,
  .guide-footer p {
    color: #333;
  }

  .guide-layout {
    display: block;
    padding: 0;
  }

  .guide-section {
    break-inside: avoid;
    margin: 0 0 14px;
    border-color: #ccc;
    background: #fff;
    box-shadow: none;
  }

  .guide-card,
  .guide-check,
  .guide-progress {
    border-color: #ccc;
    background: #fff;
  }
}
