/* ==========================================================================
   ST Design System — Breakpoints & Tokens
   ========================================================================== */
:root {
  --st-breakpoint-fold: 0px;
  --st-breakpoint-xs: 320px;
  --st-breakpoint-sm: 360px;
  --st-breakpoint-md: 720px;
  --st-breakpoint-lg: 960px;
  --st-breakpoint-xl: 1280px;
  --st-breakpoint-2xl: 1536px;

  --st-spacing-unit: 4px;
  --st-touch-target: 44px;
  --st-container-max: 1440px;
  --st-radius-sm: 6px;
  --st-radius-md: 10px;
  --st-radius-lg: 16px;
}
/* ==========================================================================
   ST Design System — Layout
   ========================================================================== */

/* Container */
.st-container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}
@media (min-width: 360px) {
  .st-container { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 720px) {
  .st-container { max-width: 720px; padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 960px) {
  .st-container { max-width: 960px; }
}
@media (min-width: 1280px) {
  .st-container { max-width: 1200px; padding-left: 32px; padding-right: 32px; }
}
@media (min-width: 1536px) {
  .st-container { max-width: 1440px; padding-left: 40px; padding-right: 40px; }
}
.st-fluid { width: 100%; }

/* Display */
.st-hidden { display: none !important; }
.st-block { display: block !important; }
.st-inline { display: inline !important; }
.st-inline-block { display: inline-block !important; }
.st-flex { display: flex !important; }
.st-inline-flex { display: inline-flex !important; }
.st-grid { display: grid !important; }

/* Flex */
.st-flex-row { flex-direction: row; }
.st-flex-col { flex-direction: column; }
.st-flex-wrap { flex-wrap: wrap; }
.st-flex-nowrap { flex-wrap: nowrap; }
.st-flex-1 { flex: 1 1 0%; }
.st-flex-auto { flex: 1 1 auto; }
.st-flex-none { flex: none; }
.st-justify-start { justify-content: flex-start; }
.st-justify-center { justify-content: center; }
.st-justify-between { justify-content: space-between; }
.st-justify-end { justify-content: flex-end; }
.st-items-start { align-items: flex-start; }
.st-items-center { align-items: center; }
.st-items-end { align-items: flex-end; }
.st-items-stretch { align-items: stretch; }

/* Grid */
.st-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.st-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.st-grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.st-grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* Grid column spans */
.st-col-span-1 { grid-column: span 1 / span 1; }
.st-col-span-2 { grid-column: span 2 / span 2; }
.st-col-span-3 { grid-column: span 3 / span 3; }
.st-col-span-4 { grid-column: span 4 / span 4; }
.st-col-span-5 { grid-column: span 5 / span 5; }
.st-col-span-6 { grid-column: span 6 / span 6; }
.st-col-span-full { grid-column: 1 / -1; }

/* Gap */
.st-gap-0 { gap: 0; }
.st-gap-1 { gap: 4px; }
.st-gap-2 { gap: 8px; }
.st-gap-3 { gap: 12px; }
.st-gap-4 { gap: 16px; }
.st-gap-5 { gap: 20px; }
.st-gap-6 { gap: 24px; }
.st-gap-8 { gap: 32px; }

@media (min-width: 720px) {
  .st-md\:gap-0 { gap: 0; }
  .st-md\:gap-1 { gap: 4px; }
  .st-md\:gap-2 { gap: 8px; }
  .st-md\:gap-3 { gap: 12px; }
  .st-md\:gap-4 { gap: 16px; }
  .st-md\:gap-5 { gap: 20px; }
  .st-md\:gap-6 { gap: 24px; }
  .st-md\:gap-8 { gap: 32px; }
}

/* Overflow */
.st-overflow-auto { overflow: auto; }
.st-overflow-hidden { overflow: hidden; }
.st-overflow-x-auto { overflow-x: auto; }
.st-overflow-y-auto { overflow-y: auto; }

/* Responsive helpers */
@media (min-width: 320px) {
  .st-xs\:block { display: block !important; }
  .st-xs\:flex { display: flex !important; }
  .st-xs\:hidden { display: none !important; }
  .st-xs\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 360px) {
  .st-sm\:block { display: block !important; }
  .st-sm\:flex { display: flex !important; }
  .st-sm\:hidden { display: none !important; }
  .st-sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-sm\:flex-row { flex-direction: row; }
  .st-sm\:flex-col { flex-direction: column; }
}
@media (min-width: 720px) {
  .st-md\:block { display: block !important; }
  .st-md\:flex { display: flex !important; }
  .st-md\:hidden { display: none !important; }
  .st-md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-md\:col-span-1 { grid-column: span 1 / span 1; }
  .st-md\:col-span-2 { grid-column: span 2 / span 2; }
  .st-md\:col-span-3 { grid-column: span 3 / span 3; }
  .st-md\:flex-row { flex-direction: row; }
  .st-md\:flex-col { flex-direction: column; }
  .st-md\:items-start { align-items: flex-start; }
  .st-md\:items-center { align-items: center; }
  .st-md\:items-end { align-items: flex-end; }
  .st-md\:items-stretch { align-items: stretch; }
}
@media (min-width: 960px) {
  .st-lg\:block { display: block !important; }
  .st-lg\:flex { display: flex !important; }
  .st-lg\:hidden { display: none !important; }
  .st-lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-lg\:col-span-1 { grid-column: span 1 / span 1; }
  .st-lg\:col-span-2 { grid-column: span 2 / span 2; }
  .st-lg\:col-span-3 { grid-column: span 3 / span 3; }
  .st-lg\:col-span-4 { grid-column: span 4 / span 4; }
  .st-lg\:flex-row { flex-direction: row; }
}
@media (min-width: 1280px) {
  .st-xl\:block { display: block !important; }
  .st-xl\:flex { display: flex !important; }
  .st-xl\:hidden { display: none !important; }
  .st-xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .st-xl\:col-span-1 { grid-column: span 1 / span 1; }
  .st-xl\:col-span-2 { grid-column: span 2 / span 2; }
  .st-xl\:col-span-3 { grid-column: span 3 / span 3; }
  .st-xl\:col-span-4 { grid-column: span 4 / span 4; }
  .st-xl\:col-span-6 { grid-column: span 6 / span 6; }
}
@media (min-width: 1536px) {
  .st-2xl\:block { display: block !important; }
  .st-2xl\:flex { display: flex !important; }
  .st-2xl\:hidden { display: none !important; }
  .st-2xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .st-2xl\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .st-2xl\:col-span-1 { grid-column: span 1 / span 1; }
  .st-2xl\:col-span-2 { grid-column: span 2 / span 2; }
  .st-2xl\:col-span-3 { grid-column: span 3 / span 3; }
  .st-2xl\:col-span-5 { grid-column: span 5 / span 5; }
  .st-2xl\:col-span-6 { grid-column: span 6 / span 6; }
}
/* ==========================================================================
   ST Design System — Spacing
   ========================================================================== */

/* Margin (all sides) */
.st-m-0  { margin: 0; }
.st-m-1  { margin: 4px; }
.st-m-2  { margin: 8px; }
.st-m-3  { margin: 12px; }
.st-m-4  { margin: 16px; }
.st-m-5  { margin: 20px; }
.st-m-6  { margin: 24px; }
.st-m-8  { margin: 32px; }
.st-m-10 { margin: 40px; }
.st-m-12 { margin: 48px; }

/* Margin top */
.st-mt-0  { margin-top: 0; }
.st-mt-1  { margin-top: 4px; }
.st-mt-2  { margin-top: 8px; }
.st-mt-3  { margin-top: 12px; }
.st-mt-4  { margin-top: 16px; }
.st-mt-5  { margin-top: 20px; }
.st-mt-6  { margin-top: 24px; }
.st-mt-8  { margin-top: 32px; }
.st-mt-10 { margin-top: 40px; }
.st-mt-12 { margin-top: 48px; }

/* Margin right */
.st-mr-0  { margin-right: 0; }
.st-mr-1  { margin-right: 4px; }
.st-mr-2  { margin-right: 8px; }
.st-mr-3  { margin-right: 12px; }
.st-mr-4  { margin-right: 16px; }
.st-mr-5  { margin-right: 20px; }
.st-mr-6  { margin-right: 24px; }
.st-mr-8  { margin-right: 32px; }
.st-mr-10 { margin-right: 40px; }
.st-mr-12 { margin-right: 48px; }

/* Margin bottom */
.st-mb-0  { margin-bottom: 0; }
.st-mb-1  { margin-bottom: 4px; }
.st-mb-2  { margin-bottom: 8px; }
.st-mb-3  { margin-bottom: 12px; }
.st-mb-4  { margin-bottom: 16px; }
.st-mb-5  { margin-bottom: 20px; }
.st-mb-6  { margin-bottom: 24px; }
.st-mb-8  { margin-bottom: 32px; }
.st-mb-10 { margin-bottom: 40px; }
.st-mb-12 { margin-bottom: 48px; }

/* Margin left */
.st-ml-0  { margin-left: 0; }
.st-ml-1  { margin-left: 4px; }
.st-ml-2  { margin-left: 8px; }
.st-ml-3  { margin-left: 12px; }
.st-ml-4  { margin-left: 16px; }
.st-ml-5  { margin-left: 20px; }
.st-ml-6  { margin-left: 24px; }
.st-ml-8  { margin-left: 32px; }
.st-ml-10 { margin-left: 40px; }
.st-ml-12 { margin-left: 48px; }

/* Margin horizontal (x-axis) */
.st-mx-0  { margin-left: 0; margin-right: 0; }
.st-mx-1  { margin-left: 4px; margin-right: 4px; }
.st-mx-2  { margin-left: 8px; margin-right: 8px; }
.st-mx-3  { margin-left: 12px; margin-right: 12px; }
.st-mx-4  { margin-left: 16px; margin-right: 16px; }
.st-mx-5  { margin-left: 20px; margin-right: 20px; }
.st-mx-6  { margin-left: 24px; margin-right: 24px; }
.st-mx-8  { margin-left: 32px; margin-right: 32px; }
.st-mx-10 { margin-left: 40px; margin-right: 40px; }
.st-mx-12 { margin-left: 48px; margin-right: 48px; }
.st-mx-auto { margin-left: auto; margin-right: auto; }

/* Margin vertical (y-axis) */
.st-my-0  { margin-top: 0; margin-bottom: 0; }
.st-my-1  { margin-top: 4px; margin-bottom: 4px; }
.st-my-2  { margin-top: 8px; margin-bottom: 8px; }
.st-my-3  { margin-top: 12px; margin-bottom: 12px; }
.st-my-4  { margin-top: 16px; margin-bottom: 16px; }
.st-my-5  { margin-top: 20px; margin-bottom: 20px; }
.st-my-6  { margin-top: 24px; margin-bottom: 24px; }
.st-my-8  { margin-top: 32px; margin-bottom: 32px; }
.st-my-10 { margin-top: 40px; margin-bottom: 40px; }
.st-my-12 { margin-top: 48px; margin-bottom: 48px; }

/* Padding (all sides) */
.st-p-0  { padding: 0; }
.st-p-1  { padding: 4px; }
.st-p-2  { padding: 8px; }
.st-p-3  { padding: 12px; }
.st-p-4  { padding: 16px; }
.st-p-5  { padding: 20px; }
.st-p-6  { padding: 24px; }
.st-p-8  { padding: 32px; }
.st-p-10 { padding: 40px; }
.st-p-12 { padding: 48px; }

/* Padding horizontal (x-axis) */
.st-px-0  { padding-left: 0; padding-right: 0; }
.st-px-1  { padding-left: 4px; padding-right: 4px; }
.st-px-2  { padding-left: 8px; padding-right: 8px; }
.st-px-3  { padding-left: 12px; padding-right: 12px; }
.st-px-4  { padding-left: 16px; padding-right: 16px; }
.st-px-5  { padding-left: 20px; padding-right: 20px; }
.st-px-6  { padding-left: 24px; padding-right: 24px; }
.st-px-8  { padding-left: 32px; padding-right: 32px; }
.st-px-10 { padding-left: 40px; padding-right: 40px; }
.st-px-12 { padding-left: 48px; padding-right: 48px; }

/* Padding vertical (y-axis) */
.st-py-0  { padding-top: 0; padding-bottom: 0; }
.st-py-1  { padding-top: 4px; padding-bottom: 4px; }
.st-py-2  { padding-top: 8px; padding-bottom: 8px; }
.st-py-3  { padding-top: 12px; padding-bottom: 12px; }
.st-py-4  { padding-top: 16px; padding-bottom: 16px; }
.st-py-5  { padding-top: 20px; padding-bottom: 20px; }
.st-py-6  { padding-top: 24px; padding-bottom: 24px; }
.st-py-8  { padding-top: 32px; padding-bottom: 32px; }
.st-py-10 { padding-top: 40px; padding-bottom: 40px; }
.st-py-12 { padding-top: 48px; padding-bottom: 48px; }

/* Responsive padding at md breakpoint */
@media (min-width: 720px) {
  .st-md\:p-0  { padding: 0; }
  .st-md\:p-1  { padding: 4px; }
  .st-md\:p-2  { padding: 8px; }
  .st-md\:p-3  { padding: 12px; }
  .st-md\:p-4  { padding: 16px; }
  .st-md\:p-5  { padding: 20px; }
  .st-md\:p-6  { padding: 24px; }
  .st-md\:p-8  { padding: 32px; }
  .st-md\:p-10 { padding: 40px; }
  .st-md\:p-12 { padding: 48px; }

  .st-md\:px-0  { padding-left: 0; padding-right: 0; }
  .st-md\:px-1  { padding-left: 4px; padding-right: 4px; }
  .st-md\:px-2  { padding-left: 8px; padding-right: 8px; }
  .st-md\:px-3  { padding-left: 12px; padding-right: 12px; }
  .st-md\:px-4  { padding-left: 16px; padding-right: 16px; }
  .st-md\:px-5  { padding-left: 20px; padding-right: 20px; }
  .st-md\:px-6  { padding-left: 24px; padding-right: 24px; }
  .st-md\:px-8  { padding-left: 32px; padding-right: 32px; }
  .st-md\:px-10 { padding-left: 40px; padding-right: 40px; }
  .st-md\:px-12 { padding-left: 48px; padding-right: 48px; }

  .st-md\:py-0  { padding-top: 0; padding-bottom: 0; }
  .st-md\:py-1  { padding-top: 4px; padding-bottom: 4px; }
  .st-md\:py-2  { padding-top: 8px; padding-bottom: 8px; }
  .st-md\:py-3  { padding-top: 12px; padding-bottom: 12px; }
  .st-md\:py-4  { padding-top: 16px; padding-bottom: 16px; }
  .st-md\:py-5  { padding-top: 20px; padding-bottom: 20px; }
  .st-md\:py-6  { padding-top: 24px; padding-bottom: 24px; }
  .st-md\:py-8  { padding-top: 32px; padding-bottom: 32px; }
  .st-md\:py-10 { padding-top: 40px; padding-bottom: 40px; }
  .st-md\:py-12 { padding-top: 48px; padding-bottom: 48px; }
}
/* ==========================================================================
   ST Design System — Typography
   ========================================================================== */
.st-text-xs { font-size: 0.75rem; }
.st-text-sm { font-size: 0.875rem; }
.st-text-base { font-size: 1rem; }
.st-text-lg { font-size: 1.125rem; }
.st-text-xl { font-size: 1.25rem; }
.st-text-2xl { font-size: 1.5rem; }
.st-text-3xl { font-size: 1.875rem; }

.st-font-normal { font-weight: 400; }
.st-font-medium { font-weight: 500; }
.st-font-semibold { font-weight: 600; }
.st-font-bold { font-weight: 700; }

.st-leading-tight { line-height: 1.25; }
.st-leading-normal { line-height: 1.5; }
.st-leading-relaxed { line-height: 1.625; }

.st-text-left { text-align: left; }
.st-text-center { text-align: center; }
.st-text-right { text-align: right; }

/* Responsive typography at md breakpoint */
@media (min-width: 720px) {
  .st-md\:text-xs { font-size: 0.75rem; }
  .st-md\:text-sm { font-size: 0.875rem; }
  .st-md\:text-base { font-size: 1rem; }
  .st-md\:text-lg { font-size: 1.125rem; }
  .st-md\:text-xl { font-size: 1.25rem; }
  .st-md\:text-2xl { font-size: 1.5rem; }
  .st-md\:text-3xl { font-size: 1.875rem; }
}
/* ==========================================================================
   ST Design System — Sizing
   ========================================================================== */
.st-w-full { width: 100%; }
.st-w-screen { width: 100vw; }
.st-w-auto { width: auto; }
.st-h-full { height: 100%; }
.st-h-screen { height: 100vh; }
.st-h-auto { height: auto; }

.st-min-w-0 { min-width: 0; }
.st-min-h-screen { min-height: 100vh; }
.st-min-h-full { min-height: 100%; }

.st-max-w-none { max-width: none; }
.st-max-w-xs { max-width: 320px; }
.st-max-w-sm { max-width: 480px; }
.st-max-w-md { max-width: 640px; }
.st-max-w-lg { max-width: 960px; }
.st-max-w-xl { max-width: 1280px; }
.st-max-w-2xl { max-width: 1536px; }
.st-max-w-full { max-width: 100%; }

/* Responsive width */
@media (min-width: 720px) {
  .st-md\:w-auto { width: auto; }
  .st-md\:w-full { width: 100%; }
}
/* ==========================================================================
   ST Design System — Accessibility
   ========================================================================== */
.st-touch-target {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.st-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.st-sr-only-focusable:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
