/* ================================================================
 * Raj Collection Sequel — Modern Reset
 * Based on Andy Bell's modern-reset + Josh Comeau's tweaks + mobile-first concerns
 * ================================================================ */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Always allow vertical scroll, never horizontal */
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  line-height: var(--rcs-lh-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: var(--rcs-font-ui);
  font-size: var(--rcs-size-md);
  color: var(--rcs-text);
  background: var(--rcs-canvas);
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(107, 26, 46, 0.10);
}

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

#root, #__next, main { isolation: isolate; }

ul, ol { list-style: none; padding: 0; }

table { border-collapse: collapse; border-spacing: 0; }

/* Form elements — neutral baseline */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
  -webkit-appearance: none;
  appearance: none;
  background: var(--rcs-field);
  border: 1.5px solid var(--rcs-outline);
  border-radius: var(--rcs-r-4);
  padding: 0 14px;
  width: 100%;
  min-height: var(--rcs-tap);
  color: var(--rcs-text);
  transition: border-color var(--rcs-dur-2) var(--rcs-ease-out),
              box-shadow var(--rcs-dur-2) var(--rcs-ease-out);
}

textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible,
a:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 0;
  border-color: var(--rcs-primary);
  box-shadow: var(--rcs-shadow-focus);
}

input::placeholder, textarea::placeholder {
  color: var(--rcs-text-subtle);
}

/* Selection */
::selection {
  background: var(--rcs-primary);
  color: #fff;
}

/* Scrollbar (only where visible) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(28, 26, 25, 0.20);
  border-radius: var(--rcs-r-pill);
}
::-webkit-scrollbar-thumb:hover { background: rgba(28, 26, 25, 0.32); }

/* Hide scrollbars on snap carousels */
.rcs-scroll-x {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rcs-scroll-x::-webkit-scrollbar { display: none; }
