

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

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--Grey-900);
    background-color: var(--White);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: var(--space-4);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--Grey-900);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

@media (max-width: 768px) {
    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    h3 { font-size: var(--font-size-2xl); }
}

p {
    margin-top: 0;
    margin-bottom: var(--space-4);
}

a {
    color: var(--text-link-teal, #25594D);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover,
a:focus,
a:focus-visible,
a:active {
    color: var(--text-link-teal, #25594D);
    text-decoration: underline;
}

:where(a:visited) {
    color: var(--text-link-purple, #5B3FB8);
}

small {
    font-size: var(--font-size-sm);
}

input, textarea, select, button {
    
    font-size: inherit;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    display: block;
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--Grey-900);
    background-color: var(--White);
    background-clip: padding-box;
    border: 1px solid var(--control-border);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--text-link-teal, #25594D);
    border-color: var(--control-border-focus);
    outline: 0;
    box-shadow: var(--control-focus-ring);
}

.form-control {
    border-color: var(--control-border);
}

.form-control:focus,
.form-control:focus-visible {
    border-color: var(--control-border-focus);
    outline: 0;
    box-shadow: var(--control-focus-ring);
}

.form-control[readonly],
.form-control:read-only {
    background-color: var(--Grey-50);
    border-color: var(--control-border);
}

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.fw-bold { font-weight: var(--font-weight-bold) !important; }
.fw-semibold { font-weight: var(--font-weight-semibold) !important; }
.fw-regular { font-weight: var(--font-weight-regular) !important; }

.text-grey-500 { color: var(--text-muted, #475467) !important; }
.text-grey-700 { color: var(--text-muted-strong, #344054) !important; }

/* Bootstrap greys used as body/meta text on light surfaces */
.text-muted,
.text-secondary {
  color: var(--text-muted, #475467) !important;
}

/* Mobile: body{overflow-x:hidden} alone doesn't stop iOS from panning sideways; the root must clip too. */
@media (max-width: 991px) {
    html {
        overflow-x: hidden;
    }
}
