/* Echo public sheet — Wave 1–3 + UX e-1 */
html, body {
  margin: 0;
  padding: 0;
  background: #050310;
  color: #e8e6f0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  .bond-card { transition: none !important; }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: #16122a;
  color: #e8e6f0;
  border: 1px solid #00f9ff66;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
}
.skip-link:focus {
  left: 0.75rem;
}

/* Top brand bar */
.sheet-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0;
}
.sheet-brand {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #c8e8ff;
  text-decoration: none;
}
.sheet-brand:hover,
.sheet-brand:focus-visible {
  color: #9ef;
  outline: none;
}
.sheet-top__meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6a6385;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}
.kind {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #9b93b8;
}
h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0.35rem 0 0.75rem;
  line-height: 1.25;
}
.badges { margin-bottom: 0.5rem; }
.identity {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  align-items: start;
  margin: 1rem 0 1.5rem;
}
@media (max-width: 520px) {
  .identity { grid-template-columns: 1fr; }
  h1 { font-size: 1.45rem; }
}
.visage {
  width: 7rem;
  height: 7rem;
  border-radius: 12px;
  border: 1px solid #2e2948;
  background: linear-gradient(145deg, #12101f, #0a0814);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6a6385;
  font-size: 0.7rem;
  text-align: center;
  padding: 0.5rem;
  box-sizing: border-box;
  overflow: hidden;
}
.visage--has-img { padding: 0; }
.visage--has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.visage__mono {
  font-size: 1.35rem;
  font-weight: 600;
  color: #bdb6d9;
  letter-spacing: 0.04em;
}
.visage__hint {
  font-size: 0.65rem;
  margin-top: 0.25rem;
  color: #6a6385;
}
.badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #3a3558;
  color: #bdb6d9;
  margin-right: 0.35rem;
}
.badge.verified {
  border-color: #5a9a6a;
  color: #9fd4ad;
}
.summary {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #d0cce0;
  margin: 0.75rem 0;
}
.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  margin: 0.15rem 0.25rem 0.15rem 0;
  border-radius: 6px;
  background: #16122a;
  border: 1px solid #2e2948;
  color: #c4bddc;
}
.tags { margin-top: 0.75rem; }
.meta {
  font-size: 0.9rem;
  color: #a69fbf;
  margin: 0.4rem 0;
}
.label {
  display: inline-block;
  min-width: 6.5rem;
  color: #7d7699;
}
.aliases {
  font-size: 0.9rem;
  color: #9b93b8;
}

/* Identity / actions */
.id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  background: #0e0c18;
  border: 1px solid #2a2540;
  border-radius: 10px;
}
.id-row .id-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7d7699;
}
.id-row code {
  font-size: 0.85rem;
  color: #c8e8ff;
  word-break: break-all;
  flex: 1 1 12rem;
  min-width: 10rem;
  font-variant-ligatures: none;
  letter-spacing: 0.01em;
}
.id-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.btn-action {
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #00f9ff55;
  background: #00f9ff18;
  color: #9ef;
  cursor: pointer;
  font-family: inherit;
  min-height: 2rem;
}
.btn-action:hover { background: #00f9ff33; }
.btn-action:focus-visible {
  outline: 2px solid #00f9ff88;
  outline-offset: 2px;
}
.btn-action.copied {
  border-color: #5a9a6a;
  color: #9fd4ad;
}
.btn-action--secondary {
  border-color: #3a3558;
  background: #16122a;
  color: #c4bddc;
}
.btn-action--secondary:hover {
  border-color: #5a5490;
  background: #1c1830;
}
.id-status {
  flex: 1 1 100%;
  font-size: 0.75rem;
  color: #9fd4ad;
  min-height: 1.1em;
}

/* On-this-page nav */
.sheet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  margin: 1rem 0 0.25rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #1e1a33;
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, #050310 70%, rgba(5, 3, 16, 0.92));
}
.sheet-nav__link {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a8b4ff;
  text-decoration: none;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #2e2948;
  background: #0e0c18;
}
.sheet-nav__link:hover,
.sheet-nav__link:focus-visible {
  border-color: #5a5490;
  color: #e8e6f0;
  outline: none;
}
.sheet-nav__count {
  font-weight: 700;
  color: #9ef;
  margin-left: 0.15rem;
}
.sheet-nav__link--ext {
  margin-left: auto;
  color: #9b93b8;
  font-weight: 500;
}

.pub {
  font-size: 0.85rem;
  color: #8a84a8;
  margin: 0.85rem 0 0;
}

/* Bond sections */
.bond {
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid #1e1a33;
  scroll-margin-top: 3.25rem;
}
.bond:focus { outline: none; }
.bond:focus-visible {
  outline: 2px solid #5a5490;
  outline-offset: 4px;
  border-radius: 8px;
}
.bond__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e0dcff;
  margin: 0 0 0.65rem;
}
.bond__empty {
  font-size: 0.9rem;
  color: #7d7699;
  margin: 0;
  line-height: 1.5;
  max-width: 36rem;
}
.bond__list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Cards */
.bond-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #2a2540;
  background: #0e0c18;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.bond-card:hover {
  border-color: #3d3660;
  background: #141222;
  transform: translateY(-1px);
}
.bond-card:focus-visible {
  outline: 2px solid #00f9ff66;
  outline-offset: 2px;
}
.bond-card__thumb {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #16122a;
  border: 1px solid #2e2948;
}
.bond-card__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6a6385;
}
.bond-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}
.bond-card__name {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e8e6f0;
}
.bond-card__meta {
  font-size: 0.75rem;
  color: #8a84a8;
  text-transform: capitalize;
}
.bond-card__desc {
  font-size: 0.75rem;
  color: #6f688c;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: none;
}
.bond-card__go {
  flex-shrink: 0;
  font-size: 0.95rem;
  color: #6a6385;
  margin-left: 0.15rem;
}
.bond-card:hover .bond-card__go {
  color: #9ef;
}

/* Hard / soft badges */
.bond-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  margin: 0.1rem 0;
  width: fit-content;
}
.bond-card__badge--hard {
  border: 1px solid #00f9ff66;
  color: #9ef;
  background: #00f9ff14;
}
.bond-card__badge--soft {
  border: 1px solid #6a6385;
  color: #9b93b8;
  background: #16122a;
}

/* Progressive disclosure */
.bond__more {
  margin-top: 0.65rem;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #3a3558;
  background: #16122a;
  color: #c4bddc;
  cursor: pointer;
  font-family: inherit;
}
.bond__more:hover {
  border-color: #00f9ff55;
  color: #9ef;
}
.bond__more:focus-visible {
  outline: 2px solid #00f9ff66;
  outline-offset: 2px;
}

/* Footer */
footer {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: #6a6385;
  border-top: 1px solid #1e1a33;
  padding-top: 1rem;
}
.footer__line { margin: 0 0 0.5rem; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
}
.footer__links a {
  color: #a8b4ff;
  text-decoration: none;
}
.footer__links a:hover {
  text-decoration: underline;
}
a { color: #a8b4ff; }

@media (max-width: 520px) {
  .id-row code { font-size: 0.72rem; }
  .sheet-nav__link { font-size: 0.72rem; padding: 0.22rem 0.45rem; }
  .sheet-nav__link--ext { margin-left: 0; }
}

/* Wave 4 — visage + authoring + shared relic cover note */
.visage--has-img img {
  background: #0a0814;
}
.bond-card__thumb--shared-relic {
  opacity: 0.92;
  box-shadow: inset 0 0 0 1px #5a549066;
}
.bond-card--shared-relic-img {
  border-style: dashed;
}
.bond-card__meta--note {
  text-transform: none;
  font-style: italic;
  color: #7d7699;
}
.authoring-cues {
  margin-top: 2rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 12px;
  border: 1px solid #2a2540;
  background: linear-gradient(160deg, #0e0c18 0%, #0a0814 100%);
}
.authoring-cues__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0dcff;
  margin: 0 0 0.4rem;
}
.authoring-cues__lead {
  font-size: 0.85rem;
  color: #8a84a8;
  margin: 0 0 0.75rem;
  line-height: 1.45;
}
.authoring-cues__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.85rem;
  color: #bdb6d9;
  line-height: 1.5;
}
.authoring-cues__list li { margin: 0.45rem 0; }
.authoring-cues__list code {
  font-size: 0.78rem;
  color: #c8e8ff;
  word-break: break-all;
}
.authoring-cues__id {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: #7d7699;
}
.authoring-cues a { color: #a8b4ff; }

/* Wave 5 light facets */
.bond-facets {
  margin: 1.25rem 0 0.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #2a2540;
  background: #0e0c18;
}
.bond-facets__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7d7699;
  margin-bottom: 0.45rem;
}
.bond-facets__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.bond-facet {
  appearance: none;
  border: 1px solid #3a3558;
  background: #16122a;
  color: #c4bddc;
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
}
.bond-facet:hover {
  border-color: #00f9ff55;
  color: #e8e6f0;
}
.bond-facet.is-active {
  border-color: #00f9ff88;
  background: #00f9ff18;
  color: #9ef;
}
.bond-facet--mod {
  border-style: dashed;
}
.bond-facet--clear {
  opacity: 0.9;
}
.bond-facets__status {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: #8a84a8;
  min-height: 1.1em;
}
.bond-facets__empty {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: #9b93b8;
  line-height: 1.45;
}
.bond-facet:focus-visible {
  outline: 2px solid #00f9ff88;
  outline-offset: 2px;
}
