/* Table */
section#writing-table {
    width: 100%;
    padding: 25px;
}
section#writing-table table {
    font-size: 20px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
section#writing-table table thead th {
    color: var(--color-red);
    padding: 5px 0;
}
section#writing-table table th,
section#writing-table table td {
    vertical-align: top;
    border-bottom: 1px solid var(--color-red);
}
section#writing-table table th:nth-child(1),
section#writing-table table td:nth-child(1) {
    width: 60%;
}
section#writing-table table th:nth-child(2),
section#writing-table table td:nth-child(2) {
    width: 25%;
    padding-top: 5px;
    padding-bottom: 15px;
    padding-left: 20px;
}
section#writing-table table th:nth-child(3),
section#writing-table table td:nth-child(3) {
    width: 15%;
    padding-top: 5px;
    padding-bottom: 15px;
    padding-left: 20px;
}
section#writing-table table td summary {
    display: block;
    width: 100%;
    padding-bottom: 15px;
    padding-top: 5px;
    cursor: pointer;
}
section#writing-table table td summary span {
    display: inline;
}
section#writing-table table td summary:hover span, section#writing-table table td details[open] summary span {
    color: var(--color-black);
    background-color: var(--color-red);
}
section#writing-table table a {
    color: var(--color-red);
}
#writing-table .details-content p {
    font-size: 20px;
    line-height: 28px;
    margin: 0 0 10px 0;
    width: 80%;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    section#writing-table {
        padding: 15px 10px;
        margin-top: 10px;
    }
    
    /* section#writing-table table {
        font-size: 16px;
        border-spacing: 0 15px;
    } */
    
    /* Hide table headers */
    section#writing-table table thead {
        display: none;
    }
    
    /* Stack table rows */
    section#writing-table table,
    section#writing-table table tbody,
    section#writing-table table tr,
    section#writing-table table td {
        display: block;
        width: 100%;
    }
    
    section#writing-table table tr {
        margin-bottom: 50px;
    }
    
    section#writing-table table td {
        padding: 5px 0;
        width: 100% !important;
        padding-left: 0 !important;
    }

    section#writing-table table .project-title span {
        text-decoration: underline;
        text-underline-offset: 4px;
    }

    section#writing-table table td summary:hover span {
        color: var(--color-white);
        background-color: transparent;
    }
    section#writing-table table td details[open] summary span {
        text-decoration: none;
    }
}
