/* Brand kit (/brand): a section menu and the zip stay in view beside the
   content. Quiet tokens from shared/base.css. */
.bk-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 96px;
}
.bk-aside {
  position: sticky;
  top: 88px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bk-nav a {
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--body);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.bk-nav a:hover {
  background: var(--surface);
  color: var(--ink);
}
.bk-nav a[aria-current="true"] {
  background: var(--amber-wash);
  color: var(--ink);
}
.bk-zip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.bk-zip b {
  color: var(--ink);
  font-size: 15px;
}
.bk-zip span {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.bk-zip .btn,
.bk-file {
  gap: 8px;
}
.bk svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.bk-main {
  min-width: 0;
}
.bk-main h1 {
  font-size: clamp(34px, 4.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin-bottom: 12px;
}
.bk-main .lead {
  font-size: 18px;
  max-width: 56ch;
}
.bk-main section {
  padding-top: 48px;
  scroll-margin-top: 80px;
}
.bk-main h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 14px;
}
.bk-zip-inline {
  display: none;
}
.bk-note {
  font-size: 15px;
  color: var(--muted);
  margin: -6px 0 14px;
}
.bk-table {
  overflow-x: auto;
}
.bk table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}
.bk th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--hairline);
}
.bk td {
  padding: 10px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: middle;
  color: var(--ink);
}
.bk-sub {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.bk-prev {
  width: 132px;
}
.bk-prev span {
  height: 52px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--hairline);
}
.bk-prev span.is-dark {
  background: var(--ink);
  border-color: var(--ink);
}
.bk-prev img {
  max-height: 28px;
  max-width: 100%;
  width: auto;
}
.bk td.bk-num {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.bk-files {
  white-space: nowrap;
}
.bk-file {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--hairline);
  font-size: 14px;
  margin-right: 6px;
}
.bk-file:hover {
  background: var(--surface);
}
.bk-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.bk-line:first-of-type {
  border-top: 1px solid var(--hairline);
}
.bk-line p {
  flex: 1;
  color: var(--ink);
  font-size: 16px;
}
.bk-line small,
.bk-count {
  display: block;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 13px;
}
/* Copy buttons keep one width, so "Copied" never moves anything. */
.bk-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 96px;
  font: 600 14px var(--font);
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.bk-copy:hover {
  background: var(--surface);
}
.bk-copy .i-check,
.is-copied .i-copy {
  display: none;
}
.is-copied .i-check {
  display: block;
}
.is-copied .i-check {
  color: var(--ok);
}
.bk-seg {
  border: 0;
  min-width: 0;
  display: inline-flex;
  flex-wrap: wrap;
  background: var(--surface);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 12px;
}
.bk-seg button {
  font: 500 14px var(--font);
  border: 0;
  background: none;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
}
.bk-seg button:hover {
  color: var(--ink);
}
.bk-seg button[aria-pressed="true"] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(17 17 19 / 0.08);
}
.bk-panel {
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 20px 22px;
}
/* Every length sits in one grid cell, so switching never changes the
   panel's height. */
.bk-stack {
  display: grid;
}
.bk-desc {
  grid-area: 1 / 1;
  visibility: hidden;
}
.bk-desc.is-on {
  visibility: visible;
}
.bk-desc h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.bk-desc p {
  color: var(--ink);
  font-size: 16px;
}
.bk-panel-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.bk-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bk-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 76px 10px 12px;
  background: var(--white);
  font: 400 15px var(--font);
  color: var(--ink);
  cursor: pointer;
}
.bk-chip:hover {
  background: var(--surface);
}
.bk-chip i {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgb(17 17 19 / 0.1);
  flex-shrink: 0;
}
.bk-chip b {
  font-weight: 600;
}
.bk-chip small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.bk-chip .bk-copy-label {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.12s;
}
.bk-chip:hover .bk-copy-label,
.bk-chip:focus-visible .bk-copy-label,
.bk-chip.is-copied .bk-copy-label {
  opacity: 1;
}
.bk-chip.is-copied .bk-copy-label {
  color: var(--ok);
}
.bk-chip.is-failed .bk-copy-label,
.bk-copy.is-failed .bk-copy-label {
  opacity: 1;
  color: var(--error);
}
.bk-rules {
  padding-left: 20px;
}
.bk-rules li {
  margin: 6px 0;
  color: var(--ink);
  font-size: 16px;
}
@media (max-width: 860px) {
  .bk-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 40px;
  }
  /* The menu and the zip box go; the Logos section carries the zip. */
  .bk-aside {
    display: none;
  }
  .bk-zip-inline {
    display: inline-flex;
    margin-bottom: 16px;
  }
  .bk-chips {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .bk-copy {
    min-width: 0;
  }
  .bk-copy .bk-copy-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}
