/* -----------------------------------
 * Font import and base font family
 * ----------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;700&display=swap');
/* (adjust the font weights and styles as needed) */ 

body {
  --md-text-font-family: 'DM Sans', Helvetica, sans-serif;
  font-size: 0.777778rem;
}

/* -----------------------------------
 * Color palette overrides (Opaque brand)
 * ----------------------------------- */
:root {
  --md-default-fg-color--light: #738489; /* OPAQUE Neutral */
  --md-primary-fg-color: #ffffff;
  --md-primary-bg-color: #1F2125; /* OPAQUE Black */
  --md-accent-fg-color: #10BA87; /* OPAQUE brand green */
  --md-accent-bg-color: #10BA87;
  --md-typeset-a-color: var(--md-accent-fg-color);
}

/* -----------------------------------
 * Heading and text styles
 * ----------------------------------- */
.md-typeset h1 { font-weight: bold; }
.md-typeset h2 { font-size: 1.7em; font-weight: bold; }
.md-typeset h3 { font-size: 1.4em; font-weight: bold; }
.md-typeset h4 { font-size: 1.2em; font-weight: bold; }
.md-typeset h5 { font-size: 1.1em; font-weight: 500; }
.md-typeset h6 { font-size: 1em; font-weight: 600; color: #000000de; }

article ul ul { list-style-type: circle !important; }
article ul ul ul { list-style-type: square !important; }

/* -----------------------------------
 * Layout and navigation
 * ----------------------------------- */
 
 /* Remove default header shadow */
.md-header {
  box-shadow: none;
}

/* Bold top nav tabs */
.md-tabs__link {
  font-weight: bold;
}

.md-tabs__list {
  border-bottom: 1px solid #E3E7E8;
}

.md-tabs__item--active {
  border-bottom: 2px solid var(--md-accent-fg-color);
}

.md-nav__item {
  margin: 16px 0px 0px 0px;
}

.md-nav__item .md-nav__link--active {
  color: var(--md-accent-fg-color);
}

.md-header__title span {
  display: none;
}

/* Search field styling */
.md-search__form {
  background: var(--md-primary-fg-color);
  border: 1px solid #e3e7e8;
  border-radius: 24px;
}

/* Add spacing *above* each section heading in the left nav */
.md-nav__item--section {
  margin-top: 1.25rem;
}

/*
Add spacing *only* above sections that follow others
.md-nav__item--section + .md-nav__item--section {
  margin-top: 1.5rem;
} */


/* -----------------------------------
 * Link and external link styling
 * ----------------------------------- */

/* Default: Opaque green, no underline */
.md-typeset a {
  color: var(--md-accent-fg-color);
  text-decoration: none;
}

/* On hover or active: green + underline */
.md-typeset a:hover,
.md-typeset a:active {
  text-decoration: underline;
}

/* Release Notes link override — must come AFTER the generic rules */
.md-typeset a.card-link-muted {
  color: inherit !important;
  text-decoration: none;
  font-weight: 500;
}

.md-typeset a.card-link-muted:hover,
.md-typeset a.card-link-muted:focus {
  color: var(--md-accent-fg-color) !important;  /* turns green on hover */
  text-decoration: underline;
}


a.autorefs-external::after {
  background-image: url('data:image/svg+xml,...'); /* icon */
  content: ' ';
  display: inline-block;
  position: relative;
  top: 0.1em;
  margin-left: 0.2em;
  margin-right: 0.1em;
  height: 1em;
  width: 1em;
  border-radius: 100%;
  background-color: var(--md-typeset-a-color);
}

a.autorefs-external:hover::after {
  background-color: var(--md-accent-fg-color);
}

/* Back to top link text fix */
.md-top:focus,
.md-top:hover {
  background-color: var(--md-accent-fg-color); /* Opaque brand green */
  color: white; /* Ensures contrast */
}

.md-top {
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* -----------------------------------
 * Image - thin border around images
 * ----------------------------------- */

.md-typeset img {
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 3px;   /* optional, rounds corners */
  padding: 2px;
  background-color: #fff; /* ensures clean edge if the screenshot has transparency */
}

/* -----------------------------------
 * Homepage card layout
 * ----------------------------------- */

/* Container for all cards */
.card-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Individual card styling */
.card {
  width: 280px;
  height: 180px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: box-shadow 0.2s ease-in-out;
}

/* Hover effect */
.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Ensure anchor fills the card area */
.card a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  font-size: 1rem;
  font-weight: 500;
}

/* -----------------------------------
 * Figure/image caption styles
 * ----------------------------------- */
.md-typeset figcaption {
  color: #666;
  font-size: 0.9em;
  text-align: center;
  margin-top: 0.5em;
}

/* -----------------------------------
 * Responsive layout tweaks
 * ----------------------------------- */
/* @media (min-width: 768px) {
  .md-main__inner {
    max-width: 100% !important;
  }
} */

/* -----------------------------------
 * Utility classes
 * ----------------------------------- */
.right {
  float: right;
}

.hidden-warning {
  display: none;
}
