.guide-hero {
  padding-block: 72px 58px;
  background:
    radial-gradient(circle at 12% 18%, rgba(22, 199, 183, 0.14), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(35, 130, 231, 0.12), transparent 32%),
    linear-gradient(135deg, #f4fbff, #fbfffe);
}

.guide-hero .container {
  max-width: 1080px;
}

.guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}

.guide-breadcrumb a {
  color: var(--blue-700);
  font-weight: 700;
}

.guide-breadcrumb span[aria-hidden="true"] {
  color: #9aa8b8;
}

.guide-hero h1 {
  max-width: 920px;
  margin: 10px 0 16px;
  color: var(--navy-900);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.45;
}

.guide-hero > .container > p,
.guide-hero-copy {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 2;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.guide-meta span,
.guide-meta time {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  color: #40536a;
  border: 1px solid rgba(207, 220, 234, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 700;
}

.guide-section {
  padding-block: 66px 96px;
  background: #fff;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 32px;
  max-width: 1120px;
}

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

.guide-article > section,
.guide-panel {
  padding: 30px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(19, 48, 82, 0.05);
}

.guide-article h2 {
  margin: 0 0 14px;
  color: var(--navy-900);
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.55;
}

.guide-article h3 {
  margin: 24px 0 8px;
  color: var(--navy-800);
  font-size: 18px;
}

.guide-article p,
.guide-article li,
.guide-panel p,
.guide-panel li {
  color: var(--muted);
  font-size: 14px;
  line-height: 2;
}

.guide-article p:last-child,
.guide-panel p:last-child {
  margin-bottom: 0;
}

.guide-article a:not(.button),
.guide-panel a:not(.button) {
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(23, 107, 206, 0.25);
  text-underline-offset: 4px;
}

.guide-toc {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.guide-toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-900);
  font-size: 14px;
}

.guide-toc a {
  display: block;
  padding: 7px 0;
  color: #53657b;
  border-bottom: 1px dashed rgba(190, 205, 221, 0.8);
  font-size: 12px;
  line-height: 1.75;
}

.guide-toc a:last-child {
  border-bottom: 0;
}

.guide-toc a:hover {
  color: var(--blue-700);
}

.guide-alert {
  padding: 20px 22px;
  margin: 22px 0;
  color: #46586e;
  border: 1px solid rgba(201, 155, 69, 0.34);
  border-radius: 16px;
  background: #fffaf1;
  font-size: 13px;
  line-height: 2;
}

.guide-alert strong {
  color: #73521b;
}

.guide-alert.info {
  border-color: rgba(35, 130, 231, 0.25);
  background: #f2f8ff;
}

.guide-alert.info strong {
  color: var(--blue-700);
}

.guide-alert.safe {
  border-color: rgba(12, 174, 159, 0.28);
  background: #effcf9;
}

.guide-alert.safe strong {
  color: #087e73;
}

.guide-steps {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  counter-reset: guide-step;
}

.guide-step {
  position: relative;
  padding: 20px 64px 20px 20px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
  counter-increment: guide-step;
}

.guide-step::before {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--teal-600), var(--blue-700));
  content: counter(guide-step);
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
}

.guide-step strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy-900);
  font-size: 15px;
}

.guide-step p {
  margin: 0;
}

.check-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 9px 32px 9px 0;
  border-bottom: 1px dashed var(--line);
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-list li::before {
  position: absolute;
  right: 0;
  top: 13px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #087e73;
  border-radius: 7px;
  background: var(--teal-100);
  content: "✓";
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 95% 5%, rgba(22, 199, 183, 0.1), transparent 34%),
    #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.guide-card:hover {
  border-color: rgba(35, 130, 231, 0.3);
  box-shadow: 0 18px 48px rgba(19, 48, 82, 0.11);
  transform: translateY(-3px);
}

.guide-card .guide-badge {
  align-self: flex-start;
}

.guide-card h2,
.guide-card h3 {
  margin: 16px 0 9px;
  color: var(--navy-900);
  font-size: 22px;
  line-height: 1.6;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.guide-card-link {
  margin-top: auto;
  padding-top: 22px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 4px 11px;
  color: #087e73;
  border-radius: 999px;
  background: var(--teal-100);
  font-size: 10px;
  font-weight: 800;
}

.guide-badge.blue {
  color: var(--blue-700);
  background: var(--blue-100);
}

.guide-badge.gold {
  color: #73521b;
  background: #fff2d8;
}

.guide-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.guide-flow > div {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.guide-flow b {
  display: block;
  margin-bottom: 5px;
  color: var(--navy-900);
  font-size: 14px;
}

.guide-flow span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

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

.guide-definition {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.guide-definition dt {
  margin-bottom: 7px;
  color: var(--navy-900);
  font-size: 15px;
  font-weight: 800;
}

.guide-definition dd {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

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

.guide-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}

.guide-table th,
.guide-table td {
  padding: 14px 16px;
  text-align: right;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
}

.guide-table th {
  color: var(--navy-900);
  background: var(--surface-soft);
  font-weight: 800;
}

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

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

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

.guide-source-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.guide-source-list li:last-child {
  border-bottom: 0;
}

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

.guide-related a {
  display: block;
  padding: 18px;
  color: var(--navy-900) !important;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
}

.guide-related a:hover {
  border-color: rgba(35, 130, 231, 0.3);
  background: var(--blue-100);
}

.guide-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 30px;
  margin-top: 18px;
  color: #fff;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.guide-cta h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 23px;
}

.guide-cta p {
  margin: 0;
  color: #c8d6e6;
  font-size: 12px;
}

.guide-cta .button {
  white-space: nowrap;
  color: var(--navy-900);
  background: #fff;
}

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

  .guide-toc {
    position: static;
    order: -1;
  }

  .guide-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .guide-hero {
    padding-block: 54px 44px;
  }

  .guide-section {
    padding-block: 45px 70px;
  }

  .guide-card-grid,
  .guide-definition-grid,
  .guide-related,
  .guide-flow,
  .guide-cta {
    grid-template-columns: 1fr;
  }

  .guide-article > section,
  .guide-panel,
  .guide-card {
    padding: 22px;
  }

  .guide-step {
    padding: 62px 18px 18px;
  }

  .guide-step::before {
    top: 16px;
    right: 16px;
  }

  .guide-cta .button {
    width: 100%;
  }
}
