body.is-guide-open {
  overflow: hidden;
}

.guide-overlay[hidden] {
  display: none;
}

.guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  background: rgba(16, 29, 34, 0.62);
  transition: opacity 180ms ease;
}

.guide-overlay.is-visible {
  opacity: 1;
}

.guide-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(1040px, 80vw);
  height: min(760px, 85vh);
  overflow: hidden;
  color: #17252f;
  background: #f7faf9;
  border: 1px solid rgba(23, 37, 47, 0.14);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(10, 27, 33, 0.32);
  transform: translateY(12px) scale(0.985);
  transition: transform 180ms ease;
}

.guide-overlay.is-visible .guide-panel {
  transform: translateY(0) scale(1);
}

.guide-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0 64px 0 24px;
  background: #ffffff;
  border-bottom: 1px solid rgba(23, 37, 47, 0.1);
}

.guide-header__title {
  width: 100%;
  margin: 0;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.3;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-close-button {
  position: absolute;
  top: 13px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #52656d;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.guide-close-button:hover,
.guide-close-button:focus-visible {
  color: #ffffff;
  background: #2b7a78;
  outline: none;
}

.guide-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(720px, calc(100% - 48px));
  margin: 16px auto;
}

.guide-search__icon {
  position: absolute;
  left: 15px;
  z-index: 1;
  color: #2b7a78;
  font-size: 25px;
  line-height: 1;
  pointer-events: none;
}

.guide-search__input {
  width: 100%;
  min-height: 46px;
  padding: 0 16px 0 46px;
  color: #17252f;
  font: inherit;
  font-size: 14px;
  background: #ffffff;
  border: 1px solid rgba(43, 122, 120, 0.32);
  border-radius: 8px;
  outline: none;
}

.guide-search__input:focus {
  border-color: #2b7a78;
  box-shadow: 0 0 0 3px rgba(43, 122, 120, 0.12);
}

.guide-body {
  min-height: 0;
  overflow: auto;
  padding: 0 34px 34px;
  scrollbar-gutter: stable;
}

.guide-directory__heading {
  padding: 4px 4px 20px;
  text-align: center;
}

.guide-directory__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.guide-directory__intro {
  max-width: 720px;
  margin: 8px auto 0;
  color: #52656d;
  font-size: 14px;
  line-height: 1.6;
}

.guide-directory__version {
  display: block;
  margin-top: 5px;
  color: #7a8c92;
  font-size: 11px;
}

.guide-section-list {
  display: grid;
  gap: 10px;
  width: min(820px, 100%);
  margin: 0 auto;
}

.guide-section-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 74px;
  padding: 13px 16px;
  color: #17252f;
  font: inherit;
  text-align: left;
  background: #ffffff;
  border: 1px solid rgba(23, 37, 47, 0.13);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.guide-section-card:hover,
.guide-section-card:focus-visible {
  border-color: rgba(43, 122, 120, 0.55);
  box-shadow: 0 8px 22px rgba(27, 68, 74, 0.1);
  outline: none;
  transform: translateX(4px);
}

.guide-section-card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #d85a35;
  font-size: 24px;
}

.guide-section-card__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.guide-section-card__title {
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.35;
}

.guide-section-card__summary {
  overflow: hidden;
  color: #60737a;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-section-card__arrow {
  color: #2b7a78;
  font-size: 26px;
  text-align: center;
}

.guide-empty {
  display: grid;
  gap: 8px;
  padding: 44px 20px;
  color: #60737a;
  text-align: center;
}

.guide-empty strong {
  color: #17252f;
  font-size: 17px;
}

.guide-article {
  width: min(900px, 100%);
  margin: 0 auto;
}

.guide-back-button,
.guide-nav-button {
  min-height: 36px;
  padding: 0 12px;
  color: #2b7a78;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid rgba(43, 122, 120, 0.28);
  border-radius: 7px;
  cursor: pointer;
}

.guide-back-button:hover,
.guide-nav-button:hover,
.guide-back-button:focus-visible,
.guide-nav-button:focus-visible {
  color: #ffffff;
  background: #2b7a78;
  outline: none;
}

.guide-article__header {
  padding: 24px 0 20px;
  border-bottom: 1px solid rgba(23, 37, 47, 0.12);
}

.guide-article__chapter {
  color: #d85a35;
  font-size: 12px;
  font-weight: 800;
}

.guide-article__title {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-size: 26px;
  line-height: 1.25;
}

.guide-article__intro {
  margin: 10px 0 0;
  color: #52656d;
  font-size: 14px;
  line-height: 1.7;
}

.guide-step {
  padding: 24px 0;
  border-bottom: 1px solid rgba(23, 37, 47, 0.1);
}

.guide-step__title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.guide-step__number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #ffffff;
  font-size: 13px;
  background: #d85a35;
  border-radius: 50%;
}

.guide-step__text {
  margin: 10px 0 0;
  color: #435961;
  font-size: 14px;
  line-height: 1.75;
}

.guide-figure {
  margin: 18px 0 0;
}

.guide-figure__stage {
  position: relative;
  overflow: hidden;
  background: #e8efed;
  border: 1px solid rgba(23, 37, 47, 0.14);
  border-radius: 8px;
}

.guide-figure__image {
  display: block;
  width: 100%;
  height: auto;
}

.guide-figure__caption {
  margin-top: 7px;
  color: #75878d;
  font-size: 11px;
  text-align: center;
}

.guide-callout {
  position: absolute;
  min-width: 34px;
  min-height: 24px;
  border: 3px solid #2b7a78;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.88), 0 8px 20px rgba(18, 52, 57, 0.18);
  pointer-events: none;
}

.guide-callout__number {
  position: absolute;
  top: -14px;
  left: -14px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  background: #d85a35;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.guide-callout__label {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  max-width: 200px;
  padding: 5px 7px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  background: rgba(29, 83, 82, 0.94);
  border-radius: 5px;
}

.guide-faq-list {
  padding: 24px 0;
}

.guide-faq-list__title {
  margin: 0 0 12px;
  font-size: 19px;
}

.guide-faq {
  background: #ffffff;
  border-top: 1px solid rgba(23, 37, 47, 0.11);
}

.guide-faq:last-child {
  border-bottom: 1px solid rgba(23, 37, 47, 0.11);
}

.guide-faq__question {
  padding: 14px 10px;
  color: #24434b;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.guide-faq__answer {
  margin: 0;
  padding: 0 12px 16px;
  color: #52656d;
  font-size: 13px;
  line-height: 1.7;
}

.guide-article__navigation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
}

.guide-nav-button--next {
  margin-left: auto;
}

@media (max-width: 720px) {
  .guide-overlay {
    padding: 8px;
  }

  .guide-panel {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  .guide-header {
    min-height: 54px;
    padding-right: 52px;
    padding-left: 16px;
  }

  .guide-header__title {
    font-size: 17px;
    text-align: left;
  }

  .guide-close-button {
    top: 9px;
    right: 9px;
  }

  .guide-search {
    width: calc(100% - 24px);
    margin: 12px auto;
  }

  .guide-body {
    padding: 0 12px 22px;
  }

  .guide-section-card {
    grid-template-columns: 30px minmax(0, 1fr) 20px;
    gap: 9px;
    padding: 12px 10px;
  }

  .guide-section-card__summary {
    white-space: normal;
  }

  .guide-article__title {
    font-size: 22px;
  }

  .guide-callout {
    border-width: 2px;
  }

  .guide-callout__label {
    display: none;
  }

  .guide-article__navigation {
    display: grid;
  }

  .guide-nav-button,
  .guide-nav-button--next {
    width: 100%;
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-overlay,
  .guide-panel,
  .guide-section-card {
    transition: none;
  }
}
