/* "How to use" guides as approved (2026-10-12): the "How to use VerticalSmarts" / "How to use Bad Lucy" canvases.
   Sizes and colours copied from their vs-theme.css / bl-theme.css and the design-system bundles (Card, Badge,
   StatusPill, Button), using theme.css tokens. Boards are 1280 wide; narrower screens stack (16px gutters on phones). */

/* ---------- page frame ---------- */
body.th main.guide { padding: 24px 80px 48px; gap: 32px; }
body.th main.guide.g-select { padding-top: 56px; }
.g-head { display: flex; flex-direction: column; gap: 12px; }
.g-measure { max-width: 760px; }
body.th .guide p { margin: 0; }
.g-sec { display: flex; flex-direction: column; gap: 16px; }
.g-sec.g-not { gap: 12px; }
.g-not ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.guide, .g-start { overflow-wrap: break-word; }

/* ---------- type ---------- */
body.th-vs .g-h1 { font: 800 38px/1.15 var(--font-display); }
body.th-bl .g-h1 { font: 700 28px/1.15 var(--font-heading); font-optical-sizing: auto; }
body.th-bl .g-h1.g-h1-select { font: 800 38px/1.1 var(--font-display); }
body.th-vs .g-h2 { font: 700 24px/1.15 var(--font-display); margin: 0; }
body.th-bl .g-h2 { font: 700 22px/1.2 var(--font-heading); font-optical-sizing: auto; margin: 0; }
body.th-vs .g-h3, body.th-vs .g-card-title { font: 700 18px/1.15 var(--font-display); margin: 0; }
body.th-bl .g-card h3 { font: 700 18px/1.25 var(--font-heading); font-optical-sizing: auto; margin: 0 0 6px; }
body.th .g-link { min-height: 44px; display: inline-flex; align-items: center; }
body.th .g-go { font-weight: 600; }

/* ---------- breadcrumb ---------- */
.g-crumb { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center; }

/* ---------- Select your role ---------- */
.g-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
body.th-vs .card.g-role { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
body.th-vs .g-role > p { flex: 1; }

/* ---------- question cards ---------- */
.g-qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.th .card.g-q { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.g-q-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.g-q-row > p { font-weight: 500; min-width: 0; }
.g-q-row > span { flex-shrink: 0; }

/* "In the app": VerticalSmarts Badge (verified) / Bad Lucy StatusPill (verified). "Coming": VerticalSmarts pill / StatusPill (reported). */
.g-badge { display: inline-flex; align-items: center; justify-content: center; font: 600 12px/16px var(--font-sans); letter-spacing: .04em; white-space: nowrap; border-radius: 9999px; }
body.th-vs .g-badge.g-ok { padding: 2px 8px; background: var(--ok-bg); color: var(--ok); }
body.th-bl .g-badge { gap: 6px; padding: 4px 10px; }
body.th-bl .g-badge.g-ok { background: var(--ok-bg); color: var(--ok); }
body.th-bl .g-badge.g-coming { background: transparent; color: var(--text-secondary); border: 1px dashed var(--border-solid); }
.g-dot { width: 6px; height: 6px; border-radius: 9999px; background: currentColor; }
body.th .pill.g-pill { white-space: nowrap; }

/* ---------- E5 answer cards (approved 2026-10-27, 03 §40; board Preview-E5-AnswerCards): members only ---------- */
.g-qhead { display: flex; flex-direction: column; gap: 6px; }
.g-key { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.g-key > span { display: inline-flex; align-items: center; gap: 6px; }
body.th .pill.g-st { white-space: nowrap; }
body.th .pill.g-st-ans { border-color: var(--ok); color: var(--text-primary); }
body.th .pill.g-st-part { border-color: var(--acc); color: var(--text-primary); }
body.th .pill.g-st-none { border-style: dashed; }
.g-cover > summary { list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.g-cover > summary::-webkit-details-marker { display: none; }
.g-parts { margin: 0; padding: 0; list-style: none; }
.g-parts > li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--border-solid); }
.g-part-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; }
body.th .g-cover > p { margin: 8px 0 0; }
.g-more { max-width: 980px; gap: 8px; }
.g-more-list { margin: 0; padding: 0; list-style: none; }
.g-more-list > li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--border-solid); }
.g-more-list > li[hidden] { display: none; }
.g-more-list > li > .sm { flex: 1 1 520px; min-width: 0; }
body.th .g-linkbtn { align-self: flex-start; min-height: 44px; background: none; border: 0; padding: 0; color: var(--acc); font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ---------- "where" cards (VerticalSmarts Card / Bad Lucy Card) ---------- */
.g-where { display: grid; gap: 12px; }
.g-where.g-cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-where.g-cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-card { background: var(--bg-surface); border: 1px solid var(--border-solid); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 16px; color: var(--text-primary); min-width: 0; }
body.th-vs .g-card-title { margin: 0 0 8px; }
body.th .g-card-meta { font: 600 12px/16px var(--font-sans); letter-spacing: .04em; color: var(--text-secondary); margin: 0 0 8px; }
body.th-bl .g-card p { font-size: 14px; line-height: 20px; color: var(--text-secondary); }

/* ---------- footer bar and the sign-in ending ---------- */
.g-foot { position: relative; }
body.th-vs .g-foot { background: #161e2e; border-top: 1px solid #1e293b; color: #8a99ad; }
body.th-bl .g-foot { background: #12151e; border-top: 1px solid #1b1f2d; color: #8b929e; }
.g-foot .g-in { max-width: 1280px; margin: 0 auto; padding: 12px 80px; box-sizing: border-box; }
.g-select ~ .g-foot .g-in { padding-top: 16px; padding-bottom: 16px; }
.g-start { position: relative; max-width: 1280px; margin: 0 auto; padding: 24px 80px 48px; box-sizing: border-box; }
.g-start-box { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
body.th-vs .g-start-box { background: #161e2e; border: 1px solid #1e293b; border-radius: 8px; }
body.th-bl .g-start-box { background: #12151e; border: 1px solid #ef4444; border-radius: 12px; box-shadow: 0 0 12px rgba(239,68,68,0.25); }
.g-start-box p { margin: 0; }
.g-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
body.th .g-btn { font: 600 14px/1 var(--font-sans); border-radius: 8px; padding: 11px 16px; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; border: 1px solid var(--acc); }
body.th .g-btn-primary { background: var(--acc); color: var(--acc-on); }
body.th .g-btn-primary:hover { background: var(--acc-hover); border-color: var(--acc-hover); color: var(--acc-on); }
body.th .g-btn-secondary { background: transparent; color: var(--acc); }
body.th .g-btn-secondary:hover { background: transparent; color: var(--acc-hover); border-color: var(--acc-hover); }
body.th .g-back { align-self: flex-start; }

/* ---------- narrower screens ---------- */
@media (max-width: 1100px) {
  .g-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-where.g-cols3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  body.th main.guide, body.th main.guide.g-select { padding: 24px 16px 40px; }
  .g-foot .g-in, .g-select ~ .g-foot .g-in { padding: 12px 16px; }
  .g-start { padding: 24px 16px 40px; }
  .g-start-box { padding: 24px 20px; }
  .g-qs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .g-roles, .g-where.g-cols2, .g-where.g-cols3 { grid-template-columns: minmax(0, 1fr); }
  .g-q-row { gap: 12px; }
}
