


/* Shared card styling for context and summary */
summary {
    list-style: none;
    display: grid;
}

summary::-webkit-details-marker {
    display: none;
}
.post-context,
.post-summary {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fafafa;
}

/* By summaryitem I mean the html code <summary> not a 'summary of the blogpost' */
.summaryitem-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.summaryitem-header::-webkit-details-marker {
    display: none;
}


.post-summary .summaryitem-content,
.post-context .summaryitem-content {
    display: block;
    position: relative;
    -webkit-line-clamp: unset;
    overflow: visible;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.summaryitem-content-wrapper {
    position: relative;
}
.summaryitem-content-wrapper::after {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    bottom: 0;

    height: 2.5em;

    background: linear-gradient(
        to bottom,
        rgba(250,250,250,0),
        #fafafa
    );

    pointer-events: none;
}

.post-summary[open] .summaryitem-content,
.post-context[open] .summaryitem-content {
     display: block;

    -webkit-line-clamp: unset;

    overflow: visible;
}



.summaryitem-header::after {
    grid-column: 3;
    justify-self: end;
    content: "Show more";
    color: #89b6a5;
}
.post-context[open] .summaryitem-header::after,
.post-summary[open] .summaryitem-header::after
 {
    content: "Show less";
}
.summaryitem-header h2 {
    grid-column: 2;
    margin: 0;
}
.post-summary[open] .summaryitem-content-wrapper::after, .post-context[open] .summaryitem-content-wrapper::after {
    display: none;
}


.post-context h2,
.post-summary h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
}




/* Optional: visually separate metadata sections */
.post-context {
    border-left: 4px solid #89b6a5;
}

.post-summary {
    border-left: 4px solid #89b6a5;
}

.blog-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ===== Figure tables ===== */

table.figure-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

table.figure-table td {
    border: none;
    text-align: center;
    vertical-align: bottom;
    padding: 1rem;
}

table.figure-table img {
    display: block;
    max-width: 80%;
    margin: 0 auto;
}

table.figure-table p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #555;
}


/* ===== Scientific result tables ===== */

table.results-table {
    border-collapse: collapse;
    margin: 2rem auto;
    font-size: 0.95rem;
    min-width: 300px;
}

table.results-table th,
table.results-table td {
    padding: 0.6rem 1.2rem;
    text-align: center;
}

/* Top rule */
table.results-table tr:first-child th {
    border-top: 2px solid #222;
}

/* Rule below title row */
table.results-table tr:first-child th {
    border-bottom: 1px solid #666;
}

/* Rule below column headers */
table.results-table tr:nth-child(2) td {
    border-bottom: 1px solid #aaa;
}

/* Bottom rule */
table.results-table tr:last-child td {
    border-bottom: 2px solid #222;
}

/* No vertical lines */
table.results-table th,
table.results-table td {
    border-left: none;
    border-right: none;
}

table.results-table caption {
    caption-side: bottom;
    padding-top: 0.75rem;
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
}

.author-section {
    margin: 2rem 0 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

.author-section h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
    margin-bottom: 0.5rem;
}
.author-section h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #666;
    margin-bottom: 0.5rem;
}



.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.author {
    text-align: center;
}

.author strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.author span {
    display: block;
    color: #666;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .blog-overview {
        grid-template-columns: 1fr;
    }
}