/* =========================================================
   NEWS / CARD GRIDS
   ========================================================= */

/* Desktop: 3 cards */
.news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 48px;
}

/* Tablet: 2 cards */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 40px;
    }
}

/* Mobile: 1 card */
@media (max-width: 767px) {
    .news-grid {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }
}


/* =========================================================
   FEATURED REPORT
   ========================================================= */

.featured-report-text {
    min-width: 0;
    width: 100%;
}

.featured-report-text p,
.featured-report-text h2 {
    white-space: normal;
    overflow-wrap: break-word;
}


/* =========================================================
   EVENTS ARCHIVE
   ========================================================= */

/*
 * Upcoming Events are generated as archive articles.
 * Desktop = 3 columns.
 */
.post-type-archive-event #main.site-main {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 48px;
}

/* Individual upcoming-event archive cards */
.post-type-archive-event #main > article {
    margin: 0;
    min-width: 0;
}

/*
 * GeneratePress can leave behind an empty archive-template
 * article when there are no upcoming events.
 * Remove that wrapper completely so it occupies no grid space.
 */
.post-type-archive-event #main > article.dynamic-content-template:empty {
    display: none !important;
}

/* Pagination must span the complete events grid */
.post-type-archive-event #main > .paging-navigation {
    grid-column: 1 / -1;
}

/*
 * Past Events is inserted separately by the Past Events Hook.
 * It should always begin on a new full-width row.
 */
.post-type-archive-event .past-events-section {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 32px;
}

/* Tablet: Upcoming Events = 2 columns */
@media (max-width: 1024px) {
    .post-type-archive-event #main.site-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 24px;
        row-gap: 40px;
    }

    .post-type-archive-event .past-events-section {
        margin-top: 24px;
    }
}

/* Mobile: Upcoming Events = 1 column */
@media (max-width: 767px) {
    .post-type-archive-event #main.site-main {
        grid-template-columns: 1fr;
        row-gap: 32px;
    }

    .post-type-archive-event .past-events-section {
        margin-top: 16px;
    }
}


/* Hide the default GeneratePress Events archive title */
.post-type-archive-event .page-header {
    display: none;
}


/*
 * The custom Events Archive Hero provides the top spacing,
 * so remove GeneratePress's additional site-content top padding.
 */
.post-type-archive-event #content.site-content {
    padding-top: 0 !important;
}


/* =========================================================
   GLOBAL NAVIGATION
   ========================================================= */

.gb-navigation a {
    transition: color 0.2s ease;
}

.gb-navigation a:hover {
    color: #3568b8;
}

html[lang="ja"] {
    line-break: strict;
    overflow-wrap: normal;
    word-break: normal;
}