/*
 * Design tokens — shared across the public site.
 * The Candy Bar POS and Edit dashboard are separate, denser applications
 * and keep their own token sets, but reuse these colors/fonts where the
 * two systems overlap (black/white palette, Bebas Neue display font).
 */
:root {
  --nsy-ink: #111111;
  --nsy-ink-soft: rgba(17, 17, 17, 0.7);
  --nsy-paper: #ffffff;
  --nsy-paper-soft: #f5f5f5;
  --nsy-border: #e0e0e0;
  --nsy-focus-ring: #258cfb;

  --nsy-font-display: 'Bebas Neue', sans-serif;
  --nsy-font-body: 'DM Sans', sans-serif;

  --nsy-space-1: 4px;
  --nsy-space-2: 8px;
  --nsy-space-3: 16px;
  --nsy-space-4: 24px;
  --nsy-space-5: 32px;
  --nsy-space-6: 48px;

  /* WCAG/Apple HIG minimum touch target */
  --nsy-touch-target: 44px;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  background-color: #ffffff;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  margin-bottom: 0;
  background-color: #ffffff;
}

footer > div {
  box-shadow: 0 100vh 0 100vh #111111;
}

/* On phones the footer content is centered, matching the pages above it. */
@media (max-width: 768px) {
  footer {
    text-align: center;
  }

  footer .nsy-footer-social {
    justify-content: center;
  }
}

/* ── Navbar brand logo ─────────────────────────────────
 * Negative margins compensate for the navbar's own padding so the tall
 * logo doesn't inflate the bar; on phones a smaller logo without the
 * negative left margin stops it clipping at the screen edge.
 */
.nsy-brand-logo {
    height: 80px;
    width: auto;
    margin: -15px -20px;
}

@media (max-width: 575.98px) {
    .nsy-brand-logo {
        height: 56px;
        margin: -8px 0;
    }
}

/* ── Nav touch targets ─────────────────────────────────
 * Bootstrap's default nav-link/toggler padding renders under the 44px
 * minimum touch target (WCAG 2.5.5 / Apple HIG) on mobile widths.
 */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link {
    min-height: var(--nsy-touch-target);
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .navbar-toggler {
    min-width: var(--nsy-touch-target);
    min-height: var(--nsy-touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}