@font-face {
  font-family: "ABC ROM";
  src: url("../fonts/abc-rom/ABCROM-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

.pages-module {
  --pages-font-size: 42px;
  --pages-line-height: 1.2;
  --pages-letter-spacing: -0.045em;
  --pages-font-weight: 700;
  --pages-content-padding-y: 12px;
  --pages-content-padding-x: 10px;
  --pages-arrow-font-size: 80px;
  --pages-divider-offset-top: 10px;
  --pages-count: 1;
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  color: #171a17;
  font-family: "Swiss 721", Helvetica, Arial, sans-serif;
}

.pages-module > .pages-divider {
  position: absolute;
  z-index: 5;
  top: var(--pages-divider-offset-top);
  right: var(--pages-content-padding-x);
  left: var(--pages-content-padding-x);
  width: auto;
  height: var(--rule-size, 1px);
  min-height: var(--rule-size, 1px);
  margin: 0;
  background: var(--rule-color, color-mix(in srgb, currentColor 55%, transparent));
  color: var(--pages-divider-ink, currentColor);
  pointer-events: none;
}

.pages-scroller {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pages-scroller::-webkit-scrollbar {
  display: none;
}

.pages-list {
  width: 100%;
  height: 100%;
}

.pages-module .page {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--page-bg, #f7f7f7);
  color: var(--page-text, #171a17);
}

.pages-module.is-all .pages-scroller {
  overflow: hidden;
  scroll-snap-type: none;
}

.pages-module.is-all .pages-list {
  display: flex;
  flex-direction: column;
}

.pages-module.is-all .page {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  max-height: none;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.pages-more {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 6;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pages-more-ink, currentColor);
  font: 500 16px/18px "Swiss 721", Helvetica, Arial, sans-serif;
  cursor: pointer;
}

.pages-more:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

.page-inner {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  padding: var(--pages-content-padding-y) var(--pages-content-padding-x);
}

.page-title {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: var(--page-text, #171a17);
  opacity: 0.45;
}

.page.is-active .page-title,
.pages-module.is-all .page-title {
  opacity: 1;
}

.page-title-text {
  min-width: 0;
  font-size: var(--pages-font-size);
  font-weight: var(--pages-font-weight);
  line-height: var(--pages-line-height);
  letter-spacing: var(--pages-letter-spacing);
}

.page-title-arrow {
  margin-left: auto;
  font-family: "ABC ROM", "Swiss 721", Helvetica, Arial, sans-serif;
  font-size: var(--pages-arrow-font-size);
  font-weight: 500;
  line-height: 0.8;
}

.app-module[data-module="pages"] .module-skel {
  display: none;
}

.app-module[data-module="pages"] .module-fill.pages-select,
html.is-content .module-fill.pages-select {
  display: flex;
  position: absolute;
  inset: 0;
  padding: 0;
  gap: 0;
  background: transparent;
  pointer-events: auto;
}

html.is-content .module-fill.pages-select .pages-module {
  --pages-font-size: clamp(16px, 1.8em, 42px);
  --pages-arrow-font-size: clamp(24px, 2.6em, 64px);
  --pages-content-padding-y: 0.28em;
  --pages-content-padding-x: 0.45em;
  flex: 1 1 auto;
  height: 100%;
}
