/* 이용가이드 목록·본문 */

.guide-page {
  min-width: 0;
  max-width: 800px;
}

.guide-page__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  min-width: 0;
}

.guide-page__title {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.guide-page__head .guide-page__title {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}

.guide-page__empty {
  margin: 0;
  padding: 32px 16px;
  color: #6b7280;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}

.guide-page__back-btn {
  margin-top: 16px;
}

.guide-page__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin-bottom: 4px;
  color: #2563eb;
  text-decoration: none;
}

.guide-page__back-icon {
  flex-shrink: 0;
}

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.guide-list__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.guide-list__item:hover {
  border-color: #d1d5db;
}

.guide-list__item:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.guide-list__icon {
  flex-shrink: 0;
  color: #2563eb;
}

.guide-list__title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.guide-list__chevron {
  flex-shrink: 0;
  color: #9ca3af;
}

.guide-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  min-width: 0;
}

.guide-pager__nav {
  min-height: 44px;
}

.guide-pager__nav.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.guide-pager__nums {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.guide-pager__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.guide-pager__page.is-active {
  background: #111827;
  color: #fff;
}

.guide-pager__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 44px;
}

.guide-search {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  width: auto;
  max-width: 260px;
  margin: 0 0 0 auto;
  min-width: 0;
}

.guide-search__field {
  position: relative;
  flex: 1 1 auto;
  width: 11rem;
  max-width: 180px;
  min-width: 0;
}

.guide-search__input {
  width: 100%;
  min-height: 44px;
  padding-left: 16px;
  padding-right: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
}

.guide-search__input::-webkit-search-cancel-button,
.guide-search__input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.guide-search__clear {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

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

.guide-search__clear-icon {
  display: block;
}

.guide-search__btn {
  flex-shrink: 0;
  min-height: 44px;
}

.guide-content {
  min-width: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

html[lang="ko"] .guide-page__title,
html[lang="ko"] .guide-list__title,
html[lang="ko"] .guide-content {
  word-break: keep-all;
}

.guide-content > :first-child {
  margin-top: 0;
}

.guide-content p {
  margin: 0;
}

.guide-content p:has(> br:only-child) {
  height: 0.75em;
  line-height: 0;
  overflow: hidden;
}

.guide-content h2 {
  margin: 1.6em 0 0.6em;
  font-size: 1.25rem;
  line-height: 1.4;
}

.guide-content h3 {
  margin: 1.4em 0 0.5em;
  font-size: 1.125rem;
  line-height: 1.4;
}

.guide-content ol,
.guide-content ul {
  margin: 0;
  padding-left: 1.5em;
}

.guide-content li[data-list="bullet"] {
  list-style-type: disc;
}

.guide-content li[data-list="ordered"] {
  list-style-type: decimal;
}

.guide-content blockquote {
  margin: 0;
  padding: 8px 16px;
  border-left: 4px solid #d1d5db;
  background: #f8f9fa;
  color: #374151;
}

.guide-content a {
  color: #2563eb;
}

.guide-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 12px 0;
  border-radius: 8px;
  -webkit-user-drag: none;
  user-select: none;
}
