.file-link {
    color: #a7d8ff;
    text-decoration: none;
    display: inline-block;
    margin: 2px 2px 2px 0;
    word-break: break-word;
    max-width: 100%;
    line-height: 1.4;
}

.file-link:hover {
    text-decoration: underline;
}

.file-link:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(57, 32, 93, 0.8);
    overflow: hidden;
}

.results-table th {
    background: #2a1744;
    color: #fff;
    padding: 12px;
    text-align: left;
    text-transform: uppercase;
    font-weight: 600;
}

.results-table td {
    padding: 12px;
    color: #fff;
    min-width: 90px;
}

.results-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media screen and (max-width: 768px) {
    .results-table thead {
        display: none;
    }
    
    .results-table, 
    .results-table tbody, 
    .results-table tr, 
    .results-table td {
        display: block;
        width: 100%;
    }
    
    .results-table tr {
        margin-bottom: 15px;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .results-table td {
        text-align: left;
        padding-left: 110px;  /* Reduced padding-left for more content space */
        padding-right: 8px;   /* Reduced right padding */
        position: relative;
        padding-top: 12px;
        padding-bottom: 12px;
        min-height: 44px;
        display: block;
    }
    
    .results-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 8px;           /* Reduced left spacing */
        width: 90px;         /* Reduced label width */
        text-align: left;
        font-weight: bold;
        top: 12px;
    }
    
    /* Accessibility mode override */
    body.accessible .results-table td {
        color: #4e364b !important;
    }
}

/* Accessibility mode - ensure links are underlined on mobile */
@media screen and (max-width: 768px) {
    body.accessible .results-table a {
        text-decoration: underline !important;
    }
}
