/* Styling for the main table element using the class selector */
.tables {
    width: 100%; /* Make the table responsive and take full width */
    border-collapse: collapse; /* Collapse borders into a single line */
    /* margin: 20px 0; */
    border-color: var( --border-component-secondary-dark);

}
tbody{
    vertical-align: super;

}

.tables q
{
    font-style: italic;
    font-weight: var(--font-weight-medium);
}

/* Styling for the table header cells (td in thead) and body cells (td in tbody) */
.tables td {
    width: fit-content; 
    padding: 1rem; /* Switched to fixed units for guaranteed spacing  */
    border: 0.5px solid var( --border-component-secondary-dark); /* Liinght grey border for separation */
    text-align: left; /* Left align text  all cells */
    line-height: 1.5; /* Improve readability of text blocks */
    vertical-align: top; /* Fixed from 'super' to keep text aligned  */

}

.--w30{
    width: 30%;
    }

/* Styling for the table header row cells */
.tables thead td {
    color: var(--text-main-primary-dark); /* White text for high contrast */
    font-weight: bold; /* Bold text for header distinction */
    text-transform: uppercase; /* Uppercase for a clear header */
    letter-spacing: 0.5px;

}


/* Zebra striping for improved readability (alternating row colors) */
/* .tables tbody tr:nth-child(odd) {
    background-color: var(--bg-component-secondary-light); Very light grey for even rows
} */


/* Fix for the first column weight */
.tables tbody tr td:first-child {
    font-weight: bold; 
    min-width: 100px;
        border: 0.5px solid var( --border-component-secondary-dark); /* Liinght grey border for separation */
}
/* Ensure the 'Because' column takes up the most room */
/*
.tables td:last-child {
    width: 100%; 
}
*/
.tables th{
        border: 0.5px solid var( --border-component-secondary-dark); /* Liinght grey border for separation */
}



/* Ensure bold text within cells is clearly visible */
.tables b {
    color: var(--text-main-primary-dark); /* A slightly darker green for emphasized text */
    
}

@media only screen and (max-width:768px) {
    .tables{
        overflow-x: auto;
    }

.tables tbody tr td:first-child {

    min-width: 10px;
} 

/* Styling for the table header cells (td in thead) and body cells (td in tbody)
.tables td {
  
    padding: 0.25rem; /* Switched to fixed units for guaranteed spacing  */


 } 

/* @media only screen and (max-width: 768px) {

.tables tbody tr td:first-child {
    font-weight: var(--font-weight-base);
   
}

    /* Hide the original header 
    .tables thead {
        display: none;
    }

    /* Make the table and rows act as container blocks 
    .tables, .tables tbody, .tables tr {
        display: block;
        width: 100%;
    }

    /* Treat each row as an individual card 
    .tables tr {
        margin-bottom: 1.5rem;
          padding: 1rem;
        background: #fff; /* Ensures card stands out 

        border-radius: var(--border-radius-xs);
    }

    /* Convert cells into labels + data pairs 
    .tables td {
        display: block;
        width: 100% !important;
        padding: 0.25rem 0 !important;
        border: none !important;
    }

    /* Use pseudo-elements to re-add the labels to each card item 
    .tables td:nth-of-type(1)::before { content: "Name: "; font-weight: bold; }
    .tables td:nth-of-type(2)::before { content: "Occupation: "; font-weight: bold; }
    .tables td:nth-of-type(3)::before { content: "Who needs: "; font-weight: bold; display: block; }
    .tables td:nth-of-type(4)::before { content: "Because: "; font-weight: bold; display: block; }
}
    } */


@media print {
 .tables{
        -webkit-print-color-adjust: exact !important; /* For Chrome, Safari, Edge */
        print-color-adjust: exact !important;         /* Standard property */
          break-inside: avoid;
    }

}