nav .twemoji {
    display: inline-flex;
    height: 1.125em;
    width: 1.125em;
    fill: currentColor;
    vertical-align: text-top;
}

.md-typeset__table th {
    background-color: rgb(94, 94, 94);
    color: white;
}

.md-grid {
    margin-left: 3rem;
    margin-right: 3rem;
    max-width: none;
}

object {
    max-width: 100%;
}

.md-typeset h5 {
    text-transform: none;
}

.my-version {
    margin-left: 1.2rem;
    font-weight: normal;
    font-size: smaller;
}

/* Mobile Responsive Styles */

/* Base responsive grid adjustments */
@media screen and (max-width: 768px) {
    .md-grid {
        margin-left: 1rem;
        margin-right: 1rem;
        max-width: none;
    }
    
    /* Improved touch targets for mobile */
    .md-nav__link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Better spacing for mobile content */
    .md-content {
        padding: 1rem 0.5rem;
    }
    
    /* Responsive tables */
    .md-typeset__table {
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    .md-typeset table:not([class]) {
        font-size: 0.8rem;
    }
    
    /* Responsive images and objects */
    .md-typeset img,
    .md-typeset svg,
    object {
        max-width: 100%;
        height: auto;
    }
    
    /* Navigation improvements for mobile */
    .md-tabs {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .md-tabs::-webkit-scrollbar {
        display: none;
    }
    
    /* Search input adjustments */
    .md-search__input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Code block improvements */
    .md-typeset .highlight {
        overflow-x: auto;
    }
    
    .md-typeset pre {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .md-grid {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .md-content {
        padding: 0.5rem 0.25rem;
    }
    
    .md-typeset h1 {
        font-size: 1.5rem;
    }
    
    .md-typeset h2 {
        font-size: 1.3rem;
    }
    
    .md-typeset h3 {
        font-size: 1.1rem;
    }
    
    /* Improved button spacing */
    .md-typeset .tabbed-set {
        margin: 0.5rem 0;
    }
    
    /* Better form elements */
    .md-typeset input,
    .md-typeset textarea,
    .md-typeset select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .md-nav__link,
    .md-tabs__link,
    .md-header__button {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Remove hover effects on touch devices */
    .md-nav__link:hover,
    .md-tabs__link:hover {
        background-color: transparent;
    }
}

/* AdSense mobile optimizations */
@media screen and (max-width: 768px) {
    .adsense-inline {
        margin: 1rem 0;
        text-align: center;
    }
    
    .adsense-inline .adsbygoogle {
        max-width: 100%;
        overflow: hidden;
    }
}