.brand-name {
  white-space: nowrap;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(15, 42, 46, 0.05);
  flex-shrink: 0;
}

.switch-link {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.switch-link:hover {
  color: var(--ink);
}

.switch-link.is-active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 12px -6px rgba(12, 52, 56, 0.35);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  max-width: 420px;
  margin-left: auto;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--ink-3);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.search-input::placeholder {
  color: var(--ink-3);
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-input:focus {
  outline: none;
  background: #fff;
  border-color: rgba(23, 153, 143, 0.5);
  box-shadow: 0 0 0 4px rgba(23, 153, 143, 0.14);
}

.search-kbd {
  position: absolute;
  right: 10px;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-2);
  vertical-align: 0.1em;
}

.search-input:focus ~ .search-kbd {
  opacity: 0;
}

.search-close,
.search-open {
  display: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: min(70vh, 520px);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  border-radius: 18px;
  background: #fbfdfd;
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px -28px rgba(12, 52, 56, 0.4), 0 2px 8px -4px rgba(12, 52, 56, 0.12);
}

.search-hit {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
}

[role="option"].is-active .search-hit,
.search-hit:hover {
  background: var(--accent-soft);
}

.hit-path {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.hit-title {
  font-weight: 600;
}

.hit-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

mark {
  background: rgba(23, 153, 143, 0.2);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

.search-empty {
  padding: 18px 14px;
  font-size: 14px;
  color: var(--ink-2);
}

.bar-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.bar-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.bar-link svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 1023px) {
  .bar-link {
    display: none;
  }
}

@media (max-width: 759px) {
  .search {
    display: none;
  }

  .search-open {
    display: inline-grid;
    margin-left: auto;
  }

  .bar.is-searching .search {
    display: flex;
    position: absolute;
    inset: 0;
    max-width: none;
    margin: 0;
    padding: 0 8px 0 10px;
    gap: 6px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.96);
  }

  .bar.is-searching .search-icon {
    left: 24px;
  }

  .bar.is-searching .search-close {
    display: inline-grid;
    flex-shrink: 0;
  }

  .bar.is-searching .search-kbd {
    display: none;
  }

  .bar.is-searching .search-input {
    padding-right: 14px;
  }

  .bar-inner {
    position: relative;
    gap: 10px;
  }

  .search-results {
    left: 0;
    right: 0;
  }
}

@media (max-width: 559px) {
  .brand-name {
    display: none;
  }

  .switch-link {
    padding: 8px 11px;
    font-size: 13.5px;
  }
}

@media (hover: none) {
  .search-kbd {
    display: none;
  }
}

.docs-main {
  min-height: 70vh;
  padding-block: calc(var(--bar-h) + 12px + env(safe-area-inset-top, 0px) + clamp(28px, 5vh, 56px)) 24px;
  outline: none;
}

.home-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.home-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
  outline: none;
}

.home-lead {
  margin: 0;
  max-width: 36em;
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.18rem);
  color: var(--ink-2);
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.product-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(320px, 40vw, 440px);
  padding: clamp(12px, 1.6vw, 18px);
  border-radius: var(--r-l);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 60px -36px rgba(12, 52, 56, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.card-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.product-card:nth-child(2) .card-media img {
  object-position: 70% 40%;
}

.product-card:hover .card-media img {
  transform: scale(1.045);
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: min(100%, 420px);
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 20px;
}

.card-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.card-text {
  color: var(--ink-2);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 15px;
}

.card-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.product-card:hover .card-cta svg {
  transform: translateX(4px);
}

.quick {
  margin-top: clamp(16px, 2vw, 24px);
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--r-l);
}

.quick-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
}

.quick-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 12px;
  height: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.quick-link:hover {
  background: #fff;
  transform: translateY(-1px);
}

.quick-product {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.quick-name {
  grid-column: 1;
  font-weight: 600;
}

.quick-link svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  color: var(--ink-3);
}

@media (max-width: 899px) {
  .quick-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 679px) {
  .product-cards,
  .quick-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-card {
    min-height: 300px;
  }
}

.notfound {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 640px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--r-l);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: clamp(20px, 2.4vw, 32px);
}

.doc {
  min-width: 0;
  padding: clamp(24px, 4.4vw, 60px) clamp(20px, 4.4vw, 64px);
  border-radius: var(--r-l);
  background: rgba(255, 255, 255, 0.68);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.crumbs a {
  transition: color 0.2s var(--ease);
}

.crumbs a:hover {
  color: var(--accent-ink);
}

.crumbs svg {
  width: 14px;
  height: 14px;
}

.crumbs span {
  color: var(--ink-2);
}

.doc-head {
  padding-bottom: 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.doc-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
  outline: none;
}

.doc-lead {
  margin: 14px 0 0;
  max-width: 40em;
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  color: var(--ink-2);
}

.doc-body {
  max-width: 72ch;
  font-size: 1.02rem;
  line-height: 1.75;
}

.doc-body > * {
  margin: 18px 0 0;
}

.doc-body p {
  overflow-wrap: break-word;
}

.doc-body a:not(.anchor) {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-color: rgba(11, 110, 104, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}

.doc-body a:not(.anchor):hover {
  text-decoration-color: currentColor;
}

.doc-body code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #e9f0f0;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.86em;
  overflow-wrap: anywhere;
}

.doc-body strong {
  font-weight: 600;
}

.doc-h2 {
  position: relative;
  margin-top: 44px !important;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
  scroll-margin-top: calc(var(--bar-h) + 40px + env(safe-area-inset-top, 0px));
}

.anchor {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: 8px;
  border-radius: 8px;
  color: var(--ink-3);
  vertical-align: middle;
  opacity: 0;
  transition: opacity 0.2s var(--ease), background-color 0.2s var(--ease);
}

.anchor svg {
  width: 16px;
  height: 16px;
}

.doc-h2:hover .anchor,
.anchor:focus-visible {
  opacity: 1;
}

.anchor:hover {
  background: rgba(15, 42, 46, 0.06);
}

@media (hover: none) {
  .anchor {
    opacity: 0.5;
  }
}

.doc-h3 {
  margin-top: 32px !important;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.doc-h3 + p {
  margin-top: 8px;
}

.doc-list {
  padding-left: 0;
  list-style: none;
}

.doc-list li {
  position: relative;
  padding-left: 22px;
}

.doc-list li + li {
  margin-top: 6px;
}

.doc-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

ol.doc-list {
  counter-reset: item;
}

ol.doc-list li::before {
  counter-increment: item;
  content: counter(item) ".";
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--accent-ink);
}

.steps {
  counter-reset: step;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 0 0 22px 50px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 15.5px;
  top: 38px;
  bottom: 4px;
  width: 1px;
  background: var(--line-strong);
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li:last-child::after {
  display: none;
}

.steps p {
  margin: 0;
}

.step-title {
  padding-top: 3px;
  font-weight: 600;
}

.note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 0.97rem;
  line-height: 1.6;
}

.note-info {
  background: rgba(217, 242, 239, 0.75);
  border: 1px solid rgba(23, 153, 143, 0.22);
}

.note-warn {
  background: rgba(252, 243, 225, 0.85);
  border: 1px solid rgba(201, 154, 60, 0.3);
}

.note-icon {
  padding-top: 2px;
  color: var(--accent-ink);
}

.note-warn .note-icon {
  color: #9a6a12;
}

.note-icon svg {
  width: 20px;
  height: 20px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.table-wrap table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

.table-wrap thead th {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-3);
  background: rgba(243, 246, 246, 0.8);
  border-bottom: 1px solid var(--line);
}

.table-wrap tbody th,
.table-wrap td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.table-wrap tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.table-wrap tbody tr:last-child th,
.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.code {
  overflow: hidden;
  border-radius: 14px;
  background: #11201f;
  box-shadow: 0 18px 36px -24px rgba(12, 40, 42, 0.7);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 6px 6px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #8fb2b0;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #cfe2e1;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.copy-btn.is-done {
  color: #7fe0d4;
}

.copy-btn svg {
  width: 15px;
  height: 15px;
}

.code pre {
  margin: 0;
  padding: 16px 18px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.65;
  color: #e3efee;
  tab-size: 4;
}

.code pre:focus-visible {
  outline-offset: -3px;
}

.doc-body .code code {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  overflow-wrap: normal;
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
  min-width: 0;
}

.pager-link:hover {
  background: #fff;
  transform: translateY(-1px);
}

.pager-next {
  align-items: flex-end;
  text-align: right;
}

.pager-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
}

.pager-label svg {
  width: 15px;
  height: 15px;
}

.pager-title {
  font-weight: 600;
  overflow-wrap: break-word;
}

@media (max-width: 559px) {
  .pager {
    grid-template-columns: minmax(0, 1fr);
  }

  .pager-empty {
    display: none;
  }

  .pager-next {
    align-items: flex-start;
    text-align: left;
  }
}

.rail {
  position: sticky;
  top: calc(var(--bar-h) + 12px + env(safe-area-inset-top, 0px) + 24px);
  min-width: 0;
}

.rail-inner {
  max-height: calc(100vh - var(--bar-h) - 72px - env(safe-area-inset-top, 0px));
  padding: 18px 14px 18px 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--r-l);
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 42, 46, 0.2) transparent;
}

.rail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.rail-product {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.rail-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.rail-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.rail-close {
  display: none;
}

.tree,
.tree-pages,
.tree-toc {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tree-group + .tree-group {
  margin-top: 6px;
}

.tree-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  padding: 9px 8px 9px 6px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  transition: background-color 0.2s var(--ease);
}

.tree-toggle:hover {
  background: rgba(255, 255, 255, 0.6);
}

.tree-toggle svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ink-3);
  transition: transform 0.25s var(--ease);
}

.tree-toggle[aria-expanded="false"] svg {
  transform: rotate(-90deg);
}

.tree-pages {
  position: relative;
  margin: 2px 0 6px 11px;
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
}

.tree-link {
  position: relative;
  display: block;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink-2);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.tree-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.tree-link.is-active {
  color: var(--ink);
  font-weight: 600;
  background: #fff;
  box-shadow: 0 6px 14px -10px rgba(12, 52, 56, 0.4);
}

.tree-link.is-active::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}

.tree-toc {
  margin: 4px 0 8px 12px;
  padding-left: 12px;
  border-left: 1px dashed var(--line-strong);
}

.toc-link {
  display: block;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-3);
  transition: color 0.2s var(--ease);
}

.toc-link:hover {
  color: var(--ink);
}

.toc-link.is-active {
  color: var(--accent-ink);
  font-weight: 500;
}

.rail-toggle {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-glass);
  font-weight: 600;
  font-size: 15px;
}

.rail-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(15, 27, 29, 0.22);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fade 0.25s var(--ease);
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@media (max-width: 1023px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail-toggle {
    display: inline-flex;
  }

  .rail {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: min(88vw, 360px);
    padding: calc(10px + env(safe-area-inset-top, 0px)) calc(10px + env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) 0;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }

  .rail-open .rail {
    transform: none;
    visibility: visible;
    transition: transform 0.35s var(--ease), visibility 0s;
  }

  .rail-inner {
    height: 100%;
    max-height: none;
    background: rgba(255, 255, 255, 0.86);
  }

  .rail-close {
    display: inline-grid;
    margin: -8px -6px 0 0;
  }

  .rail-open {
    overflow: hidden;
  }

  .rail-open .page {
    z-index: 80;
  }
}

@media (max-width: 479px) {
  .table-wrap tbody th {
    white-space: normal;
  }

  .table-wrap thead th,
  .table-wrap tbody th,
  .table-wrap td {
    padding: 11px 12px;
  }
}

body[data-view="home"] .footer,
body[data-view="missing"] .footer {
  margin-top: clamp(32px, 6vw, 72px);
}

@media (max-width: 1023px) {
  body[data-view="doc"] .footer {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}
