/*
Theme Name:   Astra Himetop
Theme URI:    https://himetopwp-coll.maioralabs.it
Description:  Child theme of Astra for the Himetop medical history archive.
Author:       Maiora Labs
Template:     astra
Version:      1.0.0
Text Domain:  astra-himetop
*/

/* ============================================================
   TABLE RESPONSIVE
   ============================================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

.wp-block-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.wp-block-table th,
.wp-block-table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.wp-block-table thead th {
    background: #f5f5f5;
    font-weight: 600;
}

/* ============================================================
   FIGURE / FIGCAPTION
   ============================================================ */
figure.wp-block-image {
    margin: 1.5rem 0;
    text-align: center;
}

figure.wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

figcaption.wp-element-caption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.4rem;
    font-style: italic;
}

/* ============================================================
   INDEX PAGE — children grid
   ============================================================ */
.himetop-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.himetop-index-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    background: #fff;
}

.himetop-index-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.himetop-index-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.himetop-index-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.himetop-index-card-body {
    padding: 0.85rem 1rem;
}

.himetop-index-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
    color: #222;
}

.himetop-index-card-excerpt {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
