/* ============================================================================
   RSL Helper Classes
   ============================================================================
   Utility classes for layout, spacing, typography, and common styling needs.

   Usage:
   <div class="rsl-center">Centered content</div>
   <p class="rsl-mt-3 rsl-mb-2">Spaced paragraph</p>
   <span class="rsl-success">Success text</span>
   ============================================================================ */

/* ──────────────────────────────────────────────
   Flexbox Alignment
   ────────────────────────────────────────────── */

.rsl-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsl-center-vertical {
    display: flex;
    align-items: center;
}

/* ──────────────────────────────────────────────
   Text Alignment
   ────────────────────────────────────────────── */

.rsl-left {
    text-align: left;
}

.rsl-right {
    text-align: right;
}

/* ──────────────────────────────────────────────
   Well / Container Box
   ────────────────────────────────────────────── */

.rsl-well {
    padding: 1rem;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 0.25rem;
}

/* ──────────────────────────────────────────────
   Typography - Font Weight
   ────────────────────────────────────────────── */

.rsl-bold {
    font-weight: bold;
}

.rsl-light {
    font-weight: 300;
}

.rsl-underline {
    text-decoration: underline;
}

.rsl-italic {
    font-style: italic;
}

/* ──────────────────────────────────────────────
   Typography - Font Size
   ────────────────────────────────────────────── */

.rsl-p-xs {
    font-size: 0.8rem;
}

.rsl-p-sm {
    font-size: 0.9rem;
}

.rsl-p-lg {
    font-size: 1.1rem;
}

.rsl-p-xl {
    font-size: 1.3rem;
}

/* ──────────────────────────────────────────────
   Spacing - Margin (0-4 scale)
   ────────────────────────────────────────────── */

/* Margin 0 */
.rsl-m-0 {
    margin: 0 !important;
}

.rsl-mt-0 {
    margin-top: 0 !important;
}

.rsl-mb-0 {
    margin-bottom: 0 !important;
}

.rsl-ml-0 {
    margin-left: 0 !important;
}

.rsl-mr-0 {
    margin-right: 0 !important;
}

/* Margin 1 (0.25rem) */
.rsl-m-1 {
    margin: 0.25rem !important;
}

.rsl-mt-1 {
    margin-top: 0.25rem !important;
}

.rsl-mb-1 {
    margin-bottom: 0.25rem !important;
}

.rsl-ml-1 {
    margin-left: 0.25rem !important;
}

.rsl-mr-1 {
    margin-right: 0.25rem !important;
}

/* Margin 2 (0.5rem) */
.rsl-m-2 {
    margin: 0.5rem !important;
}

.rsl-mt-2 {
    margin-top: 0.5rem !important;
}

.rsl-mb-2 {
    margin-bottom: 0.5rem !important;
}

.rsl-ml-2 {
    margin-left: 0.5rem !important;
}

.rsl-mr-2 {
    margin-right: 0.5rem !important;
}

/* Margin 3 (1rem) */
.rsl-m-3 {
    margin: 1rem !important;
}

.rsl-mt-3 {
    margin-top: 1rem !important;
}

.rsl-mb-3 {
    margin-bottom: 1rem !important;
}

.rsl-ml-3 {
    margin-left: 1rem !important;
}

.rsl-mr-3 {
    margin-right: 1rem !important;
}

/* Margin 4 (1.5rem) */
.rsl-m-4 {
    margin: 1.5rem !important;
}

.rsl-mt-4 {
    margin-top: 1.5rem !important;
}

.rsl-mb-4 {
    margin-bottom: 1.5rem !important;
}

.rsl-ml-4 {
    margin-left: 1.5rem !important;
}

.rsl-mr-4 {
    margin-right: 1.5rem !important;
}

/* ──────────────────────────────────────────────
   Spacing - Padding (0-4 scale)
   ────────────────────────────────────────────── */

/* Padding 0 */
.rsl-p-0 {
    padding: 0 !important;
}

.rsl-pt-0 {
    padding-top: 0 !important;
}

.rsl-pb-0 {
    padding-bottom: 0 !important;
}

.rsl-pl-0 {
    padding-left: 0 !important;
}

.rsl-pr-0 {
    padding-right: 0 !important;
}

/* Padding 1 (0.25rem) */
.rsl-p-1 {
    padding: 0.25rem !important;
}

.rsl-pt-1 {
    padding-top: 0.25rem !important;
}

.rsl-pb-1 {
    padding-bottom: 0.25rem !important;
}

.rsl-pl-1 {
    padding-left: 0.25rem !important;
}

.rsl-pr-1 {
    padding-right: 0.25rem !important;
}

/* Padding 2 (0.5rem) */
.rsl-p-2 {
    padding: 0.5rem !important;
}

.rsl-pt-2 {
    padding-top: 0.5rem !important;
}

.rsl-pb-2 {
    padding-bottom: 0.5rem !important;
}

.rsl-pl-2 {
    padding-left: 0.5rem !important;
}

.rsl-pr-2 {
    padding-right: 0.5rem !important;
}

/* Padding 3 (1rem) */
.rsl-p-3 {
    padding: 1rem !important;
}

.rsl-pt-3 {
    padding-top: 1rem !important;
}

.rsl-pb-3 {
    padding-bottom: 1rem !important;
}

.rsl-pl-3 {
    padding-left: 1rem !important;
}

.rsl-pr-3 {
    padding-right: 1rem !important;
}

/* Padding 4 (1.5rem) */
.rsl-p-4 {
    padding: 1.5rem !important;
}

.rsl-pt-4 {
    padding-top: 1.5rem !important;
}

.rsl-pb-4 {
    padding-bottom: 1.5rem !important;
}

.rsl-pl-4 {
    padding-left: 1.5rem !important;
}

.rsl-pr-4 {
    padding-right: 1.5rem !important;
}

/* ──────────────────────────────────────────────
   Typography - Headings
   ────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #333;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.875rem;
}

/* ──────────────────────────────────────────────
   Semantic Text Colors
   ────────────────────────────────────────────── */

.rsl-success {
    color: #28a745;
}

.rsl-info {
    color: #17a2b8;
}

.rsl-warning {
    color: #ffc107;
}

.rsl-danger {
    color: #dc3545;
}

/* ──────────────────────────────────────────────
   Semantic Background Colors
   ────────────────────────────────────────────── */

.rsl-bg-success {
    background-color: #28a745;
    color: #ffffff;
}

.rsl-bg-info {
    background-color: #17a2b8;
    color: #ffffff;
}

.rsl-bg-warning {
    background-color: #ffc107;
    color: #ffffff;
}

.rsl-bg-danger {
    background-color: #dc3545;
    color: #ffffff;
}

/* ──────────────────────────────────────────────
   Mobile Text Alignment
   ────────────────────────────────────────────── */

.rsl-mobile-left {
    text-align: left;
}

.rsl-mobile-center {
    text-align: center;
}

.rsl-mobile-right {
    text-align: right;
}

@media (min-width: 992px) {
    .rsl-mobile-left {
        text-align: inherit;
    }

    .rsl-mobile-center {
        text-align: inherit;
    }

    .rsl-mobile-right {
        text-align: inherit;
    }
}

/* ADA skip-links generated by ada-compliant-navigator.js. The same CSS
   also lives in tabs.css for legacy reasons, but tabs.css is only bundled
   when a downloaded site uses tabs — sites that use the navigator for
   carousel/video-player/etc. without tabs would render these links as
   visible orange text mid-page. Helper-classes.css is always bundled,
   so the rules belong here. */
.skip-link {
    position: absolute;
    top: -1000px;
    left: -1000px;
    height: 1px;
    width: 1px;
    text-align: left;
    overflow: hidden;
}

.skip-link:focus {
    position: static;
    height: auto;
    width: auto;
    overflow: visible;
}

.skip-target {
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ──────────────────────────────────────────────
   Typography Utilities
   ────────────────────────────────────────────── */

/* Monospace small-caps eyebrow label with horizontal rules either side.
   Good for Swiss-grid, Gallery-museum, and editorial directions.
   Usage: <span class="mono-eyebrow">Category</span> */
.mono-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75em;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rsl-text-secondary, #666);
}
.mono-eyebrow::before,
.mono-eyebrow::after {
    content: '';
    flex: 1;
    height: 1px;
    background: currentColor;
    opacity: 0.35;
}

/* ──────────────────────────────────────────────
   Status Dot Badges
   ────────────────────────────────────────────── */

/* Colored pill with leading dot indicator. Good for e-commerce and
   inventory status labels.
   Usage: <span class="status-dot status-dot--in-stock">In Stock</span> */
.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.25em 0.75em;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--rsl-bg-secondary, #f5f5f5);
    color: var(--rsl-text-secondary, #555);
}
.status-dot::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.status-dot--in-stock    { background: #e6f7ee; color: #1a7f4b; }
.status-dot--low-stock   { background: #fff7e6; color: #b45309; }
.status-dot--out-of-stock { background: #fef2f2; color: #b91c1c; }
.status-dot--new         { background: #eff6ff; color: #1d4ed8; }
.status-dot--coming-soon { background: #f5f3ff; color: #6d28d9; }
.status-dot--sale        { background: #fff0f3; color: #be185d; }
