
/* =========================================
   1. HEADERIN RUNKO (Yleiset asetukset)
   ========================================= */
.md-header {
    position: sticky !important;
    top: 0;
    height: auto;
    min-height: 4rem;
    z-index: 100;
}

.md-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    padding: 0.5rem 0;
}

/* =========================================
   2. LOGO JA BRÄNDÄYS
   ========================================= */
.md-logo img {
    display: block;
    height: auto !important;
    width: auto;
    max-height: 5.5rem !important;

    /* Valkoiset pyöristetyt reunat */
    background-color: white;       /* Varmistaa taustan, jos logo on läpinäkyvä */
    border: 1px solid white;       /* Reunan paksuus */
    border-radius: 12px;           /* Pyöristyksen voimakkuus */
    padding: 2px;                  /* Tyhjää tilaa kuvan ja reunan väliin */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Kevyt varjo tuomaan syvyyttä */
}

/* =========================================
   3. NAVIGAATIO (Välilehdet nimen viereen)
   ========================================= */
.md-tabs {
    display: flex;
    background-color: transparent !important;
    margin-left: 1rem;
    margin-top: 0;
}

.md-tabs__list {
    margin-bottom: 0;
}

/* =========================================
   4. HAKU JA IKONIT (Oikea reuna)
   ========================================= */
.md-header__items--shared {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 0.5rem;
}

/* =========================================
   5. SISÄLTÖ JA KOMPONENTIT (Taulukot & Kuvat)
   ========================================= */
.md-typeset table {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.md-typeset table th {
    background-color: var(--md-primary-color);
    color: white;
}

img[alt="RepoStage Hero"] {
    display: block;
    margin: 1rem auto;
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
}