/* PKR Routebook · route pass (Binance code card), first-read notes, contents rail (2026-11-07) */
.pst-pass {
  container-type: inline-size;
  margin: 22px 0 0;
  scroll-margin-top: 16px;
}

.pst-pass__in {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--ink);
  background: var(--paper-soft);
  box-shadow: 6px 6px 0 var(--cobalt-soft);
}

.pst-pass__stub {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  background: var(--cobalt);
  color: var(--white);
}

.pst-pass__lbl {
  flex: 1 0 100%;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.86;
}

.pst-pass__code {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding-right: 3px;
}

.pst-pass__copy {
  flex: 0 0 auto;
  min-height: 38px;
  margin-left: auto;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.pst-pass__copy:hover,
.pst-pass__copy[data-pst-state="done"] {
  background: var(--white);
  color: var(--cobalt);
}

.pst-pass__main {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 14px 14px 13px;
}

.pst-pass__head {
  margin: 0;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.pst-pass__perk {
  justify-self: start;
  margin: 0;
  padding: 4px 9px;
  border: 1px solid var(--evidence);
  background: var(--evidence-soft);
  color: var(--evidence);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.pst-pass__go {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.pst-pass__go:hover,
.pst-pass__go:focus-visible {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.pst-pass__fine {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

@container (min-width: 480px) {
  .pst-pass__in {
    grid-template-columns: 168px minmax(0, 1fr);
  }

  .pst-pass__stub {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px;
  }

  .pst-pass__lbl {
    flex: 0 0 auto;
  }

  .pst-pass__code {
    font-size: 29px;
  }

  .pst-pass__copy {
    width: 100%;
    margin-left: 0;
  }

  .pst-pass__main {
    padding: 16px 18px 14px;
  }

  .pst-pass__head {
    font-size: 21px;
  }

  .pst-pass__go {
    justify-self: start;
    min-width: 260px;
  }
}

.article-header .pst-pass {
  max-width: 820px;
}

/* first-read notes under the home card */
.pst-read {
  margin: 18px 0 0;
  border-top: 2px solid var(--ink);
}

.pst-read__tag {
  margin: 10px 0 2px;
  color: var(--cobalt);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pst-read__head {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
}

.pst-read__item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 18px;
  gap: 11px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.pst-read__item::after {
  content: "→";
  color: var(--cobalt);
  font-weight: 700;
}

.pst-read__item:hover strong {
  color: var(--cobalt);
}

.pst-read__n {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.pst-read__t strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}

.pst-read__t small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

/* in-article pointers */
.pst-next {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid var(--cobalt);
  background: var(--paper-soft);
  font-size: 16px;
  line-height: 1.6;
}

.pst-next a,
.pst-up {
  color: var(--cobalt);
  font-weight: 700;
}

/* contents: rail on wide screens, one folded line on narrow screens */
.pst-toc-side {
  display: none;
}

.pst-toc-side ol {
  counter-reset: pst-toc;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.pst-toc-side li {
  counter-increment: pst-toc;
  border-top: 1px solid var(--line);
}

.pst-toc-side li:first-child {
  border-top: 0;
}

.pst-toc-side a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  padding: 7px 0 7px 6px;
  border-left: 3px solid transparent;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.4;
  text-decoration: none;
}

.pst-toc-side a::before {
  content: counter(pst-toc, decimal-leading-zero);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.75;
}

.pst-toc-side a:hover {
  color: var(--cobalt);
}

.pst-toc-side a.is-on {
  border-left-color: var(--cobalt);
  color: var(--cobalt);
  font-weight: 700;
}

.pst-toc-fold {
  max-width: 900px;
  margin: 18px 0 0;
  border: 1px solid var(--line-dark);
  background: var(--paper-soft);
}

.pst-toc-fold summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.pst-toc-fold summary::-webkit-details-marker {
  display: none;
}

.pst-toc-fold summary small {
  margin-left: auto;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}

.pst-toc-fold summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  color: var(--cobalt);
}

.pst-toc-fold[open] summary::after {
  content: "−";
}

.pst-toc-fold ol {
  margin: 0;
  padding: 4px 16px 14px 38px;
  border-top: 1px solid var(--line);
}

.pst-toc-fold li {
  margin: 8px 0 0;
}

.pst-toc-fold a {
  color: var(--ink);
  font-weight: 600;
}

.article-section {
  scroll-margin-top: 16px;
}

@media (min-width: 820px) {
  .article-rail .pst-toc-side {
    display: block;
    order: -1;
  }

  .pst-toc-fold {
    display: none;
  }
}

@media (max-width: 600px) {
  /* narrow screens: article/hero first, status rail after it (never above the H1) */
  .pst-has-card,
  .article-shell {
    display: flex;
    flex-direction: column;
  }

  .pst-has-card > .topbar,
  .article-shell > .topbar {
    order: 0;
  }

  .pst-has-card > main,
  .article-shell > main {
    order: 1;
  }

  .pst-has-card > .rail,
  .article-shell > .rail {
    order: 2;
    border-top: 1px solid var(--ink);
  }

  .pst-has-card .hero-copy {
    display: flex;
    flex-direction: column;
  }

  .pst-has-card .hero-copy > .pst-pass {
    order: 1;
  }

  .pst-has-card .hero-copy > .independent-note {
    order: 2;
  }

  .pst-has-card .hero-copy > .pst-read {
    order: 3;
  }

  .pst-head {
    display: flex;
    flex-direction: column;
  }

  .pst-head > h1 {
    order: 0;
  }

  .pst-head > .pst-pass {
    order: 1;
    margin-top: 16px;
  }

  .pst-head > .article-deck {
    order: 2;
  }

  .pst-head > .review-date {
    order: 3;
  }

  .pst-head > .editorial-byline {
    order: 4;
  }

  .pst-pass__in {
    box-shadow: 4px 4px 0 var(--cobalt-soft);
  }

  .pst-has-card .hero-copy > .pst-pass {
    margin-top: 16px;
  }

  .pst-pass__stub {
    padding: 10px 14px;
  }

  .pst-pass__code {
    font-size: 25px;
  }

  .pst-pass__main {
    gap: 8px;
    padding-top: 12px;
  }
}
