/* ===== /token page — inline TOC, table wrapper, TBD marker =====
   Layout, typography, colours and the central .policy__wrapper column come
   from the site CSS (.policy + .user-content). Everything below is
   additive only — no overrides of the policy chrome. */

/* Inline TOC at the start of the article. Plain list, no chrome. */
.token-toc {
  margin: 0 0 2.5rem;
}

.token-toc__title {
  margin: 0 0 0.5rem;
  font-family: 'ONYTrack', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(151, 152, 173, 1);
}

.user-content .token-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'ONYOne', sans-serif;
}

.user-content .token-toc__list li {
  margin: 0.125rem 0;
  padding: 0;
  background: none;
}

.user-content .token-toc__list li::before { content: none; display: none; }

.user-content .token-toc__list a { line-height: 1.6; }

/* Tables — wrap to allow horizontal scroll on narrow viewports without
   pushing the column wider than the article. */
.token-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.token-table table { min-width: 36rem; }

.user-content .token-table th,
.user-content .token-table td {
  padding-right: 1.25rem;
  white-space: nowrap;
}

.user-content .token-table th:last-child,
.user-content .token-table td:last-child { padding-right: 0; }

/* TBD placeholders for unfilled spots in the source doc. */
.tbd {
  color: rgba(151, 152, 173, 0.85);
  font-style: italic;
  border-bottom: 1px dotted rgba(151, 152, 173, 0.4);
}

/* Scroll-margin so anchor jumps don't sit under the sticky header. */
.user-content h3,
.user-content h4 { scroll-margin-top: 7rem; }

/* Mobile / tablet: .policy is display:flex; flex-direction:column. The
   default min-width:auto on flex items lets wide content (long h3 text,
   tables) push the article column past the viewport width. Constrain
   children of .policy__wrapper to the available width. */
@media (max-width: 1023px) {
  .policy__wrapper > * { min-width: 0; max-width: 100%; }
  .user-content { width: 100%; }
}
