html {
  font-size: 14px;
}

@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;
}

.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;
}
/* ── Swipeable toolbar (mobile) ── */
.toolbar-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
}
.toolbar-scroll-container::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
}
.toolbar-nav {
    display: flex;
    flex-wrap: nowrap;
    min-width: max-content;
}
.toolbar-nav .nav-link {
    scroll-snap-align: start;
    font-size: .875rem;
}
/* On wider screens, centre the toolbar */
@media (min-width: 768px) {
    .toolbar-nav {
        min-width: unset;
        justify-content: center;
        width: 100%;
    }
}

/* ── Toolbar extra padding fix ── */
.toolbar-nav .nav-link {
    padding: 0.5rem 0.75rem !important;
}

/* ── Toolbar overflow containment fix ── */
.toolbar-scroll-container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}
/* Prevent body/html horizontal scroll from toolbar */
body {
    overflow-x: hidden;
    background-color: #f5f4f8; /* Subtle purple-gray background to make white cards pop */
}

/* ── Hard clamp page width — no horizontal scroll ever ── */
html {
    overflow-x: clip;
    max-width: 100vw;
}
body {
    overflow-x: clip;
    max-width: 100vw;
}

/* ── List Group / Card Overrides (Force Light Theme Everywhere) ── */
.card-header.bg-transparent h6.text-muted {
    color: #6c757d !important;
}

.list-group-item {
    background-color: #ffffff !important;
    color: #212529 !important;
}

.list-group-item.list-group-item-action:hover {
    background-color: #f8f9fa !important;
    color: #212529 !important;
}

.list-group-item .text-muted {
    color: #6c757d !important;
}

.list-group-item .bg-light {
    background-color: #f8f9fa !important;
}

/* ── Blog post body ── */
.blog-post-body h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.4rem; font-weight: 700; }
.blog-post-body h3 { margin-top: 2rem; margin-bottom: .75rem; font-size: 1.15rem; font-weight: 700; }
.blog-post-body p  { font-size: 1.05rem; line-height: 1.8; color: #333; margin-bottom: 1.2rem; }
.blog-post-body pre { background: #1e1e2e; color: #cdd6f4; border-radius: .5rem; padding: 1.25rem 1.5rem; overflow-x: auto; margin: 1.5rem 0; font-size: .88rem; line-height: 1.6; }
.blog-post-body code { background: #f0ecff; color: #593196; padding: .15em .4em; border-radius: .25rem; font-size: .9em; }
.blog-post-body pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.blog-post-body ol, .blog-post-body ul { font-size: 1.05rem; line-height: 1.8; color: #333; padding-left: 1.5rem; margin-bottom: 1.2rem; }
.blog-post-body li { margin-bottom: .5rem; }
.blog-post-body strong { color: #1a1a2e; }
.blog-post-body hr { border: none; border-top: 1px solid #e0d6f5; margin: 2.5rem 0; }
.blog-post-body blockquote { border-left: 4px solid #9b65e0; padding: .75rem 1.25rem; margin: 1.5rem 0; background: #f0ecff; border-radius: 0 .5rem .5rem 0; color: #555; }

/* ── Home/contact list click feedback ── */
.contact-row {
    cursor: pointer;
    transition: background-color .08s ease, box-shadow .08s ease;
}
.contact-row:hover {
    background-color: #f3eef9;
}
.contact-row:active,
.contact-row.is-pending {
    background-color: #e4d4f5 !important;
    box-shadow: inset 0 0 0 1px #c4a3e8;
}
.contact-row .contact-row-miss {
    display: none;
    width: 100%;
    font-size: .7rem;
    color: #b02a37;
    padding-left: 3.25rem;
    padding-bottom: .15rem;
}
.contact-row.has-miss {
    background-color: #f8d7da !important;
}
.contact-row.has-miss .contact-row-miss {
    display: block;
}


/* ── Contact internal notes: first-line collapse via <details> ── */
.contact-note-body > summary {
  list-style: none;
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: .35rem;
}
.contact-note-body > summary::-webkit-details-marker { display: none; }
.contact-note-caret {
  display: inline-block;
  font-size: .75rem;
  line-height: 1.4;
  color: #6c757d;
  transition: transform .15s ease;
  flex-shrink: 0;
  margin-top: .1rem;
}
.contact-note-body[open] > summary .contact-note-caret {
  transform: rotate(90deg);
}
.contact-note-first-line {
  flex: 1;
  min-width: 0;
}
.contact-note-rest {
  margin-top: .35rem;
  padding-left: 1.1rem;
}

/* ── Booked payout breakdown ── */
.payout-breakdown-heading,
.payout-breakdown-cell {
    width: 2.5rem;
    min-width: 2.5rem;
}
.payout-breakdown > summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    line-height: 1;
}
.payout-breakdown > summary::-webkit-details-marker {
    display: none;
}
.payout-breakdown-popup {
    position: absolute;
    z-index: 2;
    right: 0;
    min-width: 10rem;
    white-space: nowrap;
}
.payout-breakdown {
    position: relative;
}
