@charset "utf-8";

:root {
  --header-height: 110px;
  color-scheme: only light;
  forced-color-adjust: none;
}

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

html {
  color-scheme: only light;
  background-color: #FAEAF9;
}

/* Textured #FAEAF9 background locked to light palette across all themes */
body {
  color-scheme: only light;
  background-color: #FAEAF9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

ul, ol, dl {
  padding: 0;
  margin: 0;
}

a img {
  border: none;
}

a:link {
  color: #42413C;
  text-decoration: underline;
}

a:visited {
  color: #6E6C64;
  text-decoration: underline;
}

a:hover, a:active, a:focus {
  text-decoration: none;
}

/* Outer container */
.container {
  background: transparent;
  width: 100%;
  margin: 0;
  padding-top: var(--header-height, 110px);
}

/* Fixed Top Bar (#A62598) extending to screen edges and following the view */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #A62598;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  z-index: 1002;
}

.header a {
  display: block;
  max-width: 950px;
  margin: 0 auto;
}

.header img {
  display: block;
  width: 100%;
  max-width: 950px;
  height: auto;
  margin: 0 auto;
  background: #A62598;
}

/* Centered inner container for sidebar + main content */
.main-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-height, 110px) - 38px);
}

/* Sidebar Navigation with solid #FAEAF9 background */
.sidebar1 {
  position: sticky;
  top: calc(var(--header-height, 110px) + 20px);
  margin-top: 20px;
  width: 220px;
  flex-shrink: 0;
  background-color: #FAEAF9;
  padding-bottom: 10px;
}

ul.nav {
  list-style: none;
  border-top: 1px solid #666666;
  margin-bottom: 15px;
  background-color: #FAEAF9;
}

ul.nav li {
  border-bottom: 1px solid #666666;
}

ul.nav a,
ul.nav a:visited {
  color: #000000;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-decoration: none;
  background-color: #FAEAF9;
  transition: background-color 0.15s ease, color 0.15s ease;
}

ul.nav a:hover,
ul.nav a:active,
ul.nav a:focus,
ul.nav a.active {
  background-color: #f3d5f1;
  color: #990099;
}

ul.nav a.active {
  border-left: 4px solid #A62598;
  padding-left: 10px;
}

.nav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: currentColor;
}

.sidebarTitle {
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.35;
}

/* Main Content Area with solid #FAEAF9 background */
.content {
  flex: 1;
  min-width: 0;
  margin: 20px 16px 110px 20px;
  padding: 28px 32px;
  background-color: #FAEAF9;
}

.content p {
  margin-top: 0;
  margin-bottom: 1.4em;
}

.content ul, .content ol {
  padding: 0 15px 15px 40px;
}

.pageTitle {
  display: inline-block;
  font-family: "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: #A62598;
  margin-bottom: 8px;
}

.title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  display: inline-block;
  margin-bottom: 4px;
}

.mainContent {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #000000;
}

/* Call-to-Action Button at the end of each page */
.cta-container {
  margin-top: 36px;
  margin-bottom: 12px;
  text-align: center;
}

a.cta-button,
a.cta-button:link,
a.cta-button:visited {
  display: inline-block;
  background-color: #A62598;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 6px;
  border: 2px solid #851b79;
  box-shadow: 0 4px 10px rgba(166, 37, 152, 0.28);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

a.cta-button:hover,
a.cta-button:focus {
  background-color: #851b79;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(166, 37, 152, 0.38);
}

a.cta-button:active {
  background-color: #6e1464;
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(166, 37, 152, 0.25);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 38px;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-top: 2px solid #A62598;
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.12);
  z-index: 1000;
}

.cookie-text {
  font-size: 14px;
  color: #000000;
}

.cookie-btn {
  background-color: #2e7d32;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.cookie-btn:hover,
.cookie-btn:focus {
  background-color: #1b5e20;
}

/* Fixed Bottom Bar (#A62598) */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 38px;
  background-color: #A62598;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.footer p {
  margin: 0;
  padding: 0 15px;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
}

/* Enforce identical colors even when OS/browser dark mode is active */
@media (prefers-color-scheme: dark) {
  html, body {
    background-color: #FAEAF9;
    color: #000000;
  }
  .sidebar1, ul.nav, ul.nav a, ul.nav a:visited, .content {
    background-color: #FAEAF9;
    color: #000000;
  }
  ul.nav a:hover, ul.nav a:active, ul.nav a:focus, ul.nav a.active {
    background-color: #f3d5f1;
    color: #990099;
  }
  .pageTitle {
    color: #A62598;
  }
  .title, .mainContent, .cookie-text {
    color: #000000;
  }
  .header, .footer {
    background-color: #A62598;
    color: #ffffff;
  }
  .cookie-banner {
    background-color: #ffffff;
  }
}

/* Fallback proportional header height on screens narrower than 950px before JS runs */
@media (max-width: 950px) {
  :root {
    --header-height: calc(100vw * 110 / 950);
  }
}

/* Mobile & Small Screen Breakpoint */
@media (max-width: 768px) {
  .sidebar1 {
    top: calc(var(--header-height, 56px) + 12px);
    margin-top: 12px;
    width: 56px;
  }

  ul.nav a,
  ul.nav a:visited {
    justify-content: center;
    padding: 14px 0;
  }

  ul.nav a.active {
    padding-left: 0;
    border-left-width: 3px;
  }

  .nav-icon {
    width: 24px;
    height: 24px;
  }

  /* Visually hides text on small screens while keeping it readable for search engines and screen readers */
  .sidebarTitle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .content {
    margin: 12px 10px 115px 10px;
    padding: 16px 16px;
  }

  .pageTitle {
    font-size: 18px;
  }

  .title {
    font-size: 15px;
  }

  .mainContent {
    font-size: 14px;
  }

  a.cta-button,
  a.cta-button:link,
  a.cta-button:visited {
    font-size: 15px;
    padding: 12px 20px;
    width: 100%;
    max-width: 360px;
  }

  .cookie-banner {
    padding: 8px 12px;
    gap: 10px;
  }

  .cookie-text {
    font-size: 12px;
  }
}