/* ============================================================
   Staff sign-in picker (/staff). Built from design-system components; this
   sheet only places them. Structure in @layer layout, paint in @layer design.

   The public landing shell (.page) already owns the page width and gutter, so
   the app-screen root fills it instead of taking the participant phone
   column, which would collapse the two role groups into one.
   ============================================================ */

@layer layout {
  .app-screen.staff-signin {
    max-width: none;
    margin-inline: 0;
    padding: 0;
  }

  .staff-signin header {
    display: grid;
    gap: var(--t-space-2);
  }

  .staff-signin .seal {
    max-inline-size: 6rem;
    block-size: auto;
  }

  .staff-signin nav {
    display: grid;
    gap: var(--t-space-3);
  }

  .staff-signin .groups {
    display: grid;
    gap: var(--t-space-6);
  }

  .staff-signin .groups > section {
    display: grid;
    gap: var(--t-space-2);
    align-content: start;
    min-inline-size: 0;
  }

  /* Role rows: the base drew plain rows with a rule above the list and under
     each row, and the row itself was the link. The list sets no inline
     padding, so the names start at the section's edge, and the link carries
     the row's height so a tap anywhere on the row follows it. */
  .staff-signin .rows { border-block-start-width: var(--t-border-width-interactive); }
  .staff-signin .rows > .row { padding: 0; }
  .staff-signin .rows > .row:last-child {
    border-block-end-width: var(--t-border-width-interactive);
  }
  .staff-signin .rows a.main { padding-block: var(--t-space-3); }

  @media (min-width: 48rem) {
    .staff-signin .groups {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

@layer design {
  .staff-signin .rows { border-block-start-style: solid; border-block-start-color: var(--t-border); }
}
