/* Role views (Shawn 2026-10-10: "figure out who the user is before they start exploring").
   The "Who are you here as?" page (/start), the landing's role doors, the role chip in the top menu and the role tab
   in a visitor's phone tab bar. Loaded after app.css by layout.html; app.css is not edited for this. */

/* ---- the chip in the top menu: "Promoter ⇄", tap to switch ---- */
.topnav a.role-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .65rem; border: 1px solid var(--line);
  border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--ink-2); background: var(--paper-2); white-space: nowrap; }
.topnav a.role-chip svg { width: 14px; height: 14px; color: var(--ink-3); }
.topnav a.role-chip:hover { border-color: var(--ink-3); color: var(--ink); }

/* ---- the role tab: last tab in a visitor's phone tab bar ---- */
.guest-tabs .role-tab { color: var(--accent); }
.guest-tabs .role-tab svg { stroke: var(--accent); }

/* ---- /start: four cards ---- */
.start-page { max-width: 1080px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3.5rem) 16px 3rem; }
.start-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
.start-head h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; margin: 0 0 .7rem; letter-spacing: -.02em; }
.start-head .lede { margin: 0 auto; }

.role-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.role-card { position: relative; display: flex; flex-direction: column; gap: .55rem; padding: 1.4rem 1.25rem 1.2rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink-3); }
.role-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.role-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow-sm); }
.role-card.on::after { content: "You're here as this"; position: absolute; top: .9rem; right: .9rem; font-size: .66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.rc-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.rc-icon svg { width: 24px; height: 24px; }
.rc-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.15; margin-top: .3rem; }
.rc-line { color: var(--ink-2); font-size: .95rem; }
.role-card ul { list-style: none; margin: .2rem 0 .4rem; padding: 0; display: grid; gap: .45rem; font-size: .88rem; color: var(--ink-2); line-height: 1.4; }
.role-card li { position: relative; padding-left: 1.1rem; }
.role-card li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rc-go { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--ink); }
.rc-go .arrow { display: inline-block; transition: transform .18s var(--ease); }
.role-card:hover .rc-go .arrow { transform: translateX(3px); }
.rc-fan { background: var(--paper-2); }

.start-foot { text-align: center; color: var(--ink-3); font-size: .9rem; margin: 2rem 0 0; }
.start-foot a { color: var(--accent); font-weight: 600; }

@media (max-width: 960px) { .role-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .role-cards { grid-template-columns: 1fr; gap: .75rem; }
  .role-card { padding: 1.1rem 1rem 1rem; }
  .role-card ul { display: none; }   /* on a phone the name and one line say enough; the list is for the desktop */
  .rc-go { padding-top: .5rem; }
}

/* ---- the landing's role doors ---- */
.role-doors { margin-top: 1.6rem; }
.rd-ask { margin: 0 0 .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.rd-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; max-width: 620px; }
.role-door { display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--ink);
  color: var(--paper); text-decoration: none; border: 2px solid var(--ink); transition: transform .18s var(--ease), background .18s var(--ease); }
.role-door:hover { transform: translateY(-2px); }
.role-door.rd-artist { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.role-door.on { box-shadow: 0 0 0 3px var(--accent-soft); }
.rd-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.15; }
.rd-line { font-size: .85rem; opacity: .85; }
.rd-line .arrow { display: inline-block; transition: transform .18s var(--ease); }
.role-door:hover .rd-line .arrow { transform: translateX(3px); }
.rd-fan { display: inline-block; margin-top: .8rem; font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.rd-fan:hover, .rd-fan.on { color: var(--accent); }

@media (max-width: 720px) {
  .rd-row { grid-template-columns: 1fr; max-width: none; }
  .role-door { flex-direction: row; justify-content: space-between; align-items: baseline; padding: .85rem 1rem; }
  .rd-fan { display: block; text-align: center; }
}
