/* MR LUM PICKLEBALL — shared responsive system
   Keeps the existing brand system and content intact.
*/
:root { color-scheme: light; }
*, *::before, *::after { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: clip; scroll-padding-top: 5rem; }
body { width: 100%; min-width: 320px; max-width: 100%; margin-inline: auto; overflow-x: clip; }
img, picture, video, canvas, iframe, svg { max-width: 100%; }
img { height: auto; }
button, input, select, textarea { max-width: 100%; }
input, select, textarea { min-width: 0; }
pre, code { max-width: 100%; overflow-wrap: anywhere; }
table { max-width: 100%; }
[class*="overflow-x-auto"] { max-width: 100%; overscroll-behavior-x: contain; }
.grid > *, .flex > * { min-width: 0; }
h1, h2, h3, h4, p, a, li, label, button { overflow-wrap: break-word; }
iframe { width: 100%; }

/* Fixed navigation with subtle translucent glass effect (95% opaque, 5px blur). */
body { padding-top: 64px; }
body > header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 18px rgba(20, 25, 24, 0.06);
}
body > header > div:first-child { background: transparent; }
body > header #mobile-menu {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

/* Tablet: prevent desktop navigation and multi-column cards becoming cramped. */
@media (min-width: 768px) and (max-width: 1023.98px) {
  header nav[aria-label] { display: none !important; }
  #mobile-menu-btn { display: inline-flex !important; align-items: center; justify-content: center; }
  #mobile-menu:not(.hidden) { display: block !important; }
  .grid.md\:grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid.lg\:grid-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .max-w-\[1120px\] { max-width: 100%; }
}

/* Mobile and small tablets: one-column content, comfortable gutters and no overflow. */
@media (max-width: 767.98px) {
  html { scroll-padding-top: 4.5rem; }
  body { min-width: 320px; }
  header { max-width: 100%; }
  header > div:first-child { min-height: 60px; height: auto; }
  header nav[aria-label] { display: none !important; }
  #mobile-menu-btn { display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 auto; }
  #mobile-menu:not(.hidden) { display: block !important; }
  .grid.md\:grid-cols-2,
  .grid.md\:grid-cols-3,
  .grid.sm\:grid-cols-2,
  .grid.lg\:grid-cols-2,
  .grid.lg\:grid-cols-4 { grid-template-columns: minmax(0, 1fr) !important; }
  .grid.grid-cols-2 { grid-template-columns: minmax(0, 1fr) !important; }
  .flex.flex-wrap { row-gap: .75rem; }
  section { max-width: 100%; }
  .overflow-x-auto { overflow-x: auto; }
  .text-justify { text-align: left; }
  input, select, textarea { font-size: 16px !important; }
  button, a { -webkit-tap-highlight-color: transparent; }
}

/* Small phones: compact header controls and balanced page gutters. */
@media (max-width: 420px) {
  header > div:first-child { padding-left: 1rem !important; padding-right: 1rem !important; gap: .5rem; }
  header > div:first-child > a img { width: 76px !important; height: 38px !important; min-width: 0 !important; }
  header > div:first-child > div { gap: .35rem !important; }
  header > div:first-child > div > button:first-child { padding: .55rem .65rem !important; font-size: 9px !important; }
  #mobile-menu { padding-left: 1rem !important; padding-right: 1rem !important; }
  .grid.grid-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Large desktop: preserve readable line lengths while using available space. */
@media (min-width: 1440px) {
  .max-w-\[1120px\] { max-width: 1120px; }
}

/* Consistent 14px reading text; retain intentionally small captions and labels. */
body { font-size: 14px; }
main p:not([class*="text-[10px]"]):not([class*="text-[11px]"]),
main li:not([class*="text-[10px]"]):not([class*="text-[11px]"]),
footer p:not([class*="text-[10px]"]):not([class*="text-[11px]"]),
footer li:not([class*="text-[10px]"]):not([class*="text-[11px]"]) {
  font-size: 14px;
}
