/* =========================================================
   PACIFIST WEEKEND
   Builds on the shared ps-page design system already in the
   site CSS. Only the running order, the sign-up form and the
   result messages are new. CSS only, no JavaScript.
========================================================= */

/* Running order */

.pw-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pw-day {
  padding: 27px 27px 13px;
  border-top: 3px solid var(--ps-purple);
  border-right: 1px solid var(--ps-line);
  border-bottom: 1px solid var(--ps-line);
  border-left: 1px solid var(--ps-line);
  background: var(--ps-white);
}

.pw-day h3 {
  margin: 0 0 12px;
  color: var(--ps-ink);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.pw-slots {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pw-slots li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--ps-line);
  color: var(--ps-text);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.pw-time {
  color: var(--ps-purple);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.9;
}

/* Sign-up card */

.pw-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-panel);
  background: var(--ps-white);
  box-shadow: 0 24px 64px rgba(58, 17, 65, 0.08);
}

.pw-discord-note {
  margin: 0 0 24px;
  color: var(--ps-text);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.pw-discord-note .ps-text-link {
  font-size: inherit;
}

/* Form, matching the site's account login fields */

.pw-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}

.pw-field label {
  display: block;
  margin: 0 0 8px;
  color: var(--ps-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
}

.pw-field small {
  display: block;
  margin-top: 7px;
  color: var(--ps-muted);
  font-size: 13px;
  line-height: 1.5;
}

.pw-field input,
.pw-field select {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(30, 36, 48, 0.22);
  border-radius: 9px;
  outline: 0;
  background: var(--ps-white);
  color: var(--ps-ink);
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.pw-field input:hover,
.pw-field select:hover {
  border-color: rgba(120, 7, 133, 0.42);
}

.pw-field input:focus,
.pw-field select:focus {
  border-color: var(--ps-purple);
  box-shadow: 0 0 0 3px rgba(120, 7, 133, 0.12);
}

.pw-field select:invalid {
  color: var(--ps-muted);
}

.pw-check {
  display: flex;
  grid-column: 1 / -1;
  gap: 11px;
  align-items: flex-start;
  color: var(--ps-text);
  font-size: 0.9375rem;
  line-height: 1.5;
  cursor: pointer;
}

.pw-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ps-purple);
}

.pw-submit {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  gap: 14px 18px;
  align-items: center;
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid var(--ps-line);
}

.pw-submit p {
  flex: 1 1 220px;
  margin: 0;
  color: var(--ps-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Honeypot, hidden from people but visible to bots */

.pw-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Result messages, shown with :target after the form redirects back */

.pw-panel {
  display: none;
  margin: 0 0 24px;
  padding: 15px 17px;
  border-left: 3px solid var(--ps-purple);
  background: var(--ps-purple-soft);
  color: var(--ps-text);
  font-size: 0.9375rem;
  line-height: 1.6;
  scroll-margin-top: 140px;
}

.pw-panel:target {
  display: block;
}

.pw-panel strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ps-ink);
}

.pw-panel p {
  margin: 0;
}

.pw-panel--error {
  border-left-color: #b42318;
  background: #fef3f2;
}

.pw-panel--ok:target ~ .pw-form {
  display: none;
}

/* Responsive */

@media (max-width: 900px) {
  .pw-days {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .pw-form {
    grid-template-columns: 1fr;
  }

  .pw-submit .ps-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pw-field input,
  .pw-field select {
    transition: none;
  }
}

/* =========================================================
   SITE BANNER  [pacifist_weekend_banner]
   Uses fallbacks so it works on pages outside ps-page too.
========================================================= */

.pw-strip {
  box-sizing: border-box;
  width: 100%;
  border-top: 1px solid var(--ps-purple-line, rgba(120, 7, 133, 0.18));
  border-bottom: 1px solid var(--ps-purple-line, rgba(120, 7, 133, 0.18));
  background: var(--ps-purple-soft, #f7eff8);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.pw-strip *,
.pw-strip *::before,
.pw-strip *::after {
  box-sizing: border-box;
}

.pw-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), 1120px);
  margin-inline: auto;
  padding: 16px 0;
}

.pw-strip__text {
  flex: 1 1 520px;
  margin: 0;
  color: var(--ps-text, #3f4857);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.pw-strip__text strong {
  color: var(--ps-ink, #1e2430);
}

.pw-strip__tag {
  display: inline-block;
  margin-right: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ps-purple, #780785);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.pw-strip__button {
  display: inline-flex;
  flex: none;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--ps-purple, #780785);
  border-radius: 10px;
  background: var(--ps-purple, #780785);
  color: #ffffff !important;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none !important;
}

.pw-strip__button:hover,
.pw-strip__button:focus-visible {
  border-color: var(--ps-purple-dark, #450246);
  background: var(--ps-purple-dark, #450246);
}

.pw-strip__button:focus-visible {
  outline: 3px solid var(--ps-purple, #780785);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .pw-strip__inner {
    width: min(calc(100% - 28px), 1120px);
  }

  .pw-strip__button {
    width: 100%;
  }
}
