/* 1) Global: desactiva ligaduras en las fuentes en todo el documento */
html, body {
  font-variant-ligatures: none !important;
  font-feature-settings: "liga" 0, "clig" 0 !important;
}

/* 2) Material for MkDocs: cubre el contenido tipografiado */
.md-typeset, .md-content, .md-header, .md-nav, .md-sidebar {
  font-variant-ligatures: none !important;
  font-feature-settings: "liga" 0, "clig" 0 !important;
}


/* Title Design

/* ── Header: tighten logo → title spacing ──────────────────────────── */
.md-header__button.md-logo {      
    margin-right: 0rem;           
    padding-right: 1rem;             
  }
  
  /* optional: also make sure the title itself has no added margin */
  .md-header__title {
    margin-left: 0;                  
  }

/* ── Enlarge top-left logo ───────────────────────────────────────── */
.md-header__button.md-logo img {
    height: 2.5rem;   
    width: auto;    
  }
  
.md-typeset h1 {
    font-weight: 900;
    color: #0d73b2;
}

.md-typeset h2 {
    font-weight: 700;
}

.md-typeset h3 {
    font-weight: 700;
}

.md-nav__item--section > .md-nav__link {
  color: #0d73b2 !important;
  font-size: 0.8rem !important;
}

.md-search__form {
  border-radius: 12px !important; 
  overflow: hidden; 
}

.md-search__output {
  border-radius: 12px !important; 
  overflow: hidden; 
}

/*-----------------------------------------------*/

:root  > * {
    --md-primary-fg-color:        #0d73b2;
    --md-primary-fg-color--light: #ECB7B7;
    --md-primary-fg-color--dark:  #90030C;
  }



/* Image Styling */
/* Ensure images are displayed side by side */

.img-side-by-side {
    display: flex;
    justify-content: center;  
    gap: 20px;  
    align-items: center;
    flex-wrap: nowrap; 
    width: 100%; 
    max-width: 600px; 
    margin: 0 auto; 
}

/* Ensure all images inside .img-side-by-side respect the width */
.img-side-by-side img {
    width: 50%; 
    max-width: 600px; 
    height: auto; 
    object-fit: contain; 
}

/* Modern styling for images */
.img-modern {
    border-radius: 15px; 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); 
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; 
    width: 40%;  
}

/* Hover effect */
.img-modern:hover {
    transform: scale(1.08); 
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4); 
    filter: brightness(1.1); 
}

/* Ensure warning text matches the normal body text */
.md-typeset .admonition {
    font-size: inherit; 
    font-weight: normal; 
}

/* Ensure the warning title (e.g., "WARNING") is not too large */
.md-typeset .admonition-title {
    font-size: inherit; 
    font-weight: bold; 
}

/*---------------------------------------------------------------------------------------*/
/* 📸 Screenshot Styling */
.screenshot {
    display: block;
    max-height: 400px;
    border-radius: 6px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    margin: auto;
    margin-top: 20px;
    margin-bottom: 40px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* 🔍 Hover Effect: Slight Zoom */
.screenshot:hover {
    box-shadow: 0 12px 25px rgba(85, 85, 85, 0.4);
    transform: scale(1.03);
}

/* 🔎 Enlarged Image Overlay */
.screenshot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
}

/* 📢 Enlarged Image */
.screenshot-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

/* ✅ Make Overlay Visible */
.screenshot-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Style the arrow */
.arrow {
    font-size: 30px; 
    color: #0d73b2; 
    font-weight: bold;
}

.scr-side-by-side {
    display: flex;
    justify-content: center; 
    gap: 20px;  
    align-items: center;
    flex-wrap: nowrap; 
    width: 100%; 
    max-width: 100%; 
    margin: 0 auto; 
    margin-bottom: 30px;
}

/* Ensure all images inside .img-side-by-side respect the width */
.scr-side-by-side img {
    width: 50%; 
    max-width: none; 
    height: auto; 
    object-fit: contain; 
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .img-side-by-side {
        flex-direction: column;
        gap: 15px;
    }

    .img-modern {
        width: 90%; 
        max-width: 100%;
    }
}

/* ----------------------------------------------------------------------*/

/* Round the corners of each grid‐card item */
.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > ol > li,
.md-typeset .grid > .card {
  border-radius: 0.7rem !important;
  overflow: hidden;
  background-color: #f4f7fa; 
}

.md-search__input {
  border-radius: 0.5rem; 
}

/* ----------------------------------------------------------------------*/

/* REMOVE H4 ENTRIES FROM THE IN-PAGE NAVIGATION */

/* ── Hide H⁴ entries in the in‑page (secondary) sidebar nav ───────────────── */
.md-nav--secondary ul ul ul,
.md-sidebar--secondary ul ul ul {
  display: none !important;
}

/* ── Zero out the default spacing around level‑3 nav entries ───────── */
.md-nav--secondary .md-nav__item--level-3,
.md-sidebar--secondary .md-nav__item--level-3 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* ── Remove the auto‑generated separators in the in‑page nav ───────────────── */
.md-nav--secondary li.md-nav__separator,
.md-sidebar--secondary li.md-nav__separator {
  display: none !important;
}
