/* "Who's visiting?" on the home page (js/who.js): a dialog on a first
   visit, centred like the "What's new" notice (css/header.css), and a
   small pill in the hero that opens it again. */
.who-dlg {
  width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto;
  padding: 26px 28px 20px; margin: auto;
  background: var(--paper-white); color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 16px;
  box-shadow: 7px 7px 0 var(--riso-green);
}
.who-dlg::backdrop { background: rgba(20, 32, 27, 0.45); }
.who-dlg[open] { animation: who-in .28s ease-out; }
@keyframes who-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.who-eyebrow {
  margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--riso-pink-deep);
}
.who-dlg h2 { margin: 6px 0 18px; font-size: clamp(28px, 4.4vw, 38px); line-height: 1.05; letter-spacing: -0.025em; }
.who-dlg h2:focus { outline: none; }
.who-dlg h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--riso-pink); }

/* The answers, set out like a multiple-choice question. */
.who-opts { display: grid; gap: 9px; }
.who-opt {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 11px 14px; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.3; text-align: left;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.who-opt:hover, .who-opt:focus-visible { background: var(--paper-white); box-shadow: 3px 3px 0 var(--riso-pink); transform: translate(-1px, -1px); }
.who-opt:focus-visible, .who-card:focus-visible, .who-link:focus-visible, .who-pill:focus-visible { outline: 2px solid var(--riso-pink-deep); outline-offset: 3px; }
.who-letter {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  border: 1.5px solid var(--ink); background: var(--paper-white);
}
.who-opt:hover .who-letter { background: var(--riso-pink); color: var(--on-brand); }
.who-opts-2 { grid-template-columns: 1fr 1fr; }
.who-opts-2 .who-opt { justify-content: center; font-size: 18px; padding: 16px 14px; }

/* The three places. */
.who-go { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.who-card {
  display: grid; gap: 4px; align-content: start;
  padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--ink); background: var(--paper);
  color: var(--ink); text-decoration: none;
  transition: transform .12s, box-shadow .12s;
}
.who-card:hover, .who-card:focus-visible { box-shadow: 3px 3px 0 var(--riso-green); transform: translate(-1px, -1px); }
.who-card b { font-size: 16px; line-height: 1.25; }
.who-card b span { color: var(--riso-green-deep); }
.who-card > span { font-size: 13.5px; line-height: 1.4; color: var(--ink-dim); }
.who-also { margin: 14px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-dim); }
.who-also a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.who-acts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 16px; }
.who-acts > :only-child { margin-left: auto; }
.who-link {
  border: 0; background: none; padding: 8px 2px;
  font: inherit; font-size: 14px; color: var(--ink-dim);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.who-link:hover { color: var(--ink); }

/* The pill in the hero. The hero's text column lets pointer events through
   to the cell, so the pill takes them back. */
.who-slot { margin-top: 18px; pointer-events: auto; }
.stage-text.has-pill { bottom: max(160px, calc(16vh + 64px)); }
.who-slot[hidden] { display: none; }
.who-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 700;
  border: 1.5px solid var(--ink); background: var(--paper-white); color: var(--ink);
  box-shadow: 3px 3px 0 var(--riso-pink); cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.who-pill:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--riso-pink); }
.who-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--riso-green); }

/* Phones: the dialog rises from the foot of the screen, in reach of a
   thumb, with the cell still in view above it. */
@media (max-width: 620px) {
  .who-dlg {
    margin: auto auto 12px; width: calc(100vw - 20px); max-height: calc(100dvh - 90px);
    padding: 20px 18px 12px; border-radius: 16px; box-shadow: 5px 5px 0 var(--riso-green);
  }
  .who-dlg h2 { margin-bottom: 14px; }
  .who-opt { font-size: 15px; padding: 10px 12px; }
  .who-go { grid-template-columns: 1fr; gap: 8px; }
  .who-card { padding: 11px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .who-dlg[open] { animation: none; }
  .who-opt, .who-card, .who-pill { transition: none; }
}
@media print { .who-dlg, .who-slot { display: none !important; } }
