/* "How TTD works" (/help) and the first-visit welcome on /w and /live. Tokens from ttd-dash.css. */
.hp { width: 100%; max-width: 820px; margin: 0 auto; padding: 24px 16px 64px; box-sizing: border-box; color: var(--text-primary); }
.hp h2 { font-size: 18px; margin: 2px 0 8px; }
.hp ul { margin: 0; padding-left: 18px; line-height: 1.6; font-size: 15px; color: var(--text-secondary); }
.hp li { margin-bottom: 4px; }
.hp li b, .hp p b { color: var(--text-primary); }
.hp code { font-size: 13.5px; padding: 1px 5px; border: 1px solid var(--border); border-radius: 5px; background: var(--page); }

/* the picture */
.hp-map { background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 28px; }
.hp-cap { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.hp-ws { border: 2px solid var(--brand); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.hp-ws.is-personal { border-style: dashed; border-color: var(--border); }
.hp-ws-head, .hp-board-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 15px; }
.hp-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 6px;
  background: var(--brand); color: var(--surface-1); }
.hp-tag.is-b { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.hp-note { font-size: 12.5px; color: var(--text-muted); }
.hp-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.hp-board { background: var(--page); border: 1px solid var(--border); border-radius: 10px; padding: 10px; min-width: 0; }
.hp-board-head { margin-bottom: 8px; font-size: 14px; }
.hp-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hp-tab { font-size: 12.5px; font-weight: 600; padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-secondary);
  background: var(--surface-1); }
.hp-tab.is-on { border-color: var(--brand); color: var(--brand); }
.hp-tab.is-mini { font-size: 12px; padding: 1px 7px; }
.hp-tv { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.45; }
.hp-tv b { color: var(--text-primary); }
.hp-tv-box { flex: none; font-size: 22px; width: 44px; height: 32px; display: grid; place-items: center; border: 2px solid var(--text-muted);
  border-radius: 6px; }
.hp-like { margin: 12px 0 0; font-size: 14px; color: var(--text-secondary); }

/* numbered steps */
.hp-step { display: flex; gap: 14px; margin-bottom: 26px; scroll-margin-top: 80px; }
.hp-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px;
  background: var(--brand); color: var(--surface-1); margin-top: 2px; }
.hp-step > div { min-width: 0; flex: 1; }
.hp-tip { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--brand); background: var(--surface-1); border-radius: 0 8px 8px 0;
  font-size: 14px; color: var(--text-primary); line-height: 1.5; }
.hp-small { font-size: 13px; color: var(--text-muted); margin: 8px 0 0; }
.hp-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 6px; margin: 0 2px; white-space: nowrap; }
.hp-badge.is-draft { background: #fdf0c4; color: #6b4e00; }
.hp-badge.is-pub { background: #d7f3e3; color: #0f5b33; }
.hp-roles { border-collapse: collapse; font-size: 14px; width: 100%; max-width: 560px; }
.hp-roles th, .hp-roles td { padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: center; }
.hp-roles th:first-child, .hp-roles td:first-child { text-align: left; color: var(--text-secondary); }
.hp-roles td:not(:first-child) { font-weight: 700; }

/* mix-ups */
.hp-faq { margin-top: 36px; scroll-margin-top: 80px; }
.hp-faq details { border: 1px solid var(--border); border-radius: 10px; background: var(--surface-1); margin-bottom: 8px; }
.hp-faq summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 15px; }
.hp-faq details p { margin: 0; padding: 0 14px 14px; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }
@media (max-width: 480px) { .hp-step { gap: 10px; } .hp-n { width: 26px; height: 26px; font-size: 13px; } .hp ul { font-size: 14.5px; } }

/* first visit on /w: the welcome card */
.ws-hello { position: relative; background: var(--surface-1); border: 2px solid var(--brand); border-radius: 14px; padding: 16px 16px 14px; margin-bottom: 24px; }
.ws-hello h2 { font-size: 17px; margin: 0 0 4px; padding-right: 28px; }
.ws-hello > p { margin: 0 0 12px; font-size: 14px; color: var(--text-secondary); }
.ws-hello-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.ws-hello-steps li { background: var(--page); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13.5px;
  color: var(--text-secondary); line-height: 1.45; }
.ws-hello-steps b { display: block; color: var(--text-primary); font-size: 14px; margin-bottom: 2px; }
.ws-hello-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ws-hello .ws-x { position: absolute; top: 10px; right: 10px; font-size: 20px; }
.ws-where { margin: -12px 0 18px; font-size: 13.5px; color: var(--text-secondary); }
.ws-where b { color: var(--text-primary); }

/* first visit on /live: one line saying what this screen is */
.live-hint { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 70; width: min(640px, calc(100% - 32px)); box-sizing: border-box;
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-1); color: var(--text-primary);
  border: 2px solid var(--brand); box-shadow: 0 8px 30px rgba(0, 0, 0, .25); font-size: 14px; line-height: 1.45; }
.live-hint p { margin: 0; flex: 1; }
.live-hint a { color: var(--brand); font-weight: 600; }
.live-hint button { flex: none; }
