.guide-page {
  background: #fff;
}

.guide-hero {
  padding: clamp(48px, 7vw, 96px) var(--page-pad) clamp(40px, 5vw, 64px);
  background: #fff;
}
.guide-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.guide-hero h1 {
  font: 500 clamp(40px, 5vw, 66px) / 1 var(--font-sans);
  letter-spacing: -0.045em;
  color: #000;
  max-width: 620px;
}
.guide-lead {
  margin-top: 22px;
  max-width: 600px;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: #000;
}
.guide-meta {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #000;
}
.guide-hero-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #f4f4f4;
}
.guide-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-body {
  padding: clamp(40px, 5vw, 72px) var(--page-pad) clamp(64px, 8vw, 112px);
  border-top: 1px solid var(--border);
  background: #fff;
}
.guide-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 96px;
}
.guide-toc-title {
  margin: 0 0 12px;
  font: 500 15px / 1.3 var(--font-sans);
  letter-spacing: -0.01em;
  color: #000;
}
.guide-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
}
.guide-toc a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 1px solid transparent;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #000;
}
.guide-toc a:hover,
.guide-toc a:focus-visible {
  border-left-color: var(--orange-500);
  outline: none;
}

.guide-article {
  max-width: 720px;
  min-width: 0;
}
.guide-article > section + section {
  margin-top: clamp(48px, 5vw, 64px);
}
.guide-article h2 {
  margin: 0 0 18px;
  font: 500 clamp(28px, 2.8vw, 38px) / 1.08 var(--font-sans);
  letter-spacing: -0.035em;
  color: #000;
  scroll-margin-top: 96px;
}
.guide-article h3 {
  margin: 32px 0 10px;
  font: 500 clamp(20px, 1.7vw, 23px) / 1.2 var(--font-sans);
  letter-spacing: -0.025em;
  color: #000;
}
.guide-article h2 + h3 {
  margin-top: 8px;
}
.guide-article p,
.guide-article li {
  font-size: clamp(17px, 1.2vw, 18px);
  line-height: 1.65;
  letter-spacing: -0.012em;
  color: #000;
}
.guide-article p + p,
.guide-article ul + p,
.guide-article ol + p,
.guide-article p + ul,
.guide-article p + ol {
  margin-top: 18px;
}
.guide-article ul,
.guide-article ol {
  margin: 0;
  padding-left: 24px;
}
.guide-article li + li {
  margin-top: 10px;
}
.guide-article a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.guide-article a:hover {
  color: var(--orange-600);
}

.guide-steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  counter-reset: guide-step;
}
.guide-article .guide-steps {
  padding-left: 0;
}
.guide-step {
  position: relative;
  padding: 0 0 30px 60px;
  counter-increment: guide-step;
}
.guide-article .guide-step + .guide-step {
  margin-top: 0;
}
.guide-step::before {
  content: counter(guide-step);
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--orange-tint);
  color: var(--orange-500);
  font: 500 16px / 1 var(--font-code);
  letter-spacing: -0.04em;
}
.guide-step::after {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 8px;
  left: 20px;
  width: 1px;
  background: var(--border);
}
.guide-step:last-child {
  padding-bottom: 0;
}
.guide-step:last-child::after {
  display: none;
}
.guide-article .guide-step h3 {
  margin: 8px 0 8px;
}

.guide-table-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.guide-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}
.guide-table th,
.guide-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: #000;
}
.guide-table thead th {
  background: var(--neutral-50);
  font-weight: 500;
}
.guide-table tbody th {
  width: 26%;
  font-weight: 500;
}
.guide-table td {
  font-weight: 400;
}
.guide-table tr:last-child th,
.guide-table tr:last-child td {
  border-bottom: 0;
}

.guide-note {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--orange-tint);
}
.guide-article .guide-note p {
  font-size: 17px;
}

.guide-figure {
  margin: 28px 0 0;
}
.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.guide-figure figcaption {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #000;
}

.guide-more {
  padding: clamp(56px, 7vw, 96px) var(--page-pad);
  border-top: 1px solid var(--border);
  background: var(--neutral-50);
}
.guide-more-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.guide-more h2 {
  margin: 0 0 clamp(24px, 3vw, 36px);
  font: 500 clamp(30px, 3.4vw, 44px) / 1.02 var(--font-sans);
  letter-spacing: -0.04em;
  color: #000;
}
.guide-more .feat-card {
  min-height: 0;
}

.guide-page .final-cta {
  padding-top: clamp(32px, 4vw, 56px);
  background: #fff;
}

.guides-hub-hero {
  padding: clamp(48px, 7vw, 96px) var(--page-pad) clamp(32px, 4vw, 48px);
  background: #fff;
}
.guides-hub-hero-inner {
  max-width: var(--page-w);
  margin: 0 auto;
}
.guides-hub-hero h1 {
  max-width: 820px;
  font: 500 clamp(40px, 5.4vw, 72px) / 0.98 var(--font-sans);
  letter-spacing: -0.045em;
  color: #000;
}
.guides-hub-hero .guide-lead {
  max-width: 680px;
}
.guides-hub-grid {
  padding: clamp(8px, 2vw, 24px) var(--page-pad) clamp(64px, 8vw, 104px);
  background: #fff;
}
.guides-hub-grid-inner {
  max-width: var(--page-w);
  margin: 0 auto;
}

@media (max-width: 1000px) {
  .guide-hero-inner,
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .guide-hero h1 {
    max-width: none;
  }
  .guide-toc {
    position: static;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 720px) {
  .guide-step {
    padding-left: 52px;
  }
  .guide-step::before {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .guide-step::after {
    top: 42px;
    left: 17px;
  }
}
