/* =========================================================
   LATEST NEWS
   ========================================================= */

.latest-news {
    margin: 0 0 28px 0;
    padding: 14px 18px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
}

.latest-news h3 {
    margin: 0 0 8px 0;
    font-size: 1.05em;
}

.latest-news-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0;
    padding: 3px 0;
    border-bottom: none;
    white-space: nowrap;
    overflow: hidden;
}

.latest-news-date {
    flex: 0 0 auto;
    font-size: 0.72em;
    opacity: 0.55;
}

.latest-news-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.68em;
    line-height: 1.2;
}


/* =========================================================
   LATEST PROJECT CONTENT
   ========================================================= */

.latest-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 0 0 40px 0;
}

.latest-card {
    padding: 14px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    min-width: 0;
}

.latest-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.05em;
}

.latest-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.latest-card audio {
    display: block;
    width: 100%;
    margin-top: 10px;
}

.latest-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #000;
}

.latest-card a {
    font-weight: bold;
}

.latest-meta {
    font-size: 0.75em;
    opacity: 0.55;
    margin-top: 6px;
}

.latest-media-title {
    margin: 8px 0 0 0;
    font-size: 0.82em;
    line-height: 1.25;
    font-weight: bold;
}

.latest-media-title a {
    font-size: inherit;
}


/* =========================================================
   SUPPORT
   ========================================================= */

.support-action {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 24px 0 30px 0;
    flex-wrap: wrap;
}

.support-button {
    display: inline-block;
    padding: 16px 28px;
    border-radius: 8px;
    background: rgba(110, 75, 35, 0.18);
    border: 1px solid rgba(110, 75, 35, 0.3);
    font-size: 1.05em;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.12);
}

.support-button:hover {
    background: rgba(110, 75, 35, 0.28);
}

.support-amounts {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
}

.support-amounts span {
    display: inline-block;
    font-size: 0.95em;
    font-weight: bold;
}

.chapter-heading-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.chapter-heading-nav h2 {
    margin: 0;
    text-align: center;
}

.chapter-nav {
    color: #444 !important;
    text-decoration: underline;
    font-weight: bold;
}

.chapter-nav:visited {
    color: #444 !important;
}

.chapter-nav:hover {
    color: #222 !important;
}

.chapter-nav.prev {
    text-align: left;
}

.chapter-nav.next {
    text-align: right;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .latest-content {
        grid-template-columns: 1fr;
    }

    .latest-card img,
    .latest-card video {
        height: auto;
    }

    .latest-news-item {
        display: block;
    }

    .latest-news-date {
        display: inline;
        margin-right: 7px;
    }

    .latest-news-text {
        display: inline;
        white-space: normal;
    }
    
        .chapter-heading-nav {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .chapter-heading-nav h2 {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .chapter-nav.prev,
    .chapter-nav.next {
        grid-row: 2;
    }

    .chapter-nav.next {
        text-align: right;
    }
}
