/* Equipa técnica (staff_members/index): the season over the title and the
   yellow "Novo membro" (a 44px "+" on a phone); the three tabs; the people
   as a table on a laptop (avatar and name, one line per team role with the
   team's badge first, the licence, the account) and as row lines on a
   phone; the note on where access is managed. */
.staff-head .page-head { align-items: flex-end; margin-bottom: 0; }
.staff-head .eyebrow { margin-bottom: 2px; font-weight: 400; letter-spacing: 0; }
.staff-head h1 { font-size: 1.875rem; letter-spacing: -.02em; }
.staff-tabs { gap: 24px; margin: 20px 0 22px; }
.staff-tabs a { font-size: 15px; }
.staff-table th { padding: 12px 16px; }
.staff-table td { padding: 13px 16px; vertical-align: middle; }
.staff-who { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.staff-who:hover { color: var(--blue); }
.staff-avatar.avatar { width: 34px; height: 34px; font-size: .75rem; }
.staff-role { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.staff-none { color: var(--faint); }
.staff-rows { display: none; }
.staff-rows .row-head ~ small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.staff-foot { margin: 12px var(--space-1) 0; color: var(--faint); font-size: var(--text-small); }
.staff-foot a { color: inherit; text-decoration: underline; }

@media (max-width: 700px) {
  .staff-head .page-head { flex-direction: row; align-items: flex-end; margin-bottom: 0; }
  .staff-head .page-head > :first-child { flex: 1 1 0; }
  .staff-head h1 { font-size: 1.625rem; }
  .staff-head .head-actions { flex: none; width: auto; }
  .staff-head .head-actions > .btn.primary { flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .staff-head .head-actions > .btn.primary span { display: none; }
  .staff-tabs { gap: 20px; margin: 12px calc(-1 * var(--space-4)) 16px; padding: 0 var(--space-4); }
  .staff-tabs a { font-size: var(--text-label); }
  .staff-tabs .tab-name-phone { display: inline; }
  .staff-tabs a:has(.tab-name-phone) .tab-name { display: none; }
  .staff-table { display: none; }
  .staff-rows { display: block; }
  .staff-rows .row-item { flex-wrap: nowrap; gap: var(--space-3); }
  .staff-rows .row-main { flex: 1 1 0; }
  .staff-rows .row-item > svg { display: block; } /* the board keeps each row's chevron on a phone */
  .staff-rows .staff-avatar.avatar { width: 36px; height: 36px; }
}

/* A staff record (staff_members/show): the way back, a 64px navy avatar
   with yellow initials (56 on a phone), the name and the season's duties,
   Editar on the right (a plain link on a phone, where the call and write
   buttons follow). Then three columns, each a grey heading over a white
   sheet: the licence (the strip while it is due, then its facts), the
   teams with their next games, the contacts and account. */
.staff-record .page-head { gap: 12px var(--space-5); margin-bottom: 0; }
.staff-record .page-head-person { gap: 16px; }
.staff-record .avatar.avatar-72 { width: 64px; height: 64px; font-family: inherit; font-size: 1.375rem; font-style: normal; font-weight: 700; }
.staff-record .page-head-meta { gap: 6px 8px; font-size: var(--text-body); }
.staff-calls { display: none; }
.staff-record + .needs-card { margin-top: 28px; }
.staff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; margin-top: 28px; }
.staff-section .section-title h2 { font-size: .75rem; }
.staff-section .section-title a { color: var(--blue); font-size: var(--text-small); }
.staff-facts { grid-template-columns: 120px minmax(0, 1fr); padding: 4px 20px; }
.staff-facts dt, .staff-facts dd { padding: 12px 0; border-top-color: var(--line-soft); }
.staff-facts dt { padding-right: var(--space-3); font-size: var(--text-small); }
.staff-facts dd { font-size: var(--text-body); font-weight: 400; }
.staff-facts .contact { color: var(--blue); }
.staff-facts .contact svg { display: none; }
.staff-facts .badge, .staff-state { font-size: .75rem; font-weight: 600; }
.staff-state { color: var(--muted); }
.staff-licence-due { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.staff-licence-when { flex: 1; min-width: 0; }
.staff-licence-when .badge { font-size: var(--text-body); font-weight: 700; }
.staff-licence-when small { display: block; margin: 2px 0 0 17px; color: var(--muted); font-size: var(--text-small); }
.staff-licence-due .btn { flex: none; min-height: 36px; }
.staff-teams .row-item { padding: 14px 20px; }
.staff-teams .row-title { font-size: 15px; }
.staff-empty { margin: 0; padding: 16px 20px; }
.staff-section .contacts-choice { padding: 0 20px 16px; }

@media (max-width: 1100px) {
  .staff-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 700px) {
  .staff-record .page-head.has-avatar > .head-back { font-size: var(--text-label); }
  .staff-record .head-actions { width: auto; }
  .staff-record .head-actions .btn { flex: none; width: auto; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; color: var(--blue); font-size: var(--text-label); font-weight: 600; }
  .staff-record .page-head-person { gap: 14px; }
  .staff-record .avatar.avatar-72 { width: 56px; height: 56px; font-size: 1.1875rem; }
  .staff-record .page-head.has-avatar h1 { font-size: 1.5rem; }
  .staff-record .page-head-meta { gap: 6px; font-size: var(--text-small); }
  .staff-calls { display: flex; gap: 8px; margin-top: 14px; }
  .staff-calls .icon-btn { flex: 1 1 0; gap: 8px; width: auto; height: 44px; border-radius: 10px; background: var(--surface-3); color: var(--ink); font-size: var(--text-label); font-weight: 600; }
  .staff-grid { margin-top: 22px; }
  .staff-facts { grid-template-columns: 90px minmax(0, 1fr); padding: 2px 16px; }
  .staff-facts dt, .staff-facts dd { padding: 11px 0; }
  .staff-licence-due { padding: 12px 16px; }
  .staff-teams .row-item { padding: 12px 16px; }
  .staff-teams .staff-wide { display: none; }
  .staff-section .contacts-choice { padding: 0 16px 14px; }
}

/* Suspensões (disciplinary_restrictions/index): the way back to the
   athlete, the title, the team badge with the athlete and season, and
   "Registar suspensão" (full width at the bottom on a phone). Each
   suspension is a card (title, line, state on the right, games served on
   a bar, facts, notes, its action) with its history card beside it; on a
   phone the history follows and the facts fold into one line about the
   next game. */
.susp-head .page-head { align-items: flex-end; margin-bottom: 24px; }
.susp-head .head-back { margin-bottom: 8px; }
.susp-head h1 { font-size: 1.875rem; letter-spacing: -.02em; }
.susp-head .page-head > :first-child > p:not(.print-only) { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: var(--text-label); }
.susp-narrow, .susp-next, .susp-add-phone { display: none; }
.susp-case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.susp-case + .susp-case { margin-top: 20px; }
.susp-card, .susp-history { padding: 20px; overflow: visible; }
.susp-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.susp-card-head h2 { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.susp-card-head > .badge, .susp-state { flex: none; font-size: .75rem; }
.susp-state { color: var(--muted); font-weight: 600; }
.susp-line { margin: 4px 0 0; color: var(--muted); font-size: var(--text-small); }
.susp-progress { margin-top: 16px; color: var(--muted); font-size: var(--text-small); }
.susp-progress p { margin: 0 0 6px; }
.susp-progress .progress { height: 8px; }
.susp-facts { grid-template-columns: 130px minmax(0, 1fr); margin-top: 14px; }
.susp-facts > div { display: contents; }
.susp-facts dt, .susp-facts dd { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.susp-facts dt { font-size: var(--text-small); }
.susp-facts dd { font-size: var(--text-body); font-weight: 400; }
.susp-note { max-width: 70ch; margin: 14px 0 0; color: var(--muted); font-size: var(--text-small); line-height: 1.5; overflow-wrap: anywhere; }
.susp-note p { margin: 0; }
.susp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.susp-history { padding-bottom: 12px; }
.susp-history h2 { margin: 0; color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.susp-prior { margin: 8px 0 0; color: var(--muted); font-size: var(--text-small); }
.susp-ledger { margin: 14px 0 0; padding: 0; list-style: none; }
.susp-ledger-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: var(--text-body); }
.susp-when { flex: none; width: 104px; color: var(--muted); font-size: var(--text-small); }
.susp-what::after { content: " ·"; }
.susp-credit { flex-basis: 100%; margin: 4px 0 0 110px; color: var(--muted); font-size: var(--text-small); }
.susp-correct { flex-basis: 100%; margin: 6px 0 0 110px; font-size: var(--text-small); }
.susp-correct summary { color: var(--blue); font-weight: 600; cursor: pointer; }
.susp-correct form { display: grid; gap: 6px; max-width: 360px; margin-top: 8px; }
.susp-correct .btn { justify-self: start; }
.susp-counting { margin: 6px 0 0; }
.susp-counting summary { display: inline-block; padding: 6px 0; color: var(--blue); font-size: var(--text-body); font-weight: 600; list-style: none; cursor: pointer; }
.susp-counting summary::-webkit-details-marker { display: none; }
.susp-counting p { max-width: 70ch; margin: 4px 0 8px; color: var(--muted); font-size: var(--text-small); line-height: 1.5; }
.susp-dialog label { display: block; margin: var(--space-3) 0 var(--space-2); }

@media (max-width: 1100px) {
  .susp-case { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 700px) {
  .susp-head .page-head { align-items: stretch; margin-bottom: 18px; }
  .susp-head h1 { font-size: 1.625rem; }
  .susp-head .page-head > :first-child > p:not(.print-only) { margin-top: 4px; font-size: var(--text-small); }
  .susp-head .head-actions { display: none; }
  .susp-wide, .susp-facts > .susp-wide-fact { display: none; }
  .susp-narrow { display: inline; }
  .susp-card, .susp-history { padding: 16px; }
  .susp-card-head h2 { font-size: 1rem; }
  .susp-progress { margin-top: 12px; }
  .susp-facts { grid-template-columns: 96px minmax(0, 1fr); }
  .susp-facts { margin-top: 0; }
  .susp-next { display: block; margin: 12px 0 0; color: var(--muted); font-size: var(--text-small); line-height: 1.5; }
  .susp-next strong { color: var(--ink); }
  .susp-actions .btn.primary { flex: 1 1 100%; min-height: 44px; }
  .susp-ledger { margin-top: 6px; }
  .susp-ledger-row:first-child { border-top: 0; }
  .susp-when { width: auto; color: var(--ink); font-size: var(--text-body); }
  .susp-when::after { content: " ·"; }
  .susp-what { flex: 1; }
  .susp-what::after { content: none; }
  .susp-verdict { color: var(--muted); font-size: var(--text-small); }
  strong.susp-verdict { color: var(--ink); font-size: var(--text-body); }
  .susp-credit, .susp-correct { margin-left: 0; }
  .susp-add-phone { display: block; margin: 12px 0 0; }
  .susp-add-phone .btn { min-height: 44px; color: var(--ink); }
}
