/*-- -------------------------- -->
<---        Core Styles         -->
<--- -------------------------- -*/

/* CSS Variables */
:root {
  /* Primary Colors */
  --primary: #6A1B9A;
  --primaryShade: #8E24AA;
  --primaryDark: #4A148C;
  --primaryLight: #AB47BC;

  /* Text Colors */
  --bodyTextColor: #4E4B66;
  --bodyTextColorWhite: #FAFBFC;
  --headerColor: #1a1a1a;

  /* Dark Mode Colors */
  --dark: #1A0B2E;
  --medium: #3E2B47;
  --accent: #5C4068;

  /* Additional Colors */
  --secondaryLight: #e8e8e8;

  /* Ring/Progress Variables */
  --ring-width: 4px;
  --ratio: 0.8;

  /* Typography */
  --topperFontSize: clamp(0.8125rem, 1.6vw, 1rem);
  --headerFontSize: clamp(1.9375rem, 4.5vw, 3.0625rem);
  --bodyFontSize: 1.125rem;
  --sectionPadding: clamp(3.75em, 7.82vw, 6.25em) 1rem;
}

/* Font Faces */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local(''),
    url('/assets/fonts/roboto-v29-latin-regular.woff2') format('woff2'),
    url('/assets/fonts/roboto-v29-latin-regular.woff') format('woff');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: local(''),
    url('/assets/fonts/roboto-v29-latin-700.woff2') format('woff2'),
    url('/assets/fonts/roboto-v29-latin-700.woff') format('woff');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  src: local(''),
    url('/assets/fonts/roboto-v29-latin-900.woff2') format('woff2'),
    url('/assets/fonts/roboto-v29-latin-900.woff') format('woff');
}

/* Base Styles */
*,
*:before,
*:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  margin: 0;
  padding: 0;
  font-size: 100%;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--bodyTextColor);
  overflow-x: clip;
  max-width: 100vw;
}

body {
  transition: background-color 0.3s;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--headerColor);
}

p,
li,
a {
  font-size: 1.125rem;
  line-height: 1.5em;
  margin: 0;
}

p,
li {
  color: #575757;
}

a:hover,
button:hover {
  cursor: pointer;
}

/* Skip Link */
.skip {
  position: absolute;
  top: -100px;
  left: 6px;
  background: var(--primary);
  color: var(--bodyTextColorWhite);
  padding: 8px 12px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.skip:focus {
  top: 6px;
  opacity: 1;
  pointer-events: auto;
}

/* Layout */
.container {
  position: relative;
  width: 92%;
  margin: auto;
}

/* Button Component - Unified Style */
.button-solid,
.cs-button-solid {
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block !important;
  width: auto !important;
  line-height: clamp(2.875rem, 5.5vw, 3.5rem) !important;
  min-height: 2.875rem !important;
  text-align: center !important;
  padding: 0 1.5rem !important;
  position: relative !important;
  z-index: 1 !important;
  background-color: var(--primary) !important;
  color: #fff !important;
  border-radius: 0.25rem !important;
  transition: color 0.3s !important;
  box-sizing: border-box !important;
  min-width: 9.375rem !important;
}

.button-solid:hover,
.cs-button-solid:hover {
  color: #fff !important;
}

.button-solid:hover:before,
.cs-button-solid:hover:before {
  width: 100% !important;
}

.button-solid:before,
.cs-button-solid:before {
  content: '' !important;
  position: absolute !important;
  display: block !important;
  height: 100% !important;
  opacity: 1 !important;
  top: 0 !important;
  left: 0 !important;
  z-index: -1 !important;
  background-color: #000 !important;
  width: 0 !important;
  transition: width 0.3s !important;
  border-radius: 0.25rem !important;
}

/* Responsive Scaling */
@media only screen and (min-width: 2000px) {

  body,
  html {
    font-size: .85vw;
  }
}

/* Global cs-topper styling */
.cs-topper {
  font-size: var(--topperFontSize) !important;
  line-height: 1.2em !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-bottom: 1rem !important;
  display: block !important;
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: var(--dark);
}

body.dark-mode p,
body.dark-mode li,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #fff;
}

body.dark-mode .light {
  display: none;
}

body.dark-mode .dark {
  display: block !important;
}