.guide-page {
  --guide-ink: var(--ui-text);
  --guide-muted: var(--ui-secondary);
  --guide-accent: var(--ui-link);
  --guide-hover: var(--ui-blue-hover);
  --guide-line: var(--ui-border);
  --guide-paper: #fff;
  width: min(100% - 3rem, 1080px);
  margin-inline: auto;
  padding-block: clamp(36px, 7vw, 82px) 56px;
  color: var(--guide-ink);
  font-family: var(--ui-font);
  line-height: 1.6;
}

.guide-page *, .guide-page *::before, .guide-page *::after { box-sizing: border-box; }
.guide-page h1, .guide-page h2, .guide-page h3, .guide-page p, .guide-page figure { margin: 0; }
.guide-page h1 { font-size: clamp(2.12rem, 4.8vw, 3.9rem); font-weight: 650; line-height: 1.14; letter-spacing: -.05em; text-wrap: balance; }
.guide-page h2 { font-size: clamp(1.24rem, 2.7vw, 1.62rem); line-height: 1.3; letter-spacing: -.028em; }
.guide-page h3 { font-size: 1.05rem; line-height: 1.35; }
.guide-page :is(a, button, input, select):focus-visible { outline: 3px solid var(--ui-blue); outline-offset: 3px; }
.guide-page:lang(ko) :is(h1, h2, h3, p) { word-break: keep-all; overflow-wrap: break-word; }
.guide-page .guide-lead { max-width: 49ch; margin-top: 18px; color: var(--guide-muted); font-size: clamp(1rem, 1.9vw, 1.13rem); }

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(36px, 5.5vw, 60px);
}
.guide-hero-pdf { grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); }
.guide-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 24px; }
.guide-primary, .guide-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--ui-control-radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
  cursor: pointer;
}
.guide-primary { background: var(--ui-blue); color: #fff; }
.guide-primary:hover:not(:disabled) { background: var(--guide-hover); }
.guide-secondary { border-color: var(--guide-line); background: #fff; color: var(--guide-accent); }
.guide-secondary:hover:not(:disabled) { border-color: var(--guide-accent); }
.guide-page :is(.guide-primary, .guide-secondary):disabled { opacity: .59; cursor: default; }
.guide-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--guide-accent); font-weight: 600; text-underline-offset: .24em; }

.guide-demo {
  min-width: 0;
  padding: clamp(14px, 2.6vw, 25px);
  border: 1px solid var(--guide-line);
  border-radius: var(--ui-panel-radius);
  background: var(--guide-paper);
}
.guide-demo figcaption { margin-top: 12px; font-size: .875rem; color: var(--guide-muted); }
.guide-stats, .guide-score, .guide-mirror, .guide-pdf-example { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.guide-stats > div { display: grid; align-content: center; min-height: 92px; padding: 10px 13px; border: 1px solid var(--guide-line); border-radius: 8px; background: #fff; }
.guide-stats dt { font-size: .875rem; color: var(--guide-muted); }
.guide-stats dd, .guide-score dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 750; }
.guide-stats dd { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.18; }
.guide-score > div, .guide-mirror > div { display: grid; align-content: center; min-height: 122px; padding: 10px; border-radius: 8px; text-align: center; }
.guide-score > div:first-child { background: #213b63; color: #fff; }
.guide-score > div:last-child { background: #f6d16a; color: #292005; }
.guide-score dt, .guide-mirror strong { font-size: .875rem; font-weight: 650; }
.guide-score dd { font-size: clamp(2.7rem, 6vw, 4.6rem); line-height: 1.08; }
.guide-mirror > div { background: #242c30; color: #f8fbfa; }
.guide-mirror span { margin-top: 10px; font-weight: 600; }
.guide-mirror > div:last-child span { transform: scaleX(-1); }
.guide-demo #guide-pdf-demo { margin-bottom: 12px; font-size: 1.15rem; }
.guide-pdf-sheet { min-width: 0; border: 1px solid var(--guide-line); border-radius: 8px; padding: 11px; background: #fff; }
.guide-pdf-sheet h3 { font-size: .91rem; }
.guide-pdf-sheet p { margin-block: 4px 9px; color: var(--guide-muted); font-size: .875rem; }
.guide-pdf-sheet dl { display: grid; gap: 2px; margin: 0; }
.guide-pdf-sheet dl > div { padding-block: 3px; border-top: 1px solid var(--guide-line); }
.guide-pdf-sheet dt, .guide-pdf-sheet dd { font-size: .875rem; overflow-wrap: anywhere; }
.guide-pdf-sheet dd { display: flex; align-items: center; min-height: 19px; margin: 0; font-weight: 650; }
.guide-mask { display: inline-block; width: min(100%, 91px); height: 11px; border-radius: 2px; background: #151716; }

.guide-steps { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 20px 42px; padding-block: 28px; border-top: 1px solid var(--guide-line); }
.guide-steps ol { display: grid; gap: 15px; margin: 0; padding-inline-start: 22px; }
.guide-steps li { padding-inline-start: 3px; }
.guide-steps li::marker { color: var(--guide-accent); font-weight: 750; }
.guide-steps li p, .guide-note p { margin-top: 5px; color: var(--guide-muted); }
.guide-note { padding: 22px; border-radius: 10px; background: var(--guide-paper); }
.guide-example-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 14px 0 0; padding: 0; }
.guide-example-list li { padding: 12px; border: 1px solid var(--guide-line); border-radius: 8px; background: #fff; }
.guide-help { padding-top: 24px; }
.guide-help dl { display: grid; gap: 12px; margin: 14px 0 0; }
.guide-help dt { font-weight: 600; }
.guide-help dd { margin: 3px 0 0; color: var(--guide-muted); }
.guide-related { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--guide-line); }
.guide-related ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; margin: 15px 0 0; list-style: none; }
.guide-related a { display: flex; align-items: center; min-height: 44px; padding: 7px 12px; border: 1px solid var(--guide-line); border-radius: var(--ui-control-radius); color: var(--guide-accent); font-weight: 650; text-decoration: none; }
.guide-related a:hover { border-color: var(--guide-accent); }

.guide-utm { max-width: 800px; }
.utm-form { margin-top: 28px; padding: clamp(14px, 3.6vw, 28px); border: 1px solid var(--guide-line); border-radius: var(--ui-panel-radius); background: #fff; }
.utm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.utm-field { display: grid; gap: 4px; min-width: 0; }
.utm-field label { font-weight: 600; }
.utm-field :is(input, select) { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #86868b; border-radius: var(--ui-control-radius); background: #fff; color: var(--guide-ink); font: inherit; }
.utm-field input:read-only { background: var(--ui-background); }
.utm-field input::placeholder { color: var(--guide-muted); }
.utm-field [aria-invalid="true"] { border-color: #b3261e; }
.guide-page .utm-field-error { margin-top: 4px; color: #b3261e; font-size: .875rem; }
.utm-field-error[hidden] { display: none; }
.utm-form .utm-hint { margin-top: 10px; color: var(--guide-muted); font-size: .9rem; }
.utm-form > .guide-primary { margin-block: 18px; }
.utm-output { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; padding-top: 13px; border-top: 1px solid var(--guide-line); }
.utm-output button { min-height: 44px; }
.utm-form .utm-status:not(:empty) { margin-top: 8px; color: var(--guide-accent); }

@media (max-width: 730px) {
  .guide-hero, .guide-hero-pdf, .guide-steps { grid-template-columns: minmax(0, 1fr); }
  .guide-steps { gap: 12px; }
}

@media (max-width: 445px) {
  .guide-related ul, .guide-example-list, .utm-fields, .utm-output { grid-template-columns: minmax(0, 1fr); }
  .utm-output button { justify-self: start; }
}

@media (max-width: 620px) { .guide-page { width: min(100% - 2rem, 1080px); } }
