/* ---- Kest brand layer: logo, X link, contract address ---- */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.wordmark-logo {
  width: 28px;
  height: 28px;
  display: block;
  flex: none;
}
.wordmark span { line-height: 1; }

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-x,
.footer-x {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -.01em;
}
.header-x {
  font-size: 13px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background .18s ease, border-color .18s ease;
}
.header-x:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.footer-x { font-size: 9px; }
.footer-x svg { width: 11px; height: 11px; }

/* ---- contract address ---- */
.ca-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 7px 7px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(239, 237, 231, .7);
}
.ca-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  flex: none;
}
.ca-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: -.01em;
}
.ca-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease;
}
.ca-copy:hover { background: #30312e; }
.ca-copy:active { transform: scale(.96); }
.ca-copy.is-copied { background: #365d49; }
.ca-copy.is-manual { background: #6b5b2f; }

.ca-pill--hero { margin-top: 22px; }

.ca-bar {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 4px;
  display: flex;
  justify-content: center;
}
.ca-bar .ca-pill { max-width: 100%; }

@media (max-width: 850px) {
  .header-right { gap: 12px; }
  .header-x { font-size: 11px; padding: 6px 10px; }
  .header-x span { display: none; }
  .wordmark-logo { width: 24px; height: 24px; }
  .ca-pill { width: 100%; gap: 8px; padding-left: 10px; }
  .ca-value { font-size: 11px; }
  .ca-bar { width: calc(100vw - 30px); }
}
