/* Shared idea pages, the wish wall, and share buttons (also used on /make). */
.share-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .5rem 1rem; border-radius: var(--r-sm); border: var(--edge) solid var(--line-strong);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--surface); color: var(--ink); box-shadow: none;
}
.share-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.share-wa { background: #25d366; color: #04210f; }
.share-x { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.share-li { background: #0a66c2; color: var(--on-primary); }
.share-native { background: var(--mint); color: var(--on-mint); }
.share-status { display: block; margin-top: .4rem; word-break: break-all; font-size: .85rem; }

.wish-page { max-width: 46rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.wish-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.wish-top-link { color: var(--ink); font-size: .95rem; }
.eyebrow { margin: 3rem 0 .6rem; color: var(--muted); font-family: var(--font-mono); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }
.wish-quote { font-family: var(--font-twist); font-style: var(--twist-style); font-weight: var(--twist-weight); font-size: clamp(2.3rem, 8vw, 4.4rem); line-height: 1; margin: 0; overflow-wrap: anywhere; }
.wish-card { margin: 1.6rem 0; padding: 1.3rem 1.4rem; }
.wish-card dl:empty { display: none; }
.wish-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.wish-actions .btn { flex: 1 1 15rem; }
.want-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.want-btn .want-count {
  min-width: 2.2em; padding: .1rem .5rem; border-radius: 999px; background: var(--primary); color: var(--on-primary);
  font-variant-numeric: tabular-nums;
}
.want-btn.wanted { background: var(--mint); color: var(--on-mint); }
.want-btn[aria-pressed="true"] .want-icon { animation: pl-wave .6s ease-in-out 1; }
@keyframes pl-wave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-18deg) scale(1.2); } 60% { transform: rotate(12deg); } }
.want-note { margin: 1rem 0 0; color: var(--muted); }
.wish-page .share-row { margin-bottom: 2.5rem; }
.wish-cta { background: var(--surface); color: var(--ink); padding: 1.6rem; margin-top: 1rem; }
.wish-cta .display { font-size: clamp(2rem, 6vw, 3rem); }
.wish-cta em { background: var(--mint); color: var(--on-mint); padding: 0 .2em; }
.wish-cta p { margin: .8rem 0 1.2rem; }

.wall .display { font-size: clamp(2.6rem, 9vw, 4.8rem); margin-top: 2.5rem; }
.wall { padding: 1.6rem 1.5rem 3rem; max-width: 1120px; margin: 0 auto; }
.wall h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: .6rem 0 .3rem; }
.wall-tabs { display: flex; gap: 1.2rem; margin: 1.6rem 0 1rem; }
.wall-tabs a { color: var(--ink); text-decoration: none; font-weight: 700; padding-bottom: .2rem; }
.wall-tabs a[aria-current="page"] { border-bottom: 3px solid var(--line-strong); }
.wall-empty { color: var(--muted); }
.wish-page .card { background: var(--surface); color: var(--ink); border: var(--edge) solid var(--line-strong); border-radius: var(--r); }
@media (prefers-reduced-motion: reduce) {
  .want-btn[aria-pressed="true"] .want-icon { animation: none; }
  .wish-card { transform: none; }
}


/* ---- the wall: many ideas at once, in the same palette as everything else ---- */
.wall .wall-count { margin: .2rem 0 0; color: var(--muted); font-size: .92rem; }
.wall .wall-count strong { color: var(--brand); }
/* ---- bento: one idea per tile, and the tiles are not all the same size ----
   A grid of identical cards says nothing about what matters. The most wanted wish and the ones that
   actually got built take two columns; everything else is a small tile. */
.wall-list {
  list-style: none; margin: 1.2rem 0 0; padding: 0;
  display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  grid-auto-flow: dense;
}
.wish-wide { grid-column: span 2; }
.wish-wide .wish-idea { font-size: 1.3rem; -webkit-line-clamp: 4; }
.wish-tall { grid-row: span 2; }
@media (max-width: 40rem) { .wish-wide { grid-column: span 1; } .wish-tall { grid-row: span 1; } }
.wish {
  display: grid; align-content: start; gap: .45rem; padding: 1rem 1.05rem;
  background: var(--surface-2); border: 1.5px solid var(--hairline); border-radius: var(--r);
}
.wish:hover { border-color: var(--line-strong); }
.wish-idea {
  font-size: 1.02rem; line-height: 1.35; font-weight: 600; color: var(--ink); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.wish-idea:hover { text-decoration: underline; }
.wish-for, .wish-from { margin: 0; font-size: .84rem; line-height: 1.35; color: var(--muted); }
.wish-from a { color: inherit; }
.wish-live {
  justify-self: start; font-size: .82rem; font-weight: 800; color: var(--on-mint);
  background: var(--mint); border-radius: 999px; padding: .25rem .65rem; text-decoration: none;
}
.wish-built { border-color: var(--line-strong); }
.wish-meta { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; }
.wall-list .wish .want-btn.want-small {
  flex-direction: row; min-height: 44px; min-width: 56px; box-shadow: none; justify-content: center;
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px;
  border: 1.5px solid var(--hairline); background: transparent; color: var(--ink);
  font-weight: 800; font-size: .84rem; cursor: pointer;
}
.wall-list .wish .want-btn.want-small[aria-pressed="true"] { background: var(--mint); color: var(--on-mint); border-color: var(--line-strong); }
.wish-remixes { font-size: .8rem; font-weight: 800; color: var(--brand); }
.wish-remix {
  margin-left: auto; font-size: .82rem; font-weight: 800; color: var(--muted);
  text-decoration: none; border-bottom: 1.5px solid transparent; padding-bottom: 1px;
}
.wish:hover .wish-remix { color: var(--brand); border-bottom-color: var(--line-strong); }
.wish-branches { list-style: none; margin: .5rem 0 0; padding: 0 0 0 .7rem; display: grid; gap: .5rem; border-left: 2px solid var(--line-strong); }
.wish-child { background: transparent; border: 0; padding: .1rem 0; }
.wish-child .wish-idea { font-size: .92rem; font-weight: 500; -webkit-line-clamp: 2; }
.wish-branch { color: var(--brand); }
@media (max-width: 640px) { .wall-list { grid-template-columns: 1fr; } }

.wall-list .wish .want-btn .want-text { display: none; }

/* ---- waiting to be built ----
   A wish more than one person wants and nobody has made. On the wall it is a quiet line; on the
   idea page it is the loudest thing there, because that page is where somebody decides. */
.wish-waiting {
  margin: 0; font-size: .8rem; font-weight: 700; line-height: 1.35;
  color: var(--warn);
}
.wish-build { color: var(--warn) !important; border-bottom-color: currentColor !important; }
.build-call {
  margin: 1.4rem 0 0; padding: 1.1rem 1.2rem; display: grid; gap: .5rem; justify-items: start;
  border: var(--edge) solid var(--line-strong); border-radius: var(--r);
  background: var(--surface); color: var(--ink);
  box-shadow: none;
}
.build-call p { margin: 0; }
.build-lead { font-size: 1.05rem; }
.build-done {
  margin: 1.2rem 0 0; font-weight: 700; color: var(--success);
}
.build-done a { color: inherit; }
