/* Design Public Art — group board (/groups on phones, /groups/screen on the
 * projector). Loaded after dpa.css and uses its tokens, so day and night
 * themes come for free. */

[x-cloak] { display: none !important; }

.g-top { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0 1.25rem; }
.g-brand { font-weight: 900; font-size: 1rem; color: var(--text); text-decoration: none; }
.g-brand span { color: var(--fire); }

.g-h1 { font-size: 1.6rem; font-weight: 900; line-height: 1.15; margin-bottom: 0.5rem; }
.g-lede { color: var(--text-soft); margin-bottom: 1.25rem; }
.g-small { font-size: 0.8rem; color: var(--muted-fg); }
.g-error { color: var(--fire); font-weight: 600; margin-top: 0.75rem; }

.g-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 1rem; margin-bottom: 0.9rem;
}

.g-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted-fg); margin: 0.9rem 0 0.35rem; }
.g-input, .g-select {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 0.8rem;
}
.g-input:focus, .g-select:focus { outline: 2px solid var(--primary-glow); outline-offset: 1px; }

.g-btn {
  display: block; width: 100%; font: inherit; font-weight: 800; font-size: 1.05rem;
  border: 0; border-radius: 12px; padding: 0.95rem 1rem; cursor: pointer; margin-top: 0.75rem;
  background: var(--primary); color: #fff; text-align: center;
}
.g-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.g-btn.is-fire { background: var(--fire); color: var(--on-fire); }
.g-btn.is-ghost { background: none; color: var(--text); border: 1px solid var(--border); }
.g-btn.is-small { display: inline-block; width: auto; font-size: 0.85rem; padding: 0.45rem 0.8rem; margin: 0; }

.g-choice { text-align: left; padding: 1.1rem 1rem; }
.g-choice b { display: block; font-size: 1.15rem; }
.g-choice span { display: block; font-weight: 500; font-size: 0.9rem; opacity: 0.85; }

.g-suggest { list-style: none; border: 1px solid var(--border); border-radius: 10px; margin-top: 0.3rem; overflow: hidden; }
.g-suggest button {
  display: block; width: 100%; text-align: left; font: inherit; color: var(--text);
  background: var(--card); border: 0; border-bottom: 1px solid var(--border); padding: 0.7rem 0.8rem; cursor: pointer;
}
.g-suggest li:last-child button { border-bottom: 0; }

/* Table picker on the phone */
.g-table {
  display: grid; grid-template-columns: auto 1fr auto; gap: 0.25rem 0.75rem; align-items: center;
  width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: var(--card); border: 2px solid var(--border); border-radius: 14px; padding: 0.85rem; margin-bottom: 0.6rem;
}
.g-table.is-picked { border-color: var(--primary-glow); }
.g-table.is-full { opacity: 0.6; }
.g-emoji { font-size: 1.6rem; line-height: 1; }
.g-title { font-weight: 800; }
.g-meta { grid-column: 2 / 4; font-size: 0.85rem; color: var(--text-soft); }
.g-rank {
  min-width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center;
  font-weight: 900; background: var(--muted); color: var(--muted-fg);
}
.g-table.is-picked .g-rank { background: var(--primary); color: #fff; }
.g-help { display: inline-block; font-weight: 700; color: var(--fire); }
.g-seats { font-weight: 700; color: var(--teal); }

.g-seg { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.g-seg button {
  flex: 1; min-width: 3rem; font: inherit; font-weight: 700; color: var(--text); cursor: pointer;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.5rem;
}
.g-seg button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

.g-check { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.9rem; font-weight: 600; }
.g-check input { width: 1.2rem; height: 1.2rem; }

.g-status { font-size: 1.3rem; font-weight: 900; }
.g-mates { margin-top: 0.5rem; color: var(--text-soft); }

/* ---- project pages (/groups/project/) ---- */

a.g-table, a.g-btn { text-decoration: none; }
.p-row .g-meta { grid-column: 2 / 4; }
.p-phase {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--muted); color: var(--muted-fg); white-space: nowrap;
}
.p-phase.is-concept { background: var(--teal); color: var(--on-fire); }
.p-phase.is-design { background: var(--primary); color: #fff; }
.p-phase.is-pitch { background: var(--fire); color: var(--on-fire); }
.p-back { display: inline-block; margin-bottom: 0.5rem; color: var(--text-soft); }
.p-steps { list-style: none; display: flex; gap: 0.3rem; margin: 0.25rem 0 1rem; }
.p-steps li {
  flex: 1; text-align: center; font-size: 0.8rem; font-weight: 700; padding: 0.4rem 0.2rem;
  border-radius: 8px; background: var(--muted); color: var(--muted-fg);
}
.p-steps li.is-now { background: var(--primary); color: #fff; }
.p-members { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.p-members li { display: flex; align-items: center; gap: 0.35rem; }
.p-nav { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; }
.p-nav .p-back { margin: 0; }
.p-apps { display: flex; gap: 0.6rem; }
.p-app { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; min-width: 3.6rem;
  font-size: 0.75rem; font-weight: 800; color: var(--text); text-decoration: none; cursor: pointer; }
.p-app svg { width: 2.75rem; height: 2.75rem; border-radius: 999px; box-shadow: 0 0 0 1px var(--border); }
.p-app.is-off { opacity: 0.4; filter: grayscale(1); font-weight: 600; cursor: default; }
.p-app:focus-visible { outline: 2px solid var(--primary-glow); outline-offset: 3px; border-radius: 8px; }
.p-linkbtn { background: none; border: 0; padding: 0; margin-top: 0.6rem; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.p-pick { display: flex; gap: 0.5rem; margin-top: 0.4rem; }
.p-pick .g-btn { flex: 1; margin: 0; cursor: pointer; position: relative; overflow: hidden; }
.p-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.p-pick label:focus-within { outline: 2px solid currentColor; outline-offset: 2px; }
.p-talk { margin-top: 0.5rem; }
.p-talk .g-btn { margin: 0; }
.p-interim { font-style: italic; margin-top: 0.4rem; min-height: 0; }
.p-interim:empty { margin: 0; }
.p-chosen { border-color: var(--primary-glow); border-width: 2px; }
.p-photo { display: block; width: 100%; max-height: 60vh; object-fit: contain; border-radius: 10px; margin: 0.5rem 0; background: var(--muted); }
.p-desc { color: var(--text-soft); margin: 0.25rem 0; white-space: pre-line; }
.p-h2 { font-size: 1.2rem; font-weight: 900; margin: 1.25rem 0 0.6rem; }
.p-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.p-idea { margin: 0.4rem 0; font-size: 0.9rem; }
.p-idea dt { font-weight: 700; color: var(--muted-fg); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.4rem; }
.p-idea dd { white-space: pre-line; }
.p-older { margin-top: 1.25rem; }
.p-older summary { cursor: pointer; font-weight: 700; color: var(--text-soft); }
.p-older-item { padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
textarea.g-input { resize: vertical; }

/* ---- projector board ---- */

.board-page { padding: 1.5rem 2rem; }
.board-head { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.25rem; }
.board-head h1 { font-size: 2.4rem; font-weight: 900; line-height: 1.05; }
.board-head p { font-size: 1.15rem; color: var(--text-soft); }
.board-qr { margin-left: auto; text-align: center; font-weight: 800; font-size: 1rem; }
.board-qr img { width: 150px; height: 150px; border-radius: 10px; display: block; margin-bottom: 0.3rem; }

.board-pill {
  display: inline-block; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--teal); color: var(--on-fire);
}
.board-pill.is-locked { background: var(--fire); }

.board-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.board-col { background: var(--card); border: 2px solid var(--border); border-radius: 16px; padding: 1rem; }
.board-col.is-help { border-color: var(--fire); }
.board-col.is-flag { border-style: dashed; }
.board-col h2 { font-size: 1.25rem; font-weight: 900; line-height: 1.2; }
.board-col .board-sub { font-size: 0.95rem; color: var(--text-soft); margin: 0.2rem 0 0.5rem; }
.board-ask { font-weight: 800; color: var(--fire); margin-bottom: 0.5rem; }
.board-names { list-style: none; font-size: 1.15rem; font-weight: 700; }
.board-names li { padding: 0.2rem 0; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.board-lead { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-fg); }
.board-names .is-empty { color: var(--muted-fg); font-weight: 500; }
.board-left { margin-top: 0.5rem; font-weight: 800; color: var(--teal); }
.board-flag { margin-top: 0.5rem; font-weight: 800; color: var(--fire); }

.board-waiting { margin-top: 1.5rem; }
.board-waiting h2 { font-size: 1.3rem; font-weight: 900; margin-bottom: 0.5rem; }
.board-waiting ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.board-waiting li { background: var(--muted); border-radius: 999px; padding: 0.35rem 0.85rem; font-weight: 700; }

.host-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0 0 1.25rem;
  padding: 0.75rem; border: 1px dashed var(--border); border-radius: 12px; }
.host-bar .g-select, .host-bar .g-input { width: auto; font-size: 0.9rem; padding: 0.4rem 0.6rem; }
.host-mini { font: inherit; font-size: 0.75rem; cursor: pointer; background: none; color: var(--muted-fg);
  border: 1px solid var(--border); border-radius: 8px; padding: 0.1rem 0.4rem; }
.host-mini:hover { color: var(--fire); border-color: var(--fire); }
.host-move { font: inherit; font-size: 0.75rem; max-width: 9rem; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; }
.host-flags { margin-bottom: 1rem; font-weight: 700; color: var(--fire); }
.host-flags li { margin-left: 1.2rem; }

@media (max-width: 700px) {
  .board-page { padding: 1rem; }
  .board-head { flex-wrap: wrap; }
  .board-head h1 { font-size: 1.6rem; }
  .board-qr { margin-left: 0; }
}
