/* Templacity Hall, the request board (/requests/).
 *
 * Ported from the founder-approved mock
 * Templacity-cofounder/.audit/request-board-design-2026-09-18.html (yes, 2026-09-19).
 * Every class is rb- prefixed: the mock's .chip, .status and .row collide with
 * existing theme rules. Its own sheet so the page ships without touching
 * theme.css, which every terminal edits. Gold and green are theme tokens
 * (--gold, --ship), blessed 2026-09-19.
 */

.rb { --rb-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }

/* ---- hero ---- */
.rb-hero { padding: var(--page-top) 0 8px; }
.rb-hero .rb-center { max-width: 760px; margin: 0 auto; text-align: center; }
.rb-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.02em; line-height: 1.02; margin: 14px 0 0;
}
.rb-hero .rb-tagline {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--ink-muted); margin: 10px 0 0;
}
.rb-hero .rb-sub { margin: 20px auto 0; color: var(--ink-muted); max-width: 52ch; font-size: 17px; }
.rb-hero .rb-cta { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 720px) {
  .rb-hero .rb-center { text-align: left; max-width: none; }
  .rb-hero h1 { font-size: clamp(34px, 9vw, 44px); margin-top: 10px; }
  .rb-hero .rb-tagline { font-size: 19px; }
  .rb-hero .rb-sub { margin-top: 14px; font-size: 15.5px; max-width: none; }
  .rb-hero .rb-cta { justify-content: flex-start; }
}

/* ---- notice (after posting, errors) ---- */
.rb-notice {
  max-width: 1024px; margin: 28px auto 0;
  background: var(--paper-soft); border: 1px solid var(--rule-soft);
  border-radius: var(--radius); padding: 14px 18px; font-size: 14.5px;
}
.rb-notice.is-error { border-color: var(--ink); }

/* ---- shipped rail ---- */
.rb-rail { padding: 56px 0 0; }
.rb-rail-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  max-width: 1024px; margin: 0 auto 18px;
}
.rb-rail-head .rb-note { font-size: 13px; color: var(--ink-muted); }
.rb-rail-grid { max-width: 1024px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rb-ship {
  background: var(--paper-soft); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; min-width: 0;
}
.rb-ship-art {
  border-radius: var(--radius-sm); background: var(--paper);
  border: 1px solid var(--rule-soft); margin-bottom: 16px; overflow: hidden; aspect-ratio: 2 / 1;
}
.rb-ship-art img { width: 100%; height: 100%; object-fit: cover; }
.rb-ship-hub { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.rb-ship-name { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; margin: 0 0 6px; }
.rb-ship-origin { font-size: 14px; color: var(--ink-muted); margin: 0 0 18px; line-height: 1.5; }
.rb-ship-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--rule); margin-top: auto;
}
.rb-ship-price { font-size: 14px; font-variant-numeric: tabular-nums; }
.rb-ship-buy {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper-soft);
  border-radius: 10px; padding: 10px 16px;
  font-family: var(--rb-ui); font-size: 13px; font-weight: 500; line-height: 1;
  transition: background var(--dur-fast) ease;
}
.rb-ship-buy:hover { background: var(--ink-hover); }
@media (max-width: 860px) {
  .rb-rail-grid {
    display: flex; overflow-x: auto; gap: 14px;
    margin: 0 calc(-1 * var(--wrap-pad-sm)); padding: 0 var(--wrap-pad-sm) 8px;
    scrollbar-width: none;
  }
  .rb-rail-grid::-webkit-scrollbar { display: none; }
  .rb-ship { flex: 0 0 280px; }
}

/* ---- chips (device picker, filters) ---- */
.rb-chip {
  border: 1px solid var(--rule); background: transparent; color: var(--ink-muted);
  border-radius: var(--radius); padding: 9px 16px; font-size: 14px;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.rb-chip:hover { border-color: var(--ink-muted); color: var(--ink); }
.rb-chip.is-active,
.rb-chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper-soft); }
.rb-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rb-chip:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---- composer ---- */
.rb-composer-zone { padding: var(--section-gap) 0 0; }
.rb-composer { max-width: 1024px; margin: 0 auto; background: var(--paper-soft); border-radius: var(--radius-lg); padding: 32px; }
.rb-composer h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.005em; margin: 4px 0 18px; }
.rb-title-field {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px;
  background: var(--paper); border: 1px solid var(--rule-soft);
  border-radius: var(--radius); padding: 6px 6px 6px 18px;
}
.rb-title-field:focus-within { border-color: var(--ink-muted); }
.rb-title-field svg { width: 18px; height: 18px; color: var(--ink-muted); }
.rb-title-field input {
  border: 0; background: transparent; color: var(--ink); font: inherit;
  font-size: 15.5px; padding: 14px 0; width: 100%; outline: none; min-width: 0;
}
.rb-detail {
  display: block; width: 100%; margin-top: 12px; min-height: 84px; resize: vertical;
  background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--radius);
  padding: 14px 18px; font: inherit; font-size: 15px; color: var(--ink);
}
.rb-detail:focus { outline: none; border-color: var(--ink-muted); }
.rb-pick-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin: 18px 0 10px; font-weight: 500; }
.rb-device-pick { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.rb-dedupe {
  margin-top: 20px; background: var(--paper); border: 1px solid var(--rule-soft);
  border-radius: var(--radius); padding: 16px 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
}
.rb-dedupe[hidden] { display: none; }
.rb-dedupe-lead { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; margin-bottom: 6px; }
.rb-dedupe-name { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.rb-dedupe-meta { font-size: 13px; color: var(--ink-muted); margin-top: 3px; }
.rb-dedupe .btn-ghost { padding: 10px 16px; font-size: 13px; white-space: nowrap; }
.rb-turnstile { margin-top: 18px; min-height: 65px; }
.rb-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.rb-promise { font-size: 13px; color: var(--ink-muted); }
.rb-signin { font-size: 14.5px; color: var(--ink-muted); margin: 0; }
.rb-signin a { color: var(--ink); border-bottom: 1px solid var(--rule); }
@media (max-width: 720px) {
  .rb-composer { padding: 22px 18px; border-radius: var(--radius); }
  .rb-dedupe { grid-template-columns: 1fr; }
  .rb-foot-row { flex-direction: column-reverse; align-items: stretch; }
  .rb-foot-row .btn { justify-content: center; }
  .rb-promise { text-align: center; }
}

/* ---- board toolbar ---- */
.rb-main { padding: var(--section-gap) 0 120px; }
.rb-col { max-width: 1024px; margin: 0 auto; }
.rb-toolbar { border-bottom: 1px solid var(--rule-soft); padding-bottom: 20px; margin-bottom: 8px; }
.rb-top-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rb-sort { display: inline-flex; background: var(--paper-soft); border-radius: var(--radius); padding: 4px; gap: 2px; }
.rb-seg {
  border: 0; background: transparent; color: var(--ink-muted);
  font-family: var(--rb-ui); font-size: 13.5px; font-weight: 500;
  padding: 8px 18px; border-radius: 9px;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.rb-seg.is-active { background: var(--ink); color: var(--paper-soft); }
.rb-count { font-size: 13px; color: var(--ink-muted); }
.rb-filters { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.rb-filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rb-flabel {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500; margin-right: 6px; min-width: 52px;
}
.rb-filter-row .rb-chip { padding: 7px 14px; font-size: 13px; }
@media (max-width: 720px) {
  .rb-filter-row {
    flex-wrap: nowrap; overflow-x: auto;
    margin: 0 calc(-1 * var(--wrap-pad-sm)); padding: 2px var(--wrap-pad-sm);
    scrollbar-width: none;
  }
  .rb-filter-row::-webkit-scrollbar { display: none; }
  .rb-filter-row .rb-chip, .rb-flabel { flex: 0 0 auto; }
  .rb-flabel { min-width: 0; }
}

/* ---- request cards ---- */
.rb-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.rb-empty { color: var(--ink-muted); font-size: 15px; padding: 24px 0; }
.rb-card {
  background: var(--paper-soft); border-radius: var(--radius);
  padding: 24px; position: relative; scroll-margin-top: 110px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 32px;
}
.rb-card[hidden] { display: none; }
.rb-card:target { box-shadow: 0 0 0 2px var(--ink-muted); }
.rb-body { min-width: 0; }
.rb-title { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; letter-spacing: -0.005em; margin: 0 0 6px; }
.rb-blurb { font-size: 14.5px; color: var(--ink-muted); line-height: 1.55; margin: 0 0 14px; max-width: 58ch; }
.rb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--ink-muted); }
.rb-meta.is-wide { grid-column: 1 / -1; }
.rb-dot { width: 3px; height: 3px; background: var(--ink-faint); border-radius: 50%; }
.rb-dev {
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted); border: 1px solid var(--rule-soft);
  border-radius: 999px; padding: 3px 10px; font-weight: 500;
}
.rb-status-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; }
.rb-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--rb-ui); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.rb-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.rb-status.is-considering { background: var(--paper); color: var(--ink-muted); border: 1px solid var(--rule-soft); }
.rb-status.is-approved    { background: var(--ink); color: var(--paper-soft); }
.rb-status.is-planned     { background: var(--paper); color: var(--ink); border: 1px solid var(--rule); }
.rb-status.is-building    { background: var(--ship-soft); color: var(--ship); }
.rb-status.is-shipped     { background: var(--ship); color: var(--paper-soft); }
.rb-status.is-notplanned  { background: transparent; color: var(--ink-faint); border: 1px solid var(--rule-soft); }
.rb-why { font-size: 13px; color: var(--ink-muted); }

/* vote column */
.rb-vote-col { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 14px; text-align: right; }
.rb-vote {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink-muted); border-radius: var(--radius);
  padding: 11px 18px; font-family: var(--rb-ui);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: border-color var(--dur-fast) ease, transform var(--dur-fast) ease, background var(--dur-fast) ease;
}
.rb-vote:hover { border-color: var(--ink); transform: translateY(-1px); }
.rb-vote svg { width: 14px; height: 14px; }
.rb-vote .rb-n { font-variant-numeric: tabular-nums; }
.rb-vote .rb-ic-backed { display: none; }
.rb-vote.is-backed { background: var(--ink); color: var(--paper-soft); border-color: var(--ink); }
.rb-vote.is-backed .rb-ic-back { display: none; }
.rb-vote.is-backed .rb-ic-backed { display: block; }
.rb-vote[aria-busy="true"] { opacity: .7; }
.rb-split { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; }
.rb-buyer {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold-soft); color: var(--gold);
  font-family: var(--rb-ui); font-size: 11.5px; font-weight: 600;
  border-radius: 999px; padding: 3px 10px;
}
.rb-buyer svg { width: 11px; height: 11px; }
.rb-early { font-size: 12.5px; color: var(--ink-faint); font-style: italic; font-family: var(--serif); }
.rb-tem-mark {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--paper-soft);
  font-family: var(--rb-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; border-radius: 999px; padding: 4px 11px;
}
.rb-tem-mark svg { width: 11px; height: 11px; }

/* the official Templacity reply: the ink panel is the brand treatment */
.rb-reply {
  background: var(--ink); color: var(--paper-soft);
  border-radius: var(--radius); padding: 18px 20px; margin: 4px 0 16px; grid-column: 1 / -1;
}
.rb-reply-who {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  font-family: var(--rb-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.rb-reply-who svg { width: 13px; height: 13px; }
.rb-reply-pin, .rb-reply-when { font-weight: 500; letter-spacing: 0.02em; text-transform: none; font-size: 12px; opacity: .6; }
.rb-reply-when { margin-left: auto; }
.rb-reply p { margin: 0; font-size: 14.5px; line-height: 1.6; opacity: .92; max-width: 70ch; }

/* committed: the whole card changes state */
.rb-card.is-committed { border: 2px solid var(--ink); padding-top: 0; overflow: hidden; }
.rb-bench {
  grid-column: 1 / -1; margin: 0 -24px 18px;
  background: var(--ink); color: var(--paper-soft);
  display: flex; align-items: center; gap: 8px; padding: 9px 24px;
  font-family: var(--rb-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.rb-bench svg { width: 13px; height: 13px; flex: 0 0 auto; }
.rb-bench-since { margin-left: auto; font-weight: 500; letter-spacing: 0.02em; text-transform: none; opacity: .6; font-size: 12px; white-space: nowrap; }

/* fund-or-wait */
.rb-fund {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px 28px;
  background: var(--paper); border: 1px solid var(--rule-soft);
  border-radius: var(--radius); padding: 16px 18px; margin-top: 4px;
}
.rb-fund .btn { white-space: nowrap; }
.rb-wait-label { font-size: 13px; color: var(--ink-muted); margin-bottom: 8px; }
.rb-wait-label strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rb-meter { height: 6px; background: var(--rule-soft); border-radius: 999px; overflow: hidden; }
.rb-meter span { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.rb-fund-fine { grid-column: 1 / -1; font-size: 12px; color: var(--ink-faint); margin-top: -4px; }
@media (max-width: 720px) {
  .rb-fund { grid-template-columns: 1fr; }
  .rb-fund .btn { justify-content: center; white-space: normal; text-align: center; }
}

.rb-ship-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--rb-ui); font-size: 13.5px; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 2px;
  transition: border-color var(--dur-fast) ease;
}
.rb-ship-link:hover { border-color: var(--ink); }

@media (max-width: 720px) {
  .rb-card { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; gap: 10px; }
  .rb-card.is-committed { padding-top: 0; }
  .rb-bench { margin: 0 -18px 16px; padding: 9px 18px; }
  .rb-title { font-size: 21px; }
  .rb-vote-col {
    flex-direction: row-reverse; align-items: center; justify-content: space-between; flex-wrap: wrap;
    text-align: left; border-top: 1px solid var(--rule-soft); padding-top: 14px; margin-top: 4px;
  }
  .rb-reply { padding: 16px; }
}

/* ---- closing rules ---- */
.rb-rules {
  max-width: 1024px; margin: 56px auto 0;
  border-top: 1px solid var(--rule-soft); padding-top: 24px;
  font-size: 13.5px; color: var(--ink-muted); line-height: 1.6;
}
.rb-rules p { margin: 0 0 6px; max-width: 78ch; }
