/* Colours can be overridden from the theme, e.g. .phoenix-vol { --phoenix-vol-accent: #123456; }
   Button rules are prefixed with .phoenix-vol and cover :hover/:focus/:active,
   because themes (Astra included) restyle every button in those states. */
.phoenix-vol {
  --phoenix-vol-accent: #e64a19;
  --phoenix-vol-accent-dark: #bf360c;
  --phoenix-vol-border: #e2e4e8;
}

.phoenix-vol-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 0;
}

.phoenix-vol-table th,
.phoenix-vol-table td {
  border: 1px solid var(--phoenix-vol-border);
  padding: 1rem 0.9rem;
  text-align: center;
  vertical-align: middle;
}

.phoenix-vol-table th {
  font-weight: normal;
  background: #fafbfc;
}

.phoenix-vol-row-full td {
  color: #8a8f98;
}

.phoenix-vol-row-full td[data-label="Spaces"] {
  font-weight: bold;
}

.phoenix-vol-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.phoenix-vol .phoenix-vol-apply,
.phoenix-vol .phoenix-vol-submit,
.phoenix-vol .phoenix-vol-apply:focus,
.phoenix-vol .phoenix-vol-submit:focus {
  background: var(--phoenix-vol-accent);
  color: #fff;
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  padding: 0.55rem 1.2rem;
  font: inherit;
  font-weight: bold;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
}

.phoenix-vol .phoenix-vol-apply:hover,
.phoenix-vol .phoenix-vol-submit:hover,
.phoenix-vol .phoenix-vol-apply:active,
.phoenix-vol .phoenix-vol-submit:active {
  background: var(--phoenix-vol-accent-dark);
  color: #fff;
}

.phoenix-vol .phoenix-vol-apply:focus-visible,
.phoenix-vol .phoenix-vol-submit:focus-visible {
  outline: 2px solid var(--phoenix-vol-accent-dark);
  outline-offset: 2px;
}

.phoenix-vol .phoenix-vol-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.phoenix-vol-applied {
  color: #155724;
  font-weight: bold;
}

/* The table and message swap as the live list loads, including on phones
   where the table is display: block. */
.phoenix-vol-table[hidden],
.phoenix-vol-empty[hidden] {
  display: none !important;
}

/* Past sessions: same table, quieter, with no apply column. */
.phoenix-vol-past {
  margin-top: 2.5rem;
}

.phoenix-vol-past[hidden] {
  display: none !important;
}

.phoenix-vol .phoenix-vol-heading {
  margin: 0 0 1rem;
  text-align: center;
}

.phoenix-vol .phoenix-vol-heading[hidden] {
  display: none;
}

.phoenix-vol-table-past td {
  color: #5f6670;
}

/* Phones: each session becomes a stacked card. */
@media (max-width: 760px) {
  .phoenix-vol-table thead {
    display: none;
  }

  .phoenix-vol .phoenix-vol-table-past tr {
    border-top-color: #b8bec6;
  }

  /* Themes (Astra included) border every table; on phones that draws an
     outline around the whole stack of cards. */
  .phoenix-vol .phoenix-vol-table {
    border: 0;
    background: transparent;
  }

  .phoenix-vol-table,
  .phoenix-vol-table tbody,
  .phoenix-vol-table tr,
  .phoenix-vol-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .phoenix-vol-table tr {
    border: 1px solid var(--phoenix-vol-border);
    border-top: 4px solid var(--phoenix-vol-accent);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: #fff;
  }

  .phoenix-vol-table td {
    border: 0;
    padding: 0.35rem 0;
    text-align: left;
    display: flex;
    gap: 1rem;
  }

  .phoenix-vol-table td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 5.5rem;
    font-weight: bold;
  }

  .phoenix-vol-table td.phoenix-vol-action-none {
    display: none;
  }

  .phoenix-vol-table .phoenix-vol-action {
    padding-top: 0.6rem;
  }

  .phoenix-vol .phoenix-vol-apply {
    width: 100%;
  }
}

.phoenix-vol-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  box-sizing: border-box;
  border: 0;
  border-top: 4px solid var(--phoenix-vol-accent);
  border-radius: 8px;
  padding: 1.5rem;
  background: #fff;
  color: #222;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
}

.phoenix-vol-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.phoenix-vol .phoenix-vol-close,
.phoenix-vol .phoenix-vol-close:focus,
.phoenix-vol .phoenix-vol-close:active {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: #666;
  cursor: pointer;
}

.phoenix-vol .phoenix-vol-close:hover {
  background: #f1f1f1;
  color: #222;
}

.phoenix-vol .phoenix-vol-close:focus-visible {
  outline: 2px solid var(--phoenix-vol-accent);
  outline-offset: 2px;
}

.phoenix-vol .phoenix-vol-close svg {
  display: block;
}

.phoenix-vol .phoenix-vol-dialog-title {
  margin: 0 0 0.6rem;
  padding-right: 2.5rem;
  color: var(--phoenix-vol-accent);
}

.phoenix-vol .phoenix-vol-dialog-meta {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.phoenix-vol-dialog-description {
  white-space: pre-line;
  margin-bottom: 1rem;
}

.phoenix-vol-dialog-requirements {
  background: #fbe9e7;
  border-radius: 6px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.phoenix-vol-dialog-requirements div {
  white-space: pre-line;
}

.phoenix-vol-dialog-description[hidden],
.phoenix-vol-dialog-requirements[hidden],
.phoenix-vol-form[hidden],
.phoenix-vol-thanks[hidden] {
  display: none;
}

.phoenix-vol-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.phoenix-vol-form input[type="text"],
.phoenix-vol-form input[type="email"],
.phoenix-vol-form input[type="tel"],
.phoenix-vol-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
}

.phoenix-vol-form input:focus,
.phoenix-vol-form textarea:focus {
  outline: none;
  border-color: var(--phoenix-vol-accent);
  box-shadow: 0 0 0 2px rgba(230, 74, 25, 0.2);
}

/* Honeypot — hidden from people, visible to form-filling bots. */
.phoenix-vol-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.phoenix-vol-message {
  margin: 0 0 1rem;
}

.phoenix-vol-message-error {
  color: #c62828;
  font-weight: bold;
}

.phoenix-vol-thanks {
  padding: 0.8rem 1rem;
  background: #d4edda;
  color: #155724;
  border-radius: 6px;
  font-weight: bold;
}

/* ---- Staff list ([phoenix_staff]) ---- */

.phoenix-staff[hidden],
.phoenix-staff-empty[hidden] {
  display: none;
}

.phoenix-staff {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.phoenix-staff-member {
  margin: 0;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--phoenix-vol-border);
  border-top: 3px solid var(--phoenix-vol-accent);
  border-radius: 4px;
}

.phoenix-staff .phoenix-staff-name {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.phoenix-staff .phoenix-staff-qualifications {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  list-style: disc;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

.phoenix-staff .phoenix-staff-qualifications li {
  margin: 0;
}
