/* pkrcalc · Binance code card, setup notes, sticky contents (2026-11-07) */
.pkc-bn {
  margin-top: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  scroll-margin-top: 12px;
}

.pkc-bn__bar {
  margin: 0;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  background: var(--acid);
  border-bottom: 1px solid var(--ink);
  font: 750 10px/1.2 "Space Grotesk Variable", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pkc-bn__body {
  padding: 13px 14px 14px;
  display: grid;
  gap: 10px;
}

.pkc-bn__title {
  margin: 0;
  font: 700 19px/1.15 "Space Grotesk Variable", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
  letter-spacing: -0.02em;
}

.pkc-bn__perk {
  margin: 0;
  padding-left: 9px;
  color: var(--ink-2);
  border-left: 3px solid var(--coral);
  font-size: 13px;
  font-weight: 750;
}

.pkc-bn__code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  background: #f1f2e5;
  border: 1px dashed var(--line-dark);
}

.pkc-bn__code strong {
  padding: 8px 12px;
  align-self: center;
  font: 700 24px/1 "Space Grotesk Variable", monospace;
  letter-spacing: 0.12em;
}

.pkc-bn__code button {
  min-height: 44px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 800;
  background: var(--paper);
  border: 0;
  border-left: 1px dashed var(--line-dark);
}

.pkc-bn__code button:hover,
.pkc-bn__code button:focus-visible {
  background: var(--acid);
}

.pkc-bn__status {
  grid-column: 1 / -1;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  border-top: 1px dashed var(--line-dark);
}

.pkc-bn__status:empty {
  display: none;
}

.pkc-bn__go {
  min-height: 52px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.pkc-bn__go:hover,
.pkc-bn__go:focus-visible {
  color: var(--ink);
  background: var(--acid);
}

.pkc-bn__note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

/* setup notes under the homepage card */
.pkc-first {
  margin: 14px 0 16px;
  display: grid;
  background: var(--paper);
  border: 1px solid var(--ink);
}

.pkc-first__k {
  margin: 0;
  padding: 8px 12px;
  color: var(--ink-2);
  background: #eef0cc;
  border-bottom: 1px solid var(--line);
  font: 750 10px/1.2 "Space Grotesk Variable", sans-serif;
  letter-spacing: 0.14em;
}

.pkc-first__h {
  margin: 0;
  padding: 10px 12px 8px;
  font: 700 15px/1.2 "Space Grotesk Variable", "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

.pkc-first__item {
  min-height: 52px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 6px;
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.pkc-first__item:hover,
.pkc-first__item:focus-visible {
  background: #f0f1df;
}

.pkc-first__n {
  font: 700 12px/1.5 "Space Grotesk Variable", monospace;
  color: var(--muted);
}

.pkc-first__t strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.pkc-first__t small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

/* article lead card: wide layout on desktop */
@media (min-width: 821px) {
  .pkc-lead .pkc-bn__body {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    grid-template-areas:
      "t c"
      "p g"
      "n g";
    align-items: center;
    column-gap: 28px;
    padding: 16px 20px 18px;
  }

  .pkc-lead .pkc-bn__title { grid-area: t; font-size: 22px; }
  .pkc-lead .pkc-bn__perk { grid-area: p; }
  .pkc-lead .pkc-bn__note { grid-area: n; }
  .pkc-lead .pkc-bn__code { grid-area: c; }
  .pkc-lead .pkc-bn__go { grid-area: g; align-self: start; }
}

@media (max-width: 620px) {
  .pkc-lead .page-hero {
    padding: 18px 16px;
  }

  .pkc-lead .page-hero h1 {
    margin: 8px 0;
    font-size: clamp(28px, 8.4vw, 34px);
    line-height: 1.04;
  }

  .pkc-lead .page-hero > p:last-child {
    font-size: 13px;
  }

  .pkc-lead .pkc-bn {
    margin-top: 12px;
  }
}

/* sticky contents sidebar (articles that already carry an on-page contents list) */
.pkc-toc {
  border-bottom: 1px solid var(--line);
}

.pkc-toc__nav {
  padding: 16px 18px;
}

.pkc-toc__h {
  margin: 0 0 8px;
  color: var(--muted);
  font: 750 10px/1.2 "Space Grotesk Variable", sans-serif;
  letter-spacing: 0.14em;
}

.pkc-toc__nav ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  list-style: none;
}

.pkc-toc__nav a {
  padding: 6px 8px;
  display: block;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  border-left: 2px solid transparent;
}

.pkc-toc__nav a:hover,
.pkc-toc__nav a:focus-visible,
.pkc-toc__nav a.pkc-on {
  background: #f0f1df;
  border-left-color: var(--acid-strong);
}

.pkc-toc__nav a.pkc-on {
  font-weight: 750;
}

@media (min-width: 1024px) {
  .pkc-split {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    align-items: stretch;
  }

  .pkc-toc {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .pkc-toc__nav {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .pkc-split [data-editorial-body] {
    grid-template-columns: minmax(0, 1fr);
  }

  .pkc-split [data-editorial-body] h2[id] {
    scroll-margin-top: 12px;
  }
}
