/* The home page's locally hosted Anton / Nunito Sans families. */
@import url('/assets/css/homepage-fonts.css');

.topbar, .mobile-menu { position: fixed; }
.queue-page {
  --queue-placeholder: rgba(22, 11, 29, .55);
  padding-top: 76px;
  font-family: var(--body);
  color: var(--ink);
}
.queue-page [hidden] { display: none !important; }
.queue-count, .queue-subscribe {
  min-height: calc(100svh - 76px);
  display: grid;
  place-items: center;
  padding: clamp(48px, 7vw, 100px) 24px;
  background: var(--lavender);
  text-align: center;
}
.queue-content, .queue-subscribe-content { width: min(100%, 850px); margin-inline: auto; }
.queue-subscribe-content { max-width: 760px; }
.queue-eyebrow {
  margin: 0 0 24px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.queue-page h1 {
  text-wrap: balance;
  margin: 0;
  font: 400 clamp(58px, 7vw, 100px)/.98 var(--display);
  letter-spacing: -.035em;
}
.queue-page h1 span { color: var(--purple); }
/* Quiet supporting copy; reserve strong weights for headings and labels. */
.queue-intro {
  margin: 24px 0 34px;
  color: rgba(22, 11, 29, .72);
  font-size: clamp(14px, 1.1vw, 16px);
  font-family: var(--body);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.queue-filters {
  display: inline-flex;
  max-width: 100%;
  padding: 5px;
  margin-bottom: 22px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.queue-filters button, .queue-secondary, .queue-cta {
  font-family: var(--body);
  font-size: clamp(10px, .78vw, 12px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.queue-filters button {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: transparent;
  color: var(--ink);
}
.queue-filters button[aria-pressed=true] { background: var(--plum); color: var(--cream); }
/* Rounded cream fields and a fine purple focus border, as on support.ejs. */
.queue-field input, .queue-field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(22, 11, 29, .18);
  border-radius: 16px;
  color: var(--ink);
  background: var(--cream);
  font: 400 14px/1.35 var(--body);
  transition: border-color .2s ease, background .2s ease;
}
.queue-field input::placeholder { color: var(--queue-placeholder); font-weight: 400; opacity: 1; }
.queue-field input:focus, .queue-field select:focus {
  outline: none;
  border-color: var(--purple);
  background-color: var(--white);
  box-shadow: none;
}
.queue-page button:focus-visible, .queue-page a:focus-visible,
.queue-consent input:focus-visible, .queue-page-address a:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}
.queue-search { display: flex; gap: 8px; align-items: center; }
.queue-search input { flex: 1; }
.queue-field select {
  width: 120px;
  flex: 0 0 120px;
  padding: 0 32px 0 12px;
  appearance: none;
  -webkit-appearance: none;
  font-weight: 600;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--queue-placeholder) 50%),
    linear-gradient(135deg, var(--queue-placeholder) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.queue-field select:has(option[value=""]:checked) { color: var(--queue-placeholder); font-weight: 400; }
.queue-field select option { color: var(--ink); font-weight: 400; }
.queue-label-note { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 12px; }
.queue-info-box { padding: 20px 24px; border: 1px solid rgba(138,35,135,.10); border-radius: 16px; background: rgba(255,248,242,.55); }

.queue-secondary { min-height: 44px;
  height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--cream); color: var(--plum); white-space: nowrap; }
.queue-page button:disabled { background: #d8d3d9; color: #716a75; cursor: not-allowed; border-color: transparent; }
.queue-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 48px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  transition: background .2s ease, transform .2s ease;
}
.queue-cta:not(:disabled):hover { background: #e5cf12; transform: translateY(-2px); }
.queue-cta span { font-size: 19px; line-height: 1; }
#find-count { margin: 20px auto 0; min-width: 260px; max-width: 100%; }
/* Regular-weight body copy keeps instructions and consent easy to scan. */
.queue-hint, .queue-form-note, .queue-status, .queue-consent {
  font-size: clamp(13px, 1vw, 17px);
  font-weight: 400;
  line-height: 1.62;
  color: rgba(22, 11, 29, .82);
}
.queue-hint { max-width: 580px; margin: 26px auto 0; }
.queue-hint strong { display: block; margin-bottom: 8px; color: var(--ink); font-weight: 600; }
.queue-disclaimer { max-width: 600px; margin: 15px auto 0; font-size: 12px; font-weight: 400; line-height: 1.62; color: rgba(22,11,29,.72); }
.queue-error { min-height: 0; margin: 6px 0 0; color: #a11642; text-align: left; font: 600 12px/1.5 var(--body); }
.queue-field [aria-invalid=true] { border-color: #a11642; }
.queue-status { margin: 16px 0 0; }
.queue-status:empty, .queue-error:empty { display: none; }
.queue-crosslink { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; text-underline-offset: 4px; }
#count-form { width: min(100%, 540px); margin-inline: auto; }
#subscribe-form { width: min(100%, 560px); margin: 0 auto; text-align: left; }
.queue-form-note { margin: 0 0 22px; text-align: center; }
.queue-contact { margin-bottom: 16px; }
.queue-contact > label { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.queue-contact-row { display: flex; gap: 8px; align-items: start; }
.queue-contact-row > input { flex: 1; }
.queue-contact-row .queue-validate { min-width: 88px; }
.queue-inline-code { display: flex; gap: 6px; flex: 0 0 148px; }
.queue-inline-code input { width: 92px; padding: 0 10px; }
.queue-inline-code button { padding: 0 14px; font-size: 18px; }
.queue-consent { display: flex; align-items: start; gap: 10px; margin: 12px 0; }
.queue-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--purple); }
.queue-consent a { text-decoration: underline; text-underline-offset: 3px; }
#subscribe-submit { width: 100%; margin-top: 18px; text-align: center; }
#subscribe-form .queue-hint { text-align: center; }
.queue-page-address { margin: 0; padding: 24px 16px max(24px, env(safe-area-inset-bottom)); background: var(--cream); color: var(--plum); text-align: center; font: 600 clamp(12px, 1vw, 15px)/1.6 var(--body); overflow-wrap: anywhere; }
.queue-crosslink, .queue-page-address a { color: #0000ee; text-decoration: underline; text-underline-offset: 4px; }
.queue-noscript { padding: 24px; text-align: center; }

@media (max-width: 700px) {
  .queue-page { padding-top: 72px; }
  .queue-count, .queue-subscribe { min-height: calc(100svh - 72px); padding: 48px 18px; }
  .queue-eyebrow { font-size: 9px; letter-spacing: .12em; }
  .queue-page h1 { font-size: clamp(48px, 12vw, 80px); }
  .queue-intro { font-size: 14px; letter-spacing: 0; margin: 20px 0 26px; }
  .queue-filters { display: flex; width: 100%; justify-content: center; gap: 2px; padding: 4px; }
  .queue-filters button { flex: 1; padding: 12px 5px; font-size: clamp(8px, 2.6vw, 11px); letter-spacing: .02em; white-space: nowrap; }
  .queue-field input { font-size: 16px; }
  .queue-field input::placeholder { font-size: 12px; }
  .queue-field select { width: 112px; flex-basis: 112px; font-size: 13px; }
  .queue-search input { width: 0; padding-inline: 12px; }
  .queue-hint, .queue-form-note, .queue-consent, .queue-status { font-size: clamp(12.5px, 3.55vw, 14px); }
  .queue-contact-row { flex-wrap: wrap; }
  .queue-contact-row > input { width: 0; }
  .queue-contact-row .queue-secondary { min-width: 74px; padding-inline: 10px; }
  .queue-inline-code { flex-basis: 100%; }
  .queue-inline-code input { flex: 1; width: 0; }
  .queue-cta { font-size: 10px; gap: 12px; }
  .queue-disclaimer { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .queue-page * { transition: none !important; } }

/* Keep the campaign explanation immediately below the page's primary link. */
.queue-page-links { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
.queue-page-links .queue-crosslink { margin-top: 0; }
