/* Global, reusable component styles (unlayered to outrank Bootstrap) */
/* Width token (local). Consider moving to design-tokens.css if reused broadly */
:root { --btn-token-fixed-width: 18rem; }
/* Primary button using semantic tokens */
button.btn-primary-token,
a.btn-primary-token {
  font-size: var(--font-size-base);
  font-family: var(--font-family-sans);
  display: inline-block;
  margin: 0.5rem;
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-round, 32px);
  background: var(--color-primary, #165C84);
  color: var(--color-surface, #ffffff);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(20, 26, 51, 0.06), 0 2px 6px rgba(20, 26, 51, 0.05));
  transition: transform 20ms ease, filter var(--transition-base, 150ms ease);
  width: var(--btn-token-fixed-width); /* ensure consistent width on wider screens */
  text-align: center;
}
.btn-primary-token:hover { background: var(--color-primary-hover, #124A69); }
.btn-primary-token:active { transform: translateY(1px); }
.btn-primary-token:focus-visible { outline: 2px solid rgba(22,92,132,0.3); outline-offset: 2px; }

/* Secondary button on neutral surface */
button.btn-secondary-token,
a.btn-secondary-token {
  font-size: var(--font-size-base);
  font-family: var(--font-family-sans);
  display: inline-block;
  margin: 0.5rem;
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-round, 32px);
  background: var(--color-surface, #ffffff);
  color: var(--color-primary, #165C84);
  border: 1px solid var(--color-border, #DADEF2);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(20, 26, 51, 0.06), 0 2px 6px rgba(20, 26, 51, 0.05));
  width: var(--btn-token-fixed-width);
  text-align: center;
}
.btn-secondary-token:hover { background: var(--color-surface, #FAFBFE); }
.btn-secondary-token:focus-visible { outline: 2px solid rgba(22,92,132,0.25); outline-offset: 2px; }

.dropdown-item {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
}

/* Persistent "sample data" banner shown to logged-out visitors previewing a page.
   Stays pinned to the bottom of the viewport while they scroll the sample content. */
.sample-data-banner {
  position: fixed;
  left: 50%;
  bottom: var(--space-4, 16px);
  transform: translateX(-50%);
  z-index: 1050;
  width: calc(100% - 2rem);
  max-width: 720px;
}
.sample-data-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3, 12px);
  padding: var(--space-3, 12px) var(--space-4, 16px);
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, #DADEF2);
  border-left: 4px solid var(--color-primary, #165C84);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(20, 26, 51, 0.12));
}
.sample-data-banner__text { flex: 1 1 260px; min-width: 0; }
.sample-data-banner__title { margin: 0 0 0.15rem; }
.sample-data-banner__sub {
  margin: 0;
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--color-text-muted, #6c757d);
}
.sample-data-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
/* Shrink the shared token buttons so they fit comfortably in the banner. */
.sample-data-banner__actions .btn-primary-token,
.sample-data-banner__actions .btn-secondary-token {
  width: auto;
  margin: 0.25rem;
  padding: var(--space-2, 8px) var(--space-4, 16px);
}

/* Sit above the fixed mobile bottom nav (shown at <= 767px) so both stay visible. */
@media (max-width: 767px) {
  .sample-data-banner { bottom: 96px; }
}

@media (max-width: 600px) {
  .sample-data-banner__inner { flex-direction: column; align-items: stretch; text-align: center; }
  /* In column layout flex-basis maps to height — reset so the text block hugs its
     content instead of forcing a ~260px-tall gap before the buttons. */
  .sample-data-banner__text { flex: 0 0 auto; }
  .sample-data-banner__actions { justify-content: stretch; }
  .sample-data-banner__actions .btn-primary-token,
  .sample-data-banner__actions .btn-secondary-token { width: 100%; }
}

/* Mobile: make buttons span full width for easier tapping */
@media (max-width: 600px) {
  button.btn-primary-token,
  a.btn-primary-token,
  button.btn-secondary-token,
  a.btn-secondary-token {
    display: block;              /* stack */
    width: 100%;                 /* mobile still full-width for accessibility */
    margin: var(--space-2) 0; /* vertical rhythm, no horizontal gap */
  }
}
