/*
 * Biker Party theme: black and charcoal backgrounds with an orange primary.
 * Loaded after Bootstrap and applied with data-bs-theme="dark" on <html>.
 * Orange (#FF6A00) is paired with black text on filled surfaces for WCAG AA contrast.
 */

:root,
[data-bs-theme="dark"] {
  --bea-orange: #ff6a00;
  --bea-orange-hover: #ff8124;
  --bea-orange-active: #e05d00;
  --bea-black: #0b0b0b;
  --bea-charcoal: #1a1a1a;
  --bea-charcoal-2: #242424;
  --bea-gray: #8a8a8a;

  --bs-primary: var(--bea-orange);
  --bs-primary-rgb: 255, 106, 0;
  --bs-primary-text-emphasis: #ffa466;
  --bs-primary-bg-subtle: #331500;
  --bs-primary-border-subtle: #993f00;

  --bs-body-bg: var(--bea-black);
  --bs-body-bg-rgb: 11, 11, 11;
  --bs-body-color: #f2f2f2;
  --bs-body-color-rgb: 242, 242, 242;
  --bs-secondary-bg: var(--bea-charcoal);
  --bs-tertiary-bg: var(--bea-charcoal-2);
  --bs-secondary-color: rgba(242, 242, 242, 0.75);
  --bs-border-color: #333;
  --bs-emphasis-color: #fff;

  --bs-link-color: var(--bea-orange);
  --bs-link-color-rgb: 255, 106, 0;
  --bs-link-hover-color: var(--bea-orange-hover);
  --bs-link-hover-color-rgb: 255, 129, 36;

  --bs-focus-ring-color: rgba(255, 106, 0, 0.4);
  --bs-form-check-bg: var(--bea-charcoal);

  --bea-topbar-height: 3.5rem;
  --bea-footer-height: 4.25rem;
  --bea-cta-height: 3.75rem;
  /* Space around the floating consultation pill. */
  --bea-cta-gap: 0.75rem;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* Room for the floating consultation pill and the footer nav. */
  padding-bottom: calc(var(--bea-cta-height) + 2 * var(--bea-cta-gap) + env(safe-area-inset-bottom));
}

body.has-footer {
  padding-bottom: calc(var(--bea-cta-height) + 2 * var(--bea-cta-gap) + var(--bea-footer-height) + env(safe-area-inset-bottom));
}

/*
 * Launch splash (ui_mockups/splash_screen.png): orange gradient with the pulsing Biker Lawyers logo.
 * Visible only while <html> has .bea-splash-active (set by the inline script in base.html); app.js adds
 * .is-leaving to fade it out. The delayed bea-splash-out animation is a fallback if app.js never runs.
 */
.bea-splash {
  --bea-splash-top: #fb7c36;
  --bea-splash-mid: #f56623;
  --bea-splash-bottom: #ef5011;
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) 1.5rem env(safe-area-inset-bottom);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bea-splash-top) 0%, var(--bea-splash-mid) 50%, var(--bea-splash-bottom) 100%);
  animation: bea-splash-out 0.4s ease 4s forwards;
}

.bea-splash-active .bea-splash {
  display: flex;
}

.bea-splash-active body {
  overflow: hidden;
}

.bea-splash.is-leaving {
  animation: bea-splash-out 0.4s ease forwards;
}

.bea-splash-logo {
  width: min(78vw, 22rem);
  height: auto;
  filter: drop-shadow(0 0.5rem 1.25rem rgba(0, 0, 0, 0.35));
  animation: bea-splash-pulse 1.6s ease-in-out infinite;
  will-change: transform;
}

@keyframes bea-splash-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

@keyframes bea-splash-out {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bea-splash-logo {
    animation: none;
  }
}

/*
 * Welcome screen: signed-out Home without top bar or consultation button.
 * One centered column that fills the screen: logo, title and lead at the top, a flexible gap, then the
 * Create an account / Log in pill buttons and the credit pinned to the bottom.
 */
body.bea-welcome-page {
  padding-bottom: env(safe-area-inset-bottom);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.07), transparent 60%),
    var(--bea-black);
}

.bea-welcome-page .bea-main {
  display: flex;
  flex-direction: column;
}

.bea-welcome {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding-top: calc(env(safe-area-inset-top) + 1.5rem);
  text-align: center;
}

.bea-welcome-hero,
.bea-welcome-actions {
  width: 100%;
}

.bea-welcome-logo {
  display: block;
  width: min(78vw, 19rem);
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0.5rem 1.25rem rgba(0, 0, 0, 0.6));
}

.bea-welcome-title {
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: clamp(1.9rem, 8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bea-welcome-lead {
  max-width: 22rem;
  margin: 0 auto;
  color: rgba(242, 242, 242, 0.7);
  font-size: 1rem;
  line-height: 1.5;
}

.bea-welcome-actions {
  margin-top: auto;
  padding-top: 2.5rem;
}

.bea-btn-glow,
.bea-btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.5rem;
  --bs-btn-border-radius: 50rem;
  border-radius: 50rem;
  font-weight: 700;
  text-align: center;
}

/* Orange with white bold text, as in the mockup (white on this orange is about 3:1, large text). */
.bea-btn-glow {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bea-orange);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bea-orange-hover);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bea-orange-active);
  --bs-btn-active-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 255, 106, 0;
  border: 0;
  color: #fff;
  background-color: var(--bea-orange);
  background-image: linear-gradient(180deg, #fb7c36 0%, #f2581a 100%);
  box-shadow: 0 0.75rem 2rem rgba(255, 106, 0, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.bea-btn-glow:hover,
.bea-btn-glow:focus-visible {
  filter: brightness(1.06);
}

.bea-btn-glow:active {
  filter: brightness(0.94);
}

.bea-btn-ghost {
  --bs-btn-color: #fff;
  --bs-btn-bg: rgba(255, 255, 255, 0.03);
  --bs-btn-border-color: #3a3a3a;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bea-charcoal-2);
  --bs-btn-hover-border-color: #555;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--bea-charcoal);
  --bs-btn-active-border-color: var(--bea-orange);
  --bs-btn-focus-shadow-rgb: 255, 106, 0;
}

.bea-welcome-credit {
  width: 100%;
  margin: 1.5rem 0 0.25rem;
  text-align: center;
  color: var(--bea-gray);
  font-size: 0.8rem;
}

/*
 * Install popup on Home (partials/install_prompt.html, opened by install.js): a charcoal card with an orange
 * glow, the app icon, perks with orange checks and the .bea-btn-glow / .bea-btn-ghost buttons.
 * Phones get a bottom sheet that slides up; wider screens a centered card.
 */
.bea-install {
  --bs-modal-width: 26rem;
  --bs-modal-bg: var(--bea-charcoal);
  --bs-modal-border-color: #2e2e2e;
  --bs-modal-border-radius: 1.75rem;
  --bs-modal-inner-border-radius: calc(1.75rem - 1px);
  --bs-modal-box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.6);
}

.bea-install-content {
  position: relative;
  padding: 2rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 106, 0, 0.28), transparent 60%),
    var(--bea-charcoal);
  box-shadow: var(--bs-modal-box-shadow);
}

.bea-install-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
}

.bea-install-grabber {
  display: none;
  width: 2.5rem;
  height: 0.3rem;
  margin: -1rem auto 1.25rem;
  background: #3a3a3a;
  border-radius: 50rem;
}

.bea-install-icon {
  display: block;
  width: 4.75rem;
  height: 4.75rem;
  margin: 0 auto 1rem;
  border-radius: 1.25rem;
  box-shadow: 0 0.75rem 2rem rgba(255, 106, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.bea-install-kicker {
  margin-bottom: 0.35rem;
  color: var(--bea-orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bea-install-title {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.bea-install-lead {
  max-width: 21rem;
  margin: 0 auto 1.25rem;
  color: var(--bs-secondary-color);
}

.bea-install-perks,
.bea-install-steps {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2e2e2e;
  border-radius: 1.1rem;
}

.bea-install-perks li,
.bea-install-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
}

.bea-install-perks svg {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  padding: 0.2rem;
  color: #000;
  background: var(--bea-orange);
  border-radius: 50%;
}

/* On iPhone install.js hides the perks and shows these steps (Bootstrap's [hidden] rule wins over display). */
.bea-install-steps {
  border-color: var(--bs-primary-border-subtle);
}

.bea-install-step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: #000;
  background: var(--bea-orange);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

.bea-install-share {
  width: 1.15rem;
  height: 1.15rem;
  margin: -0.2rem 0.1rem 0;
  color: var(--bea-orange);
  vertical-align: middle;
}

@media (max-width: 575.98px) {
  .bea-install .modal-dialog {
    max-width: none;
    min-height: 100%;
    margin: 0;
    align-items: flex-end;
  }

  .bea-install .modal-content {
    border-bottom: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .bea-install.fade .modal-dialog {
    transform: translateY(100%);
  }

  .bea-install.show .modal-dialog {
    transform: none;
  }

  .bea-install-grabber {
    display: block;
  }
}

/*
 * Login screen (ui_mockups/login_screen_mockup.png): no top bar or consultation button.
 * Round back button and small logo at the top, title and lead, icon inputs, the .bea-btn-glow submit,
 * the sign-up prompt and the About/Settings/Contact/Legal links pinned to the bottom.
 */
body.bea-login-page {
  padding-bottom: env(safe-area-inset-bottom);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--bea-black);
}

.bea-login-page .bea-main {
  display: flex;
  flex-direction: column;
}

.bea-login {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding-top: env(safe-area-inset-top);
}

.bea-login-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  margin-bottom: 1.25rem;
}

.bea-login-top .bea-back {
  position: absolute;
  top: 50%;
  left: 0;
  width: 2.75rem;
  height: 2.75rem;
  transform: translateY(-50%);
  border: 1px solid #3a3a3a;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.bea-login-top .bea-back:hover,
.bea-login-top .bea-back:focus {
  border-color: #555;
  background: var(--bea-charcoal-2);
  color: #fff;
}

.bea-login-top .bea-back svg {
  width: 1.25rem;
  height: 1.25rem;
}

.bea-login-logo {
  display: block;
  width: 5.5rem;
  height: auto;
  filter: drop-shadow(0 0.25rem 0.75rem rgba(0, 0, 0, 0.6));
}

.bea-login-title {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: clamp(2rem, 9vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bea-login-lead {
  margin-bottom: 2rem;
  color: rgba(242, 242, 242, 0.7);
  font-size: 1rem;
}

.bea-login .form-label {
  margin-bottom: 0.5rem;
  color: rgba(242, 242, 242, 0.8);
  font-size: 0.9rem;
}

.bea-input-icon {
  position: relative;
}

.bea-input-icon .form-control {
  min-height: 3.5rem;
  padding-left: 3rem;
  border-color: #2e2e2e;
  border-radius: 0.9rem;
  background-color: #141414;
  color: #fff;
  font-size: 1.05rem;
}

.bea-input-icon .form-control::placeholder {
  color: rgba(242, 242, 242, 0.4);
}

.bea-input-icon.has-end .form-control {
  padding-right: 3.25rem;
}

/* Hide Edge's built-in reveal button; the eye toggle replaces it. */
.bea-input-icon input::-ms-reveal {
  display: none;
}

.bea-input-icon-start {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  transform: translateY(-50%);
  color: var(--bea-gray);
  pointer-events: none;
}

.bea-input-icon:focus-within .bea-input-icon-start {
  color: var(--bea-orange);
}

.bea-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bea-gray);
}

.bea-password-toggle:hover,
.bea-password-toggle:focus-visible {
  background: var(--bea-charcoal-2);
  color: #fff;
}

.bea-password-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.bea-password-toggle .bea-eye-closed,
.bea-password-toggle[aria-pressed="true"] .bea-eye-open {
  display: none;
}

.bea-password-toggle[aria-pressed="true"] .bea-eye-closed {
  display: inline;
}

.bea-login-forgot {
  color: rgba(242, 242, 242, 0.85);
  font-size: 0.9rem;
  text-decoration: none;
}

.bea-login-forgot:hover,
.bea-login-forgot:focus {
  color: var(--bea-orange);
}

.bea-login-signup {
  margin: 1.5rem 0 0;
  color: rgba(242, 242, 242, 0.7);
  font-size: 0.95rem;
  text-align: center;
}

.bea-login-signup a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.bea-login-signup a:hover,
.bea-login-signup a:focus {
  color: var(--bea-orange);
}

.bea-login-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin-top: auto;
  padding: 2.5rem 0 0.25rem;
}

.bea-login-links a {
  color: var(--bea-gray);
  font-size: 0.9rem;
  text-decoration: none;
}

.bea-login-links a:hover,
.bea-login-links a:focus {
  color: var(--bea-orange);
}

/*
 * Register screen (ui_mockups/register_screen_mockup.png): reuses the login layout (body.bea-login-page,
 * .bea-login*) with first/last name side by side, icon inputs (partials/auth_input.html), the Terms
 * checkbox and the .bea-btn-glow "Create account" submit.
 */
.bea-input-icon.no-start .form-control {
  padding-left: 1rem;
}

.bea-signup .bea-login-lead {
  margin-bottom: 1.75rem;
}

.bea-signup-terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.85rem;
  margin: 1.25rem 0 2rem;
  padding-left: 0;
}

.bea-signup-terms .form-check-input {
  flex-shrink: 0;
  float: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  border: 1px solid #3a3a3a;
  border-radius: 0.4rem;
  background-color: #141414;
}

.bea-signup-terms .form-check-input:checked[type="checkbox"] {
  --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23141414' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='m5 10 3.5 3.5L15 7'/%3e%3c/svg%3e");
  border-color: #f4e3c8;
  background-color: #f4e3c8;
}

.bea-signup-terms .form-check-label {
  flex: 1 1 0;
  color: rgba(242, 242, 242, 0.7);
  font-size: 0.95rem;
}

.bea-signup-terms .form-check-label a {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.bea-signup-terms .form-check-label a:hover,
.bea-signup-terms .form-check-label a:focus {
  color: var(--bea-orange);
}

.bea-signup-terms .invalid-feedback {
  flex-basis: 100%;
}

/* Buttons */
.btn-primary {
  --bs-btn-color: #000;
  --bs-btn-bg: var(--bea-orange);
  --bs-btn-border-color: var(--bea-orange);
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: var(--bea-orange-hover);
  --bs-btn-hover-border-color: var(--bea-orange-hover);
  --bs-btn-focus-shadow-rgb: 255, 106, 0;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: var(--bea-orange-active);
  --bs-btn-active-border-color: var(--bea-orange-active);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: var(--bea-orange);
  --bs-btn-disabled-border-color: var(--bea-orange);
  font-weight: 600;
}

.btn-outline-primary {
  --bs-btn-color: var(--bea-orange);
  --bs-btn-border-color: var(--bea-orange);
  --bs-btn-hover-color: #000;
  --bs-btn-hover-bg: var(--bea-orange);
  --bs-btn-hover-border-color: var(--bea-orange);
  --bs-btn-focus-shadow-rgb: 255, 106, 0;
  --bs-btn-active-color: #000;
  --bs-btn-active-bg: var(--bea-orange-active);
  --bs-btn-active-border-color: var(--bea-orange-active);
  font-weight: 600;
}

.text-bg-primary,
.badge.bg-primary {
  color: #000 !important;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--bea-orange);
}

.form-check-input:checked {
  background-color: var(--bea-orange);
  border-color: var(--bea-orange);
}

/* Top bar */
.bea-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--bea-topbar-height);
  background: #000;
  border-bottom: 2px solid var(--bea-orange);
}

.bea-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.bea-brand:hover,
.bea-brand:focus {
  color: var(--bea-orange);
}

.bea-brand img {
  width: 1.75rem;
  height: 1.75rem;
}

.bea-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--bea-orange);
  text-decoration: none;
}

.bea-back:hover,
.bea-back:focus {
  background: var(--bea-charcoal-2);
  color: var(--bea-orange-hover);
}

/* Main content */
.bea-main {
  flex: 1 0 auto;
}

.bea-card {
  background: var(--bea-charcoal);
  border: 1px solid #2c2c2c;
  border-radius: 0.75rem;
}

.bea-hero {
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.25), transparent 60%),
    var(--bea-charcoal);
  border: 1px solid #2c2c2c;
  border-radius: 1rem;
}

.bea-section-title {
  border-left: 4px solid var(--bea-orange);
  padding-left: 0.75rem;
}

/* Floating consultation pill (ui_mockups/home_screen_mockup.png) */
.bea-cta {
  position: fixed;
  left: var(--bea-cta-gap);
  right: var(--bea-cta-gap);
  bottom: calc(var(--bea-cta-gap) + env(safe-area-inset-bottom));
  z-index: 1031;
  max-width: calc(720px - 1.5rem);
  height: var(--bea-cta-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem 0 0.5rem;
  border: 1px solid #333;
  border-radius: 50rem;
  background: rgba(30, 30, 30, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.6);
}

.bea-cta:hover,
.bea-cta:focus {
  border-color: var(--bea-orange);
  color: #fff;
}

.bea-cta-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-image: linear-gradient(180deg, #fb7c36 0%, #f2581a 100%);
  color: #fff;
  box-shadow: 0 0.25rem 0.9rem rgba(255, 106, 0, 0.45);
}

.bea-cta-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.bea-cta-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.bea-cta-title {
  font-weight: 600;
}

.bea-cta-sub {
  color: var(--bea-gray);
  font-size: 0.8rem;
}

.bea-cta-chevron {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--bea-gray);
}

body.has-footer .bea-cta {
  bottom: calc(var(--bea-footer-height) + var(--bea-cta-gap) + env(safe-area-inset-bottom));
}

/* Bottom nav (authenticated users): Home, Events, Saved, Settings. */
.bea-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  height: calc(var(--bea-footer-height) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #0b0b0b;
  border-top: 1px solid #222;
}

.bea-footer a {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  height: var(--bea-footer-height);
  color: #8a8a8a;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}

.bea-footer a:hover,
.bea-footer a:focus {
  color: #fff;
}

.bea-footer a.active {
  color: var(--bea-orange);
}

/* Orange bar above the active tab. */
.bea-footer a.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1.75rem;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 0 0 3px 3px;
  background: var(--bea-orange);
}

.bea-footer svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Notifications bell (top right) with a red dot for unread notifications. */
.bea-bell {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #333;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
}

.bea-bell:hover,
.bea-bell:focus,
.bea-bell.active {
  border-color: var(--bea-orange);
  color: var(--bea-orange);
}

.bea-bell svg {
  width: 1.3rem;
  height: 1.3rem;
}

.bea-topbar .bea-bell {
  width: 2.5rem;
  height: 2.5rem;
}

.bea-bell-dot {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  width: 0.6rem;
  height: 0.6rem;
  border: 2px solid var(--bea-black);
  border-radius: 50%;
  background: #ff3b30;
}

/*
 * Rider Home (ui_mockups/home_screen_mockup.png): greeting header with the road-name initials and the bell,
 * the orange "Next up" card, All/My events tiles and the "This week" list.
 */
/* Lets flex children shrink so .text-truncate works (Bootstrap has no min-width utility). */
.min-w-0 {
  min-width: 0;
}

.bea-home-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: calc(env(safe-area-inset-top) + 0.75rem) 0.75rem 0.5rem;
  background: var(--bea-black);
}

.bea-home-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.bea-avatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #333;
  border-radius: 50%;
  background: var(--bea-charcoal);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bea-greeting {
  color: var(--bea-gray);
  font-size: 0.85rem;
  line-height: 1.2;
}

.bea-road-name {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.bea-home-title {
  margin: 0.5rem 0 1.25rem;
  color: #fff;
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.bea-next {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 255, 255, 0.15), transparent 55%),
    linear-gradient(135deg, #fb7c36 0%, #f56623 45%, #d9480f 100%);
  color: #fff;
  box-shadow: 0 1rem 2.5rem rgba(255, 106, 0, 0.3);
}

.bea-next-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 50rem;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.8rem;
  font-weight: 500;
}

.bea-next-pill-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #fff;
}

.bea-next-title {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.bea-next-empty .bea-next-title {
  margin-bottom: 0.25rem;
}

.bea-next-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  font-size: 0.9rem;
}

.bea-next-meta li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bea-next-meta svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.bea-next-go {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #111;
  color: #fff;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.35);
}

.bea-next-go:hover,
.bea-next-go:focus {
  background: #000;
  color: var(--bea-orange);
}

.bea-next-go svg {
  width: 1.35rem;
  height: 1.35rem;
}

.bea-date-box {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.5rem;
  border: 1px solid #333;
  border-radius: 0.75rem;
  background: var(--bea-charcoal-2);
  color: #fff;
  line-height: 1.1;
}

.bea-date-box span {
  color: var(--bea-gray);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
}

.bea-date-box strong {
  font-size: 1.35rem;
  font-weight: 700;
}

.bea-date-box-light {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
}

.bea-date-box-light span {
  color: rgba(255, 255, 255, 0.85);
}

.bea-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.bea-tile {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid #2c2c2c;
  border-radius: 1.25rem;
  background: var(--bea-charcoal);
  color: #fff;
  text-decoration: none;
}

.bea-tile:hover,
.bea-tile:focus {
  border-color: var(--bea-orange);
  color: #fff;
}

.bea-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #333;
  border-radius: 0.65rem;
  background: var(--bea-charcoal-2);
}

.bea-tile-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.bea-tile-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.bea-tile-sub {
  color: var(--bea-gray);
  font-size: 0.85rem;
}

.bea-home-section-title {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}

.bea-see-all {
  color: var(--bea-gray);
  font-size: 0.9rem;
  text-decoration: none;
}

.bea-see-all:hover,
.bea-see-all:focus {
  color: var(--bea-orange);
}

.bea-week {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bea-week-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.75rem 0.9rem 0.9rem;
  border: 1px solid #2c2c2c;
  border-radius: 1.25rem;
  background: var(--bea-charcoal);
}

.bea-week-title {
  margin: 0 0 0.15rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.bea-week-item.is-cancelled .bea-week-title {
  color: var(--bs-secondary-color);
  text-decoration: line-through;
}

.bea-week-meta {
  color: var(--bea-gray);
  font-size: 0.85rem;
}

.bea-week-item .bea-star {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #333;
}

.bea-week-item .bea-star svg {
  width: 1.2rem;
  height: 1.2rem;
}

.bea-week-empty {
  color: var(--bea-gray);
}

/*
 * Settings (ui_mockups/settings_screen_mockup_part_one.png and _part_two.png): large title header, no consultation
 * pill, the road-name card, then labelled rounded groups (Profile, Notifications + push, More, Preferences) of
 * .bea-settings-row rows: icon box, title, value or switch, chevron. Profile rows are <details> that open an
 * inline editor. .bea-settings-line marks the rows separated by a divider.
 */
body.has-footer.bea-settings-page {
  padding-bottom: calc(var(--bea-footer-height) + 1.5rem + env(safe-area-inset-bottom));
}

.bea-settings-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 1.75rem;
  padding: 1.25rem;
  border: 1px solid #2c2c2c;
  border-radius: 1.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)),
    var(--bea-charcoal);
}

.bea-settings-avatar {
  width: 3.75rem;
  height: 3.75rem;
  border-color: #3a3a3a;
  background: var(--bea-charcoal-2);
  color: #f4e3c8;
  font-size: 1.05rem;
}

.bea-settings-road-name {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.bea-settings-road-note {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--bea-gray);
  font-size: 0.85rem;
}

.bea-settings-road-note svg {
  flex-shrink: 0;
  width: 0.9rem;
  height: 0.9rem;
}

.bea-settings-label {
  margin: 0 0 0.5rem 0.25rem;
  color: var(--bea-gray);
  font-size: 0.85rem;
  font-weight: 500;
}

.bea-settings-group {
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  border: 1px solid #2c2c2c;
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--bea-charcoal);
}

/* The push mini section sits just under the notification switches. */
#notification-toggles {
  margin-bottom: 0.75rem;
}

.bea-settings-line ~ .bea-settings-line {
  border-top: 1px solid #2c2c2c;
}

.bea-settings-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  min-height: 3.75rem;
  padding: 0.75rem 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

:is(a, button, summary).bea-settings-row {
  cursor: pointer;
}

:is(a, button, summary).bea-settings-row:hover,
:is(a, button, summary).bea-settings-row:focus-visible {
  color: #fff;
}

:is(a, button, summary).bea-settings-row:hover .bea-settings-chevron,
:is(a, button, summary).bea-settings-row:focus-visible .bea-settings-chevron,
:is(a, button, summary).bea-settings-row:hover .bea-settings-icon,
:is(a, button, summary).bea-settings-row:focus-visible .bea-settings-icon {
  color: var(--bea-orange);
}

:is(a, button, summary).bea-settings-row:focus-visible {
  outline: 2px solid var(--bea-orange);
  outline-offset: 2px;
  border-radius: 0.5rem;
}

.bea-settings-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #333;
  border-radius: 0.6rem;
  background: var(--bea-charcoal-2);
  color: #fff;
}

.bea-settings-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.bea-settings-title {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

.bea-settings-value {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 60%;
  color: rgba(242, 242, 242, 0.7);
  font-size: 0.95rem;
}

.bea-settings-chevron {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--bea-gray);
  transition: transform 0.2s ease;
}

.bea-settings-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
}

label.bea-settings-text {
  cursor: pointer;
}

.bea-settings-sub {
  color: var(--bea-gray);
  font-size: 0.85rem;
  line-height: 1.3;
}

/* Profile rows: <details> with the row as <summary> and the inline editor below it. */
.bea-settings-item > summary {
  list-style: none;
}

.bea-settings-item > summary::-webkit-details-marker {
  display: none;
}

.bea-settings-item[open] > summary .bea-settings-chevron {
  transform: rotate(90deg);
  color: var(--bea-orange);
}

.bea-settings-editor {
  padding: 0 0 1rem;
}

.bea-settings-editor .form-control,
.bea-settings-editor .form-select {
  min-height: 3rem;
  border-color: #2e2e2e;
  border-radius: 0.9rem;
  background-color: #141414;
  color: #fff;
}

.bea-settings-editor .form-text {
  margin-top: 0.4rem;
}

.bea-settings-save {
  display: inline-flex;
  width: auto;
  min-height: 2.75rem;
  margin-top: 0.75rem;
  padding: 0 1.75rem;
  box-shadow: 0 0.5rem 1.25rem rgba(255, 106, 0, 0.25);
}

.bea-settings-status,
.bea-settings-note {
  margin: 0;
  padding: 0.75rem 0;
  font-size: 0.85rem;
}

.bea-settings-status {
  color: #75d99a;
}

.bea-settings-note {
  color: #ffb27a;
}

/* Notification switches: cream track with a dark knob when on, as in the mockup. */
.bea-switch {
  flex-shrink: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.bea-switch .form-check-input {
  float: none;
  width: 3.25rem;
  height: 1.85rem;
  margin: 0;
  border-color: #3a3a3a;
  background-color: #141414;
  cursor: pointer;
}

.bea-switch .form-check-input:checked {
  --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23141414'/%3e%3c/svg%3e");
  border-color: #f4e3c8;
  background-color: #f4e3c8;
}

.bea-settings-switch:has(.form-check-input:disabled) .bea-settings-text {
  opacity: 0.5;
}

.bea-settings-switch:has(.form-check-input:disabled) .form-check-input {
  cursor: default;
}

/* Push on this device (notifications/partials/push_controls.html). */
.bea-push-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0 1rem;
}

.bea-push-btn {
  min-height: 3rem;
  font-size: 0.95rem;
}

.bea-push-btn.bea-btn-glow {
  box-shadow: 0 0.5rem 1.25rem rgba(255, 106, 0, 0.25);
}

.bea-push-hint {
  width: 100%;
  margin: 0.25rem 0 0;
  color: var(--bea-gray);
  font-size: 0.8rem;
}

/* Change password: the Log in layout (.bea-login*) with its background, reached from Settings. */
body.bea-password-page {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--bea-black);
}

.bea-password {
  padding-bottom: 1rem;
}

/*
 * About (ui_mockups/about_screen_mockup.png): round Back button instead of the top bar, the centered logo, the
 * large title and intro, then the "Partners" carousel: swipeable cards (CSS scroll snap, the next card peeking in
 * from the right) with a small kicker line, the name (first word orange), a tagline and a domain pill with an
 * arrow; pill-shaped dots (about.js) and the version line below.
 */
.bea-about-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.75rem;
  text-align: center;
}

.bea-about-logo {
  width: min(32vw, 7.5rem);
  height: auto;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0.5rem 1.25rem rgba(0, 0, 0, 0.5));
}

.bea-about-title {
  margin: 0 0 0.6rem;
}

.bea-about-intro {
  max-width: 26rem;
  margin: 0;
  color: rgba(242, 242, 242, 0.8);
  font-size: 1rem;
  line-height: 1.55;
}

.bea-partners-label {
  margin: 0 0 0.6rem;
  color: var(--bea-gray);
  font-size: 0.85rem;
  font-weight: 500;
}

.bea-carousel-track {
  position: relative;
  display: flex;
  gap: 0.75rem;
  /* Bleed to the page edges so the next card peeks in from the right. */
  margin: 0 calc(-1 * var(--bs-gutter-x, 1.5rem) * 0.5);
  padding: 0 calc(var(--bs-gutter-x, 1.5rem) * 0.5) 0.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bea-carousel-track::-webkit-scrollbar {
  display: none;
}

.bea-carousel-track:focus-visible {
  outline: 0;
}

.bea-carousel-track:focus-visible .bea-partner {
  border-color: var(--bs-primary-border-subtle);
}

.bea-partner {
  display: flex;
  flex: 0 0 calc(100% - 2.5rem);
  flex-direction: column;
  min-width: 0;
  min-height: 11.5rem;
  padding: 1.25rem;
  border: 1px solid #333;
  border-radius: 1.5rem;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 255, 255, 0.07), transparent 60%),
    linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.45);
  scroll-snap-align: start;
}

.bea-carousel-track > .bea-partner:only-child {
  flex-basis: 100%;
}

/* Grows so the link pill sits at the bottom of the card. */
.bea-partner-body {
  flex: 1 0 auto;
  padding-bottom: 1.5rem;
}

.bea-partner-logo {
  display: block;
  max-width: 60%;
  max-height: 2.75rem;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

.bea-partner-kicker {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.3;
}

.bea-partner-name {
  margin: 0.1rem 0 0.2rem;
  color: #fff;
  font-size: clamp(1.6rem, 7.5vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.bea-partner-accent {
  color: var(--bea-orange);
}

.bea-partner-tagline {
  margin: 0;
  color: rgba(242, 242, 242, 0.75);
  font-size: 0.9rem;
  line-height: 1.4;
}

.bea-partner-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  border: 1px solid #333;
  border-radius: 50rem;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.bea-partner-link:hover,
.bea-partner-link:focus-visible {
  border-color: #555;
  background: var(--bea-charcoal-2);
  color: #fff;
}

.bea-partner-link-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #fff;
  color: #000;
}

.bea-partner-link-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.bea-partner-empty {
  align-items: center;
  justify-content: center;
  min-height: 8rem;
  color: var(--bs-secondary-color);
  text-align: center;
}

.bea-carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 0.6rem;
}

/* The button is the tap target; ::before is the visible dot (a pill when active). */
.bea-carousel-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.75rem;
  height: 1.25rem;
  padding: 0 0.15rem;
  border: 0;
  border-radius: 50rem;
  background: transparent;
}

.bea-carousel-dot::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50rem;
  background: #4a4a4a;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.bea-carousel-dot.active::before {
  width: 1.1rem;
  background: #f2e6d6;
}

.bea-carousel-dot:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color);
}

.bea-about-version {
  margin: 1.5rem 0 0.5rem;
  color: var(--bea-gray);
  font-size: 0.85rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .bea-carousel-track {
    scroll-behavior: auto;
  }

  .bea-carousel-dot {
    transition: none;
  }
}

/*
 * Legal (ui_mockups/legal_screen_mockup.png): round Back button above the large title, a pill-shaped
 * Terms of use / Privacy policy toggle (white active tab) and the numbered terms on the black page.
 */
.bea-legal-title {
  margin-top: 1.25rem;
}

.bea-legal-tabs {
  flex-wrap: nowrap;
  gap: 0.25rem;
  margin: 0.25rem 0 1.25rem;
  padding: 0.3rem;
  border: 1px solid #333;
  border-radius: 50rem;
  background: var(--bea-charcoal);
}

.bea-legal-tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 50rem;
  background: transparent;
  color: rgba(242, 242, 242, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bea-legal-tab:hover {
  color: #fff;
}

.bea-legal-tab:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem var(--bs-focus-ring-color);
}

.bea-legal-tab.active {
  background: #fff;
  color: #000;
  font-weight: 600;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.35);
}

.bea-legal-doc {
  color: rgba(242, 242, 242, 0.85);
  font-size: 1rem;
  line-height: 1.6;
}

.bea-legal-doc:focus-visible {
  outline: 0;
}

.bea-legal-doc p {
  margin-bottom: 1.5rem;
}

.bea-legal-updated {
  color: var(--bea-gray);
  font-size: 0.85rem;
}

.bea-legal-doc p.bea-legal-updated {
  margin-bottom: 1.25rem;
}

.bea-legal-heading {
  margin: 0 0 0.4rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Sub-points of a section (a., b., ...) and their nested points (i., ii., ...), numbered as in the source documents. */
.bea-legal-list {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.bea-legal-list li {
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}

.bea-legal-list li::marker {
  color: var(--bea-gray);
}

.bea-legal-list .bea-legal-list {
  margin: 0.6rem 0 0;
}

.bea-legal-list .bea-legal-list li {
  margin-bottom: 0.4rem;
}

.bea-legal-doc a {
  overflow-wrap: anywhere;
}

/* Forms (accounts, submissions) */
.form-control[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-check-input[aria-invalid="true"] {
  border-color: var(--bs-form-invalid-border-color);
}

.form-control:disabled {
  background-color: var(--bea-charcoal-2);
  color: var(--bs-secondary-color);
}

.bea-help ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.bea-auth-card {
  max-width: 30rem;
}

/*
 * Events (ui_mockups/events_screen_mockup.png): sticky header with the large title, the bell and the
 * always-visible keyword search; the caret chip expands state/city/date filters styled as the mockup's
 * chips. Cards are grouped under month headers and show a date box, title, "City, ST · time" and the star.
 */
.bea-events-title {
  color: #fff;
  font-size: clamp(1.9rem, 8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.bea-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bea-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid #333;
  border-radius: 50rem;
  background: var(--bea-charcoal);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.bea-chip:hover,
.bea-chip:focus-visible {
  border-color: #555;
  background: var(--bea-charcoal-2);
  color: #fff;
}

.bea-chip.active {
  border-color: #fff;
  background: #fff;
  color: #000;
  font-weight: 600;
}

.bea-chip-caret {
  width: 1.1rem;
  height: 1.1rem;
  color: rgba(242, 242, 242, 0.75);
  transition: transform 0.2s ease;
}

.bea-filters {
  margin-top: 0.85rem;
}

.bea-search {
  position: relative;
}

.bea-search .form-control {
  min-height: 2.75rem;
  padding-left: 2.75rem;
  border-color: #333;
  border-radius: 50rem;
  background-color: var(--bea-charcoal);
  color: #fff;
}

.bea-search .form-control::placeholder {
  color: rgba(242, 242, 242, 0.45);
}

.bea-search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.15rem;
  height: 1.15rem;
  transform: translateY(-50%);
  color: var(--bea-gray);
  pointer-events: none;
}

.bea-search:focus-within .bea-search-icon {
  color: var(--bea-orange);
}

.bea-filter-toggle {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
}

.bea-filter-toggle[aria-expanded="true"] {
  border-color: var(--bea-orange);
}

.bea-filter-toggle[aria-expanded="true"] .bea-chip-caret {
  transform: rotate(180deg);
  color: var(--bea-orange);
}

.bea-filters-more {
  padding-top: 0.75rem;
}

.bea-filter-label {
  margin: 0 0 0.3rem 0.75rem;
  color: var(--bea-gray);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bea-filters-more .form-control,
.bea-filters .ts-wrapper .ts-control {
  min-height: 2.5rem;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  padding-left: 1rem;
  border-color: #333;
  border-radius: 50rem;
  background-color: var(--bea-charcoal);
  color: #fff;
  font-size: 0.9rem;
}

/* Chevron like the mockup's "Any date" / "All cities" chips. */
.bea-filters .ts-wrapper.single {
  --ts-pr-caret: 2rem;
}

.bea-filters .ts-wrapper.single .ts-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bfbfbf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
  background-position: right 0.85rem center;
  background-repeat: no-repeat;
  background-size: 1rem;
}

.bea-filters .ts-dropdown {
  border-radius: 1rem;
  overflow: hidden;
}

.bea-filters-more input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.75);
}

/* Full-width Clear (filters apply live, so there is no Search button beside it). */
.bea-filters-clear {
  width: 100%;
  min-height: 3rem;
  font-size: 1rem;
  font-weight: 600;
}

.bea-filters #filter-errors .alert {
  margin: 0.75rem 0 0;
  border-radius: 1rem;
}

.bea-event-list {
  display: grid;
  gap: 0.75rem;
}

.bea-month {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.25rem;
}

.bea-month:not(:first-child) {
  margin-top: 0.75rem;
}

.bea-month-title {
  margin: 0;
  color: var(--bea-gray);
  font-size: 0.85rem;
  font-weight: 500;
}

.bea-month-count {
  color: var(--bea-gray);
  font-size: 0.8rem;
}

.bea-event {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.75rem 0.9rem 0.9rem;
  border: 1px solid #2c2c2c;
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--bea-charcoal);
  scroll-margin-top: 10rem;
}

.bea-event .bea-date-box {
  width: 3.25rem;
}

/* Orange month on saved events (the star swap updates it without a server re-render). */
.bea-event:has(.bea-star.is-favorite) .bea-date-box span {
  color: var(--bea-orange);
}

/* The title and meta link to the event detail page. */
.bea-event-body {
  display: block;
  color: inherit;
  text-decoration: none;
}

.bea-event-body:hover .bea-event-title,
.bea-event-body:focus-visible .bea-event-title {
  color: var(--bea-orange-hover);
}

.bea-event-body:focus-visible {
  outline: 2px solid var(--bea-orange);
  outline-offset: 4px;
  border-radius: 0.5rem;
}

.bea-event-title {
  margin: 0 0 0.2rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.bea-event.is-cancelled .bea-event-title {
  text-decoration: line-through;
  color: var(--bs-secondary-color);
}

.bea-event-meta {
  display: block;
  color: var(--bea-gray);
  font-size: 0.85rem;
}

.bea-events-empty {
  padding: 2rem 1.25rem;
  border: 1px solid #2c2c2c;
  border-radius: 1.25rem;
  background: var(--bea-charcoal);
  color: rgba(242, 242, 242, 0.85);
  text-align: center;
}

/*
 * My Events empty state (ui_mockups/empty_my_events_screen_mockup.png): "Tap to save" graphic, title, text,
 * the glowing Browse events button and "Popular this week" (Home's .bea-week cards).
 */
.bea-saved-empty-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  text-align: center;
}

.bea-saved-empty-img {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin: 0.5rem auto 1.5rem;
}

.bea-saved-empty-title {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}

.bea-saved-empty-text {
  max-width: 24rem;
  margin: 0 0 1.5rem;
  color: rgba(242, 242, 242, 0.7);
  font-size: 0.95rem;
  line-height: 1.5;
}

.bea-saved-empty-btn {
  display: inline-flex;
  gap: 0.6rem;
  width: auto;
  padding: 0 2rem;
}

.bea-saved-empty-btn svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.bea-popular-link {
  color: inherit;
  text-decoration: none;
}

.bea-popular-link:hover .bea-week-title,
.bea-popular-link:focus-visible .bea-week-title {
  color: var(--bea-orange);
}

.bea-star-form {
  flex-shrink: 0;
}

.bea-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bea-gray);
  transition: transform 0.15s ease, color 0.15s ease;
}

.bea-star svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linejoin: round;
}

.bea-star:hover,
.bea-star:focus-visible {
  background: var(--bea-charcoal-2);
  color: #bdbdbd;
}

.bea-star.is-favorite,
.bea-star.is-favorite:hover,
.bea-star.is-favorite:focus-visible {
  color: var(--bea-orange);
}

.bea-star.is-favorite svg {
  fill: currentColor;
}

.bea-star:active {
  transform: scale(0.88);
}

/* Round outlined star on event cards; saved events get an orange-tinted circle. */
.bea-event .bea-star {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #333;
}

.bea-event .bea-star svg {
  width: 1.2rem;
  height: 1.2rem;
}

.bea-event .bea-star.is-favorite {
  border-color: rgba(255, 106, 0, 0.35);
  background: rgba(255, 106, 0, 0.16);
}

#event-results.htmx-request {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

/*
 * Event detail (ui_mockups/event_detail_screen_mockup.png, without its reminder row or "Listed by" line):
 * round Back and Share buttons instead of the top bar, a large date box, the title, a card with the date/time
 * and location rows, "About this event" and the Save to My Events button kept just above the consultation pill.
 */
.bea-detail-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: calc(0.75rem + env(safe-area-inset-top)) 0.75rem 0.5rem;
  background: linear-gradient(180deg, var(--bea-black) 60%, rgba(11, 11, 11, 0));
}

.bea-round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-decoration: none;
}

.bea-round-btn:hover,
.bea-round-btn:focus-visible {
  border-color: #555;
  background: var(--bea-charcoal-2);
  color: #fff;
}

.bea-round-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.bea-detail-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  text-align: center;
}

.bea-detail-date {
  width: 5.75rem;
  height: 6.25rem;
  margin-bottom: 1.25rem;
  border-color: #3a3a3a;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #2a2a2a 0%, #161616 100%);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.5);
}

.bea-detail-date span {
  color: rgba(242, 242, 242, 0.85);
  font-size: 0.75rem;
}

.bea-detail-date strong {
  font-size: 2.25rem;
  line-height: 1.15;
}

.bea-detail-date small {
  color: var(--bea-gray);
  font-size: 0.75rem;
}

.bea-detail-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 7vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.bea-detail.is-cancelled .bea-detail-title {
  text-decoration: line-through;
  color: var(--bs-secondary-color);
}

.bea-detail-info {
  margin: 0;
  padding: 0 1rem;
  list-style: none;
  border: 1px solid #2c2c2c;
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--bea-charcoal);
}

.bea-detail-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 0;
}

.bea-detail-info li + li {
  border-top: 1px solid #2c2c2c;
}

.bea-detail-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #333;
  border-radius: 0.65rem;
  background: var(--bea-charcoal-2);
  color: #fff;
}

.bea-detail-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.bea-detail-primary {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}

.bea-detail-secondary {
  margin: 0.15rem 0 0;
  color: var(--bea-gray);
  font-size: 0.875rem;
}

.bea-detail-about {
  margin-top: 1.5rem;
  color: rgba(242, 242, 242, 0.75);
}

.bea-detail-about-title {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
}

.bea-detail-img {
  display: block;
  width: 100%;
  max-height: 16rem;
  margin-bottom: 0.75rem;
  object-fit: cover;
  border-radius: 1rem;
}

/* Sticks to the bottom of the screen, just above the consultation pill (and the footer nav). */
.bea-detail-actions {
  position: sticky;
  bottom: calc(var(--bea-cta-height) + 2 * var(--bea-cta-gap) + env(safe-area-inset-bottom));
  z-index: 10;
  margin-top: 1.5rem;
  padding: 0.75rem 0 0;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0), var(--bea-black) 40%);
}

body.has-footer .bea-detail-actions {
  bottom: calc(var(--bea-footer-height) + var(--bea-cta-height) + 2 * var(--bea-cta-gap) + env(safe-area-inset-bottom));
}

/* Not saved: outlined orange. Saved (.is-favorite): filled orange gradient with a filled star. */
.bea-save-btn {
  --bs-btn-color: var(--bea-orange);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--bea-orange);
  --bs-btn-hover-color: var(--bea-orange-hover);
  --bs-btn-hover-bg: rgba(255, 106, 0, 0.08);
  --bs-btn-hover-border-color: var(--bea-orange-hover);
  --bs-btn-active-color: var(--bea-orange);
  --bs-btn-active-bg: rgba(255, 106, 0, 0.16);
  --bs-btn-active-border-color: var(--bea-orange-active);
  --bs-btn-focus-shadow-rgb: 255, 106, 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 3.5rem;
  border-width: 2px;
  border-radius: 50rem;
  font-weight: 700;
}

.bea-save-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.bea-save-btn.is-favorite {
  --bs-btn-color: #fff;
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: #fff;
  --bs-btn-active-border-color: transparent;
  background-color: var(--bea-orange);
  background-image: linear-gradient(180deg, #fb7c36 0%, #f2581a 100%);
  box-shadow: 0 0.75rem 2rem rgba(255, 106, 0, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.bea-save-btn.is-favorite:hover,
.bea-save-btn.is-favorite:focus-visible {
  filter: brightness(1.06);
}

.bea-save-btn.is-favorite svg {
  fill: currentColor;
}

.bea-save-form.htmx-request .bea-save-btn {
  opacity: 0.7;
}

/* "Event link copied" message from the Share button (events/js/event_detail.js). */
.bea-toast {
  position: fixed;
  top: calc(4.25rem + env(safe-area-inset-top));
  left: 50%;
  z-index: 1040;
  max-width: calc(100% - 2rem);
  padding: 0.6rem 1.1rem;
  transform: translateX(-50%);
  border: 1px solid #333;
  border-radius: 50rem;
  background: rgba(30, 30, 30, 0.95);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.5);
  overflow-wrap: anywhere;
}

.bea-toast[hidden] {
  display: none;
}

/*
 * Contact us (ui_mockups/contact_us_screen_mockup.png): large title header (Settings tab active for riders), the
 * lead, icon inputs (partials/auth_input.html), the info hint and the .bea-btn-glow "Send message" button.
 * The Request a Consultation form shares the inputs, hint and button (submissions/partials/submission_form.html).
 */
.bea-contact-lead {
  margin-bottom: 1.5rem;
  color: rgba(242, 242, 242, 0.7);
  font-size: 1rem;
  line-height: 1.5;
}

.bea-submission-form .form-label {
  margin-bottom: 0.5rem;
  color: rgba(242, 242, 242, 0.8);
  font-size: 0.9rem;
}

.bea-input-icon textarea.form-control {
  min-height: 7.5rem;
  padding-top: 0.9rem;
  resize: vertical;
}

.bea-form-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.25rem 0 1.5rem;
  color: var(--bea-gray);
  font-size: 0.85rem;
  line-height: 1.45;
}

.bea-form-hint svg {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.05rem;
  color: rgba(242, 242, 242, 0.75);
}

.bea-btn-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.bea-submission-form.htmx-request .bea-btn-glow {
  opacity: 0.7;
}

/*
 * Free consultation (ui_mockups/consultation_screen_mockup.png, submissions/submission_form.html): round Back
 * button, the firm name above the large title, the lead, the Contact us inputs, the bordered shield notice and the
 * .bea-btn-glow "Submit consultation request" button. No consultation pill (this is where it leads).
 */
body.bea-consultation-page {
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

body.has-footer.bea-consultation-page {
  padding-bottom: calc(var(--bea-footer-height) + 1.5rem + env(safe-area-inset-bottom));
}

.bea-consultation-intro {
  margin-top: 0.25rem;
}

.bea-consultation-eyebrow {
  margin-bottom: 0.4rem;
  color: #f4e3c8;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
}

.bea-form-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.5rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid #2c2c2c;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--bea-charcoal);
  color: rgba(242, 242, 242, 0.75);
  font-size: 0.85rem;
  line-height: 1.5;
}

.bea-form-notice svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.05rem;
  color: rgba(242, 242, 242, 0.85);
}

/*
 * Message sent (ui_mockups/contact_us_submission_mockup.png, submissions/partials/thanks.html): full screen with
 * the check badge, title and lead, the "what happens next" card, the dashed "You sent" box with the message
 * (up to 100 characters) and Done / "Send another message" at the bottom. The consultation "Thank You!" screen
 * uses the same layout without the "You sent" box and the link. While it is on the page (thanks.html or swapped
 * in by HTMX) the top bar, page header, consultation pill and footer nav are hidden.
 */
body:has(.bea-sent),
body.has-footer:has(.bea-sent) {
  padding-bottom: env(safe-area-inset-bottom);
}

body:has(.bea-sent) :is(.bea-topbar, .bea-home-header, .bea-cta, .bea-footer, [data-sent-hide]) {
  display: none !important;
}

.bea-sent {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 26rem;
  min-height: calc(100vh - 2rem);
  min-height: calc(100dvh - 2rem - env(safe-area-inset-bottom));
  margin: 0 auto;
  padding-top: calc(env(safe-area-inset-top) + 1.5rem);
}

.bea-sent-hero {
  text-align: center;
}

.bea-sent-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.75rem;
  height: 5.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid #333;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08), transparent 70%),
    var(--bea-charcoal);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.6);
}

.bea-sent-check > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background-image: linear-gradient(180deg, #fb7c36 0%, #f2581a 100%);
  color: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(255, 106, 0, 0.45);
}

.bea-sent-check svg {
  width: 1.75rem;
  height: 1.75rem;
}

.bea-sent-title {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: clamp(1.75rem, 8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bea-sent-lead {
  margin-bottom: 1.5rem;
  color: rgba(242, 242, 242, 0.7);
  font-size: 0.95rem;
}

.bea-sent-steps {
  margin: 0 0 1rem;
  padding: 0 1rem;
  border: 1px solid #2c2c2c;
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--bea-charcoal);
  list-style: none;
}

.bea-sent-steps li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 0;
}

.bea-sent-steps li + li {
  border-top: 1px solid #2c2c2c;
}

.bea-sent-step-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #2e2e2e;
  border-radius: 0.65rem;
  background: var(--bea-charcoal-2);
  color: rgba(242, 242, 242, 0.85);
}

.bea-sent-step-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.bea-sent-step-title {
  margin: 0;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}

.bea-sent-step-text {
  margin: 0.15rem 0 0;
  color: var(--bea-gray);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.bea-sent-message {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px dashed #3a3a3a;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.bea-sent-message figcaption {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  color: var(--bea-gray);
  font-size: 0.8rem;
}

.bea-sent-message figcaption svg {
  width: 0.95rem;
  height: 0.95rem;
}

.bea-sent-message blockquote {
  color: rgba(242, 242, 242, 0.85);
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bea-sent-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
}

.bea-sent-another {
  padding: 0.5rem 1rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.bea-sent-another:hover,
.bea-sent-another:focus-visible {
  color: var(--bea-orange);
}

/* Notifications */
.bea-notification.is-unread {
  border-left: 4px solid var(--bea-orange);
}

.bea-notification-body {
  white-space: pre-line;
}

#notification-list.htmx-request {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

/* Infinite scroll sentinel (events and notifications lists) */
.bea-load-more-busy,
.bea-load-more.htmx-request .bea-load-more-label {
  display: none;
}

.bea-load-more.htmx-request .bea-load-more-busy {
  display: inline;
}

.bea-load-more.htmx-request {
  pointer-events: none;
  opacity: 0.6;
}

/* Tom Select (state/city filters) on the dark theme */
.ts-wrapper .ts-control,
.ts-wrapper.single.input-active .ts-control,
.ts-dropdown {
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  border-color: var(--bs-border-color);
}

.ts-dropdown .active {
  background-color: var(--bs-primary-bg-subtle);
  color: #fff;
}

.ts-wrapper.focus .ts-control {
  border-color: var(--bea-orange);
  box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

/* allauth pages without a custom template */
.bea-allauth main input:not([type="checkbox"]):not([type="hidden"]):not([type="submit"]) {
  display: block;
  width: 100%;
  margin-bottom: 0.75rem;
  padding: 0.375rem 0.75rem;
  color: var(--bs-body-color);
  background-color: var(--bea-charcoal);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
}

.bea-allauth main button[type="submit"] {
  padding: 0.5rem 1rem;
  color: #000;
  background: var(--bea-orange);
  border: 0;
  border-radius: 0.375rem;
  font-weight: 600;
}
