/**
 * @file
 * Global Drupal styles for React theme with Bootstrap.
 */

/* Bootstrap is loaded via CDN and bundled in React components */

/* Reset and normalize */
* {
  box-sizing: border-box;
}

/* Base typography - work with Bootstrap */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background: #fff;
  margin: 0;
  padding: 0;
}

/* Ensure React root takes full height */
#react-root {
  min-height: 100vh;
}

/* Layout container - full width for Bootstrap sections */
.layout-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Show noscript fallback */
.no-js-message {
  padding: 2rem;
  text-align: center;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
  margin: 1rem;
  border-radius: 4px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 9999;
  padding: 8px;
  background: #000;
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Hide visually-hidden elements globally */
.visually-hidden,
.hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

/* Hide empty regions to prevent unnecessary spacing */
.region:empty {
  display: none !important;
}
