
/* ========================================
   BASE STYLES & RESET
   Global element defaults and resets
======================================== */

/* ========================================
   GLOBAL RESET
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

/* ========================================

   BASE ELEMENT STYLES
======================================== */
html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--cb-font-primary);
    letter-spacing: var(--cb-letter-spacing-tight);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY DEFAULTS
======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--cb-font-primary);
    font-weight: var(--cb-font-weight-bold);
    line-height: var(--cb-line-height-tight);
    color: var(--cb-color-dark-100);
    margin: 0;
}

h1 {
    font-size: var(--cb-font-size-5xl);
}

h2 {
    font-size: var(--cb-font-size-4xl);
}

h3 {
    font-size: var(--cb-font-size-2xl);
}

h4 {
    font-size: var(--cb-font-size-xl);
}

h5 {
    font-size: var(--cb-font-size-lg);
}

h6 {
    font-size: var(--cb-font-size-base);
}

p {
    margin: 0;
    line-height: var(--cb-line-height-normal);
}

/* ========================================
   LINK DEFAULTS
======================================== */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--cb-transition-base);
}

a:hover {
    text-decoration: none;
}


/* ========================================
   LIST DEFAULTS
======================================== */
ul,
ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.cb-list-disc {
    list-style-type: disc;
    padding-left: var(--cb-space-5);
}

ol.cb-list-decimal {
    list-style-type: decimal;
    padding-left: var(--cb-space-5);
}

/* ========================================
   IMAGE DEFAULTS
======================================== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   BUTTON DEFAULTS
======================================== */
button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}


/* ========================================
   FORM ELEMENT DEFAULTS
======================================== */
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--cb-color-primary);
    outline-offset: 2px;
}

/* ========================================
   TABLE DEFAULTS
======================================== */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ========================================
   ACCESSIBILITY
======================================== */
/* Screen reader only content */
.cb-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;
}

/* Focus visible for better keyboard navigation */
.cb-focus-visible:focus-visible {
    outline: 2px solid var(--cb-color-primary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
}