@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;700&family=Roboto+Mono&display=swap');
:root  > * {
    --md-primary-fg-color:        #FF7357;
    --md-primary-fg-color--light: #FF9985;
    --md-primary-fg-color--dark: #FF5333;
  }

[data-md-color-scheme="default"] {
  --md-default-bg-color:        #fdfbf7;
  --md-typeset-a-color:         #c4402a;
}



/* Global font for body text */
body {
font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
/* The fonts after 'Lato' are fallbacks */
}

/* Override grid width ONLY if the custom landing page exists */
.md-grid:has(.custom-landing-page) {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Remove internal padding/margins ONLY for the landing page */
.md-content__inner:has(.custom-landing-page) {
    margin: 0;
    padding: 0;
}

/* Ensure the landing page content fills the available space */
.custom-landing-page {
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fdfbf7;
    width: 100%;
}

/* Your Custom Styles (Scoped) */
.custom-landing-page h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1rem; color: #333; }
.custom-landing-page h2 { font-size: 2rem; margin-top: 0; font-weight: 300; }
.custom-landing-page h3 { color: #b5543e; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 0.5rem; }
.custom-landing-page .bg-dark h3 { color: #ef8a6f; }
.custom-landing-page p { margin-bottom: 1rem; font-size: 1rem; }
.custom-landing-page strong { font-weight: 700; }

.custom-landing-page .container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.custom-landing-page .section { padding: 40px 0; }
.custom-landing-page .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.custom-landing-page img { max-width: 60%; height: auto; display: block; margin: 0 auto; }

/* Colors */
.custom-landing-page .bg-cream { background-color: #fdfbf7; color: #333; }
.custom-landing-page .bg-green { background-color: #8bd3ae; color: #333; }
.custom-landing-page .bg-dark { background-color: #3a3c3d; color: #fff; }

/* Buttons */
.custom-landing-page .btn-group { display: flex; gap: 15px; margin-bottom: 2rem; }
.custom-landing-page .btn { padding: 12px 25px; text-decoration: none; border-radius: 4px; font-weight: 600; font-size: 0.9rem; display: inline-block; }
.custom-landing-page .btn-dark { background-color: #333; color: #fff; }
.custom-landing-page .btn-green { background-color: #8bd3ae; color: #333; }

/* Specific Components */
.custom-landing-page .hero-text { max-width: 500px; }
.custom-landing-page .hero-sub { font-size: 1.2rem; color: #555; }
.custom-landing-page .banner-text { text-align: center; max-width: 800px; margin: 0 auto; }

/* Mobile */
@media (max-width: 768px) {
    .custom-landing-page .grid-2 { grid-template-columns: 1fr; text-align: center; }
    .custom-landing-page .btn-group { justify-content: center; }
    .custom-landing-page .hero-sub { margin: 0 auto; }
}


/* Hack to prevent dark mode from changing the color to white */
.custom-landing-page .bg-cream h2 { color: #333; } 

/*

TODO: Remove when switching back to zensical 

*/

[data-md-color-scheme="default"]  .md-header  {
  /* Override the primary header colors only for Light Mode */
  --md-primary-fg-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(0.4rem);
  --md-primary-bg-color: #000000; /* Header Icons/Text: Black */
  box-shadow: none;               /* Remove drop shadow for a flatter look */
}


/* 2. Navbar/Tabs Container (Light Mode) */
[data-md-color-scheme="default"] .md-tabs {
  --md-primary-fg-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(0.4rem);
  border-bottom: 1px solid #e0e0e0;
}

/* 3. Navbar Links - Inactive (Light Mode) */
[data-md-color-scheme="default"] .md-tabs__link {
  color: #525252; /* Dark Grey */
  opacity: 1;     /* Reset opacity so we can control color precisely */
}

/* 4. Navbar Links - Active & Hover (Light Mode) */
[data-md-color-scheme="default"] .md-tabs__link:hover,
[data-md-color-scheme="default"] .md-tabs__link--active,
[data-md-color-scheme="default"] .md-tabs__item--active .md-tabs__link {
  color: #000000 !important; /* Force Black text */
  font-weight: 700 !important; /* Force Bold (Added !important) */
  opacity: 1 !important;

}

[data-md-color-scheme="slate"] {
  --md-typeset-a-color:         #ff9a85;
}

[data-md-color-scheme="slate"] .md-tabs  {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(0.4rem);
  border-bottom: 1px solid #2e2e2e;
}

[data-md-color-scheme="slate"] .md-header {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(0.4rem);
}

/* About: unify university logo heights in cards */
.md-typeset img.uni-logo {
  height: 32px !important;
  width: auto;
}

/* White background behind logos in dark mode for visibility */
[data-md-color-scheme="slate"] .md-typeset p:has(> img.participating-uni) {
  background-color: white;
  padding: 1rem;
  border-radius: 6px;
  height: 110px;
  align-content: center;
}


/* Card container */
.changelog-card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}

/* Card header row */
.changelog-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background-color: var(--md-default-fg-color--lightest);
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.changelog-date {
  font-size: 0.7rem;
  color: var(--md-default-fg-color--light);
  min-width: 5.5rem;
}

.changelog-title {
  font-weight: 600;
  font-size: 0.8rem;
  flex: 1;
}

/* Card body */
.changelog-card-body {
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.changelog-card-body p {
  margin: 0 0 0.35rem 0;
}

.changelog-card-body p:last-child {
  margin-bottom: 0;
}

.changelog-card-body ul {
  margin: 0.3rem 0 0 1rem;
  padding: 0;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  margin-left: auto;
}

.badge-added {
  background-color: #1f8a4c;
  color: #ffffff;
}

.badge-changed {
  background-color: #d4860a;
  color: #ffffff;
}

.badge-deprecated {
  background-color: #6c757d;
  color: #ffffff;
}

.badge-removed {
  background-color: #4a4a4a;
  color: #ffffff;
}

.badge-fixed {
  background-color: #28a745;
  color: #ffffff;
}

.badge-security {
  background-color: #c0392b;
  color: #ffffff;
}