/* Shared by about.html and methodology.html: the two-column "Explore" layout
   and the "Read more" method-card component (see static/js/method-card.js). */

html,
body {
    overflow-y: auto !important;
    height: auto !important;
}

.explore-section {
    padding: 0;
    margin: 0;
    background-color: #f9faf9;
}

.explore-layout {
    display: grid;
    grid-template-columns: minmax(300px, 400px) 1fr;
    gap: 0;
    min-height: 100vh;
}

.methodology-content {
    padding: 40px 250px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.methodology-heading {
    text-align: left;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    color: #2b2640;
    margin-bottom: 30px;
}

/* ─── Cards ─── */
.method-card {
    position: relative;
    text-align: left;
    background: #E0E0E0;
    padding: 20px 100px 20px 100px;
    transition: box-shadow 0.3s;
    border-top-right-radius: 30px;
    border-top-left-radius: 30px;
}

.method-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.method-card:not(:first-of-type):not(:last-of-type) {
    border-radius: 0;
}

.method-card:last-of-type {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.method-card-title {
    text-align: left;
    font-size: 26px;
    font-weight: 700;
    color: #2b2640;
    margin: 0 0 14px 0;
    font-family: "acumin-pro", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.method-card-preview {
    font-size: 21px;
    font-weight: 500;
    color: #6b7280;
    margin: 0 0 1px 0;
    font-family: "acumin-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.method-card.active .method-card-preview {
    display: none;
}

.method-card.active .method-card-full {
    max-height: 10000px;
}

.method-card-full p {
    font-size: 21px;
    color: #6b7280;
    margin-bottom: 14px;
    text-align: left;
    font-family: "acumin-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.method-card-full p.method-card-subtitle {
    color: #000;
    margin-bottom: 0;
}

.method-card-full p.method-card-subtitle+p {
    margin-top: 0;
}

.method-card-full ul.method-card-list {
    list-style: none;
    margin: 0 0 14px 0;
    padding-left: 40px;
}

.method-card-full ul.method-card-list li {
    font-size: 21px;
    color: #6b7280;
    margin-bottom: 14px;
    text-align: left;
    font-family: "acumin-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.method-card-full ul.method-card-list li strong {
    font-weight: 700;
    color: #6b7280;
}

.diagram-block {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.diagram-text {
    flex: 4;
}

.method-card-full .diagram-text .diagram-title {
    font-weight: 700;
    font-size: 17px;
    color: #2d2d2d;
    margin-bottom: 4px;
    line-height: 1.3;
    text-wrap: balance;
}

.method-card-full .diagram-text .diagram-caption {
    font-size: 16px;
    color: #6b6b6b;
    margin-bottom: 2px;
    text-wrap: pretty;
}

.diagram-image {
    flex: 6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diagram-image img {
    width: 100%;
    /* max-width: 320px; */
    /* max-height: 220px; */
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .diagram-block {
        flex-direction: column;
    }
}

.method-card-link {
    position: absolute;
    right: 30px;
    bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.method-card-clearfix {
    clear: both;
}

@media (max-width: 768px) {
    .explore-layout {
        grid-template-columns: 1fr;
    }

    .explore-image-col {
        height: auto;
        max-height: 400px;
    }

    .methodology-content {
        padding: 25px 20px;
    }

    .method-card {
        padding: 22px 24px 48px 24px;
    }

    .method-card-link {
        right: 16px;
    }
}
