/* Desktop First */

/*
NOTE THIS STYLING IS BEING IMPLEMENTED DESKTOP FIRST Media queries: These are
 placeholders for responsive design. Add specific CSS rules within these blocks
 to adjust styling for different screen widths.
*/

/* default table */

/* set colours and font size */
.wp-block-table,
.wp-block-table table,
.wp-block-table th,
.wp-block-table td {
    border: none;
    background-color: var(--edmund-color-primary);
    color: var(--edmund-white);
    font-weight: 600;
    font-size: 1rem;
}
.wp-block-table table caption {
    background-color: var(--edmund-vivid-purple);
    font-size: 36px;
    padding: 1rem 0.6rem;
    border: solid 15px var(--edmund-color-primary);
    border-bottom: none;
}
.wp-block-table td,
.wp-block-table th {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    line-height: 1.5em;
}
/* cut corners */

table,
.wp-block-table table {
    border-collapse: separate;
    border-spacing: 15px;
    min-width: 600px;
}

/* unset border */
thead,
.wp-block-table thead,
.wp-block-table tr,
.wp-block-table th,
.wp-block-table td {
    border: none;
    text-align: center;
}
.wp-block-table {
    clip-path: var(--edmund-all-corners-clipped);
    padding: 0.2rem;
    margin: auto !important;
    overflow-x: scroll;
}
.wp-block-table td {
    background-color: var(--edmund-white);
    color: var(--edmund-black);
}
.has-first-column-highlight td:first-child {
    text-align: right;
    background-color: var(--edmund-color-primary);
    color: var(--edmund-white);
}

.has-first-column-highlight td:first-child a {
    color: var(--edmund-white);
}
.has-first-column-highlight td:first-child a:hover {
    color: var(--edmund-color-accent-yellow);
}
.wp-block-table td:nth-child(2n) {
    background-color: var(--edmund-light-grey);
}

@media only screen and (width <= 1240px) {
    /* Styles for medium screens can be added here */
}

@media only screen and (width <= 940px) {
    /* Styles for tablet /  half pane screens can be added here */
}

@media only screen and (width <= 730px) {
    /* Styles for small  tablet screens can be added here */
    .wp-block-table {
        padding: 0 !important;
        margin: 1rem 1rem !important;
        width: unset;
    }
    .wp-block-table table caption {
        font-size: 20px;
    }
    .wp-block-table th {
        display: none;
    }
    .wp-block-table td {
        display: block;
        font-weight: 500;
    }
    .wp-block-table td[data-heading]:not([data-heading=''])::before {
        content: attr(data-heading) ': ';
        font-weight: 600;
    }
    .hide-first-header-mobile td:first-child::before {
        content: unset !important;
    }
    .wp-block-table table {
        min-width: unset;
    }
    .has-first-column-highlight td:first-child {
        text-align: center;
    }
}

@media only screen and (width <= 450px) {
    /* Styles for phone screens can be added here */
}
