.bso40-voting,
.bso40-voting * {
  box-sizing: border-box;
}

.bso40-voting {
  --bso40-accent: #b9893e;
  --bso40-button: #23483d;
  --bso40-bg: #fbf7f0;
  --bso40-text: #1f2925;
  --bso40-white: #fff;
  --bso40-border: color-mix(in srgb, var(--bso40-text) 16%, transparent);
  color: var(--bso40-text);
  background: var(--bso40-bg);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
  font-family: inherit;
  line-height: 1.55;
}

.bso40-intro {
  max-width: 780px;
  margin: 0 auto clamp(28px, 5vw, 50px);
  text-align: center;
}

.bso40-eyebrow {
  margin: 0 0 8px;
  color: var(--bso40-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bso40-intro h2,
.bso40-dialog h3 {
  color: var(--bso40-text);
  font-family: inherit;
  font-weight: 750;
  line-height: 1.08;
}

.bso40-intro h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px) !important;
  letter-spacing: -0.035em;
}

.bso40-intro-copy {
  max-width: 650px;
  margin: 18px auto 0;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.bso40-intro-copy p:last-child,
.bso40-bio p:last-child {
  margin-bottom: 0;
}

.bso40-notice {
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--bso40-accent) 42%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bso40-accent) 10%, var(--bso40-white));
}

.bso40-notice--status {
  max-width: 760px;
  margin: -20px auto 34px;
  text-align: center;
  font-weight: 700;
}

.bso40-tools {
  max-width: 560px;
  margin: 0 auto 30px;
}

.bso40-tools > label,
.bso40-field > label {
  display: block;
  margin: 0 0 7px;
  font-size: 0.88rem;
  font-weight: 750;
}

.bso40-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bso40-search-wrap svg {
  position: absolute;
  left: 14px;
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
  pointer-events: none;
  opacity: 0.58;
}

.bso40-search,
.bso40-field input[type="email"] {
  width: 100%;
  min-height: 50px;
  margin: 0;
  color: var(--bso40-text);
  background: var(--bso40-white);
  border: 1px solid var(--bso40-border);
  border-radius: 11px;
  box-shadow: 0 1px 1px rgba(26, 38, 32, 0.03);
  font: inherit;
}

.bso40-search {
  padding: 10px 72px 10px 44px;
}

.bso40-field input[type="email"] {
  padding: 10px 13px;
}

.bso40-search:focus,
.bso40-field input[type="email"]:focus {
  outline: 3px solid color-mix(in srgb, var(--bso40-accent) 27%, transparent);
  border-color: var(--bso40-accent);
}

.bso40-search-clear {
  position: absolute;
  right: 8px;
  min-height: 36px;
  padding: 4px 8px;
  color: var(--bso40-button);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.bso40-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 20px);
}

.bso40-card[hidden] {
  display: none;
}

.bso40-card {
  min-width: 0;
}

.bso40-card-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--bso40-text);
  background: transparent;
  border: 0;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
}

.bso40-photo {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: color-mix(in srgb, var(--bso40-button) 12%, var(--bso40-bg));
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(26, 38, 32, 0.12);
}

.bso40-photo img,
.bso40-dialog-photo img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center top;
}

.bso40-photo img {
  transition: transform 260ms ease;
}

.bso40-card-open:hover .bso40-photo img {
  transform: scale(1.025);
}

.bso40-card-open:focus-visible {
  outline: 3px solid var(--bso40-accent);
  outline-offset: 5px;
}

.bso40-photo-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--bso40-white);
  background: linear-gradient(145deg, var(--bso40-button), color-mix(in srgb, var(--bso40-button) 55%, var(--bso40-accent)));
  font-size: clamp(2.2rem, 8vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.bso40-card-shade {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(to bottom, transparent, rgba(8, 15, 12, 0.86));
  pointer-events: none;
}

.bso40-card-name {
  position: absolute;
  right: 14px;
  bottom: 15px;
  left: 14px;
  color: var(--bso40-white);
  font-size: clamp(14px, 1.2vw, 16px) !important;
  font-weight: 800;
  line-height: 1.15 !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  text-wrap: balance;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.32);
}

.bso40-card-cta {
  display: inline-block;
  padding: 10px 3px 0;
  color: var(--bso40-button);
  font-size: 0.85rem;
  font-weight: 750;
}

.bso40-no-results {
  margin: 28px 0 0;
  text-align: center;
  font-weight: 700;
}

.bso40-dialog {
  width: min(920px, calc(100vw - 32px));
  max-width: 920px;
  max-height: min(88vh, 820px);
  margin: auto;
  padding: 0;
  color: var(--bso40-text);
  background: var(--bso40-white);
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(11, 19, 15, 0.36);
}

.bso40-dialog::backdrop {
  background: rgba(11, 19, 15, 0.72);
  backdrop-filter: blur(4px);
}

.bso40-dialog--fallback {
  position: fixed;
  z-index: 999999;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.bso40-dialog-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  min-height: min(680px, 82vh);
}

.bso40-dialog-photo {
  min-height: 520px;
  background: color-mix(in srgb, var(--bso40-button) 12%, var(--bso40-bg));
}

.bso40-dialog-content {
  overflow-y: auto;
  padding: clamp(30px, 5vw, 54px);
}

.bso40-dialog h3 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.05rem);
  letter-spacing: -0.035em;
}

.bso40-dialog-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--bso40-text);
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
  font: inherit;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.bso40-dialog-close:hover,
.bso40-dialog-close:focus-visible {
  color: var(--bso40-white);
  background: var(--bso40-button);
  outline: none;
}

.bso40-bio {
  font-size: 1.02rem;
}

.bso40-vote-form {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--bso40-border);
}

.bso40-field {
  margin-bottom: 13px;
}

.bso40-checkbox {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  margin: 12px 0 17px;
  font-size: 0.79rem;
  line-height: 1.4;
  cursor: pointer;
}

.bso40-checkbox input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--bso40-button);
}

.bso40-vote-button {
  display: block;
  width: 100%;
  min-height: 51px;
  padding: 12px 18px;
  color: var(--bso40-white);
  background: var(--bso40-button);
  border: 2px solid var(--bso40-button);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}

.bso40-vote-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.bso40-vote-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--bso40-accent) 50%, transparent);
  outline-offset: 3px;
}

.bso40-vote-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.bso40-vote-form.is-complete .bso40-vote-button:disabled {
  cursor: default;
  opacity: 1;
}

.bso40-fine-print {
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--bso40-text) 67%, transparent);
  font-size: 0.74rem;
  line-height: 1.45;
}

.bso40-fine-print a {
  color: inherit;
  text-decoration: underline;
}

.bso40-form-message {
  min-height: 0;
  margin-top: 0;
  padding: 0;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 700;
}

.bso40-form-message.is-error,
.bso40-form-message.is-success {
  margin-top: 13px;
  padding: 10px 12px;
}

.bso40-form-message.is-error {
  color: #842c2c;
  background: #fbeaea;
}

.bso40-form-message.is-success {
  color: #194d39;
  background: #e6f5ed;
}

.bso40-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.bso40-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) and (min-width: 721px) {
  .bso40-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .bso40-voting {
    border-radius: 16px;
    padding: 26px 16px 38px;
  }

  .bso40-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .bso40-card-name {
    right: 11px;
    bottom: 11px;
    left: 11px;
    font-size: 14px !important;
  }

  .bso40-card-cta {
    font-size: 0.75rem;
  }

  .bso40-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .bso40-dialog-layout {
    display: block;
    min-height: 0;
  }

  .bso40-dialog-photo {
    height: min(55vh, 480px);
    min-height: 320px;
  }

  .bso40-dialog-content {
    overflow: visible;
    padding: 28px 20px 34px;
  }

  .bso40-dialog h3 {
    font-size: 2.1rem;
  }
}

@media (max-width: 380px) {
  .bso40-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bso40-photo img,
  .bso40-vote-button {
    transition: none;
  }
}
