
/* REVOLUTIONS IN SCIENCE - PAGE 4968 */

/* Hide the automatic page title */
.page-id-4968 .entry-title,
.page-id-4968 .entry-header {
    display: none !important;
}

/* Hide the large Epiphany Science logo */
.page-id-4968 .site-branding {
    display: none !important;
}

/* Reduce empty space above the content */
.page-id-4968 .site-content {
    padding-top: 15px !important;
}

.page-id-4968 .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Widen the main content area */
.page-id-4968 .content-area,
.page-id-4968 .site-main {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Keep birthday tables and images responsive */
.page-id-4968 .entry-content img,
.page-id-4968 .entry-content table {
    max-width: 100%;
}

/* Hide the remaining page title on page 4968 */

body.page-id-4968 h1.entry-title,
body.page-id-4968 .entry-header .entry-title,
body.page-id-4968 .page-header .page-title {
    display: none !important;
}

/* Remove the space reserved for the title */
body.page-id-4968 .entry-header,
body.page-id-4968 .page-header {
    margin: 0 !important;
    padding: 0 !important;
}

/* REVOLUTIONS IN SCIENCE - WIDER PAGE */

/* Expand Argent's page content container */
body.page-id-4968 .site-content,
body.page-id-4968 .content-area,
body.page-id-4968 .site-main,
body.page-id-4968 .entry-content {
    width: 95% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Let the birthday finder use available width */
body.page-id-4968 #science-birthday-finder,
body.page-id-4968 #revolutions-birthday-finder {
    width: 100% !important;
    max-width: 100% !important;
}

/* Make tables fill their container */
body.page-id-4968 .entry-content table {
    width: 100% !important;
}

/* Keep images responsive */
body.page-id-4968 .entry-content img {
    max-width: 100%;
    height: auto;
}

/* WIDEN REVOLUTIONS IN SCIENCE - PAGE 4968 */

/* Remove Argent's narrow page width */
body.page-id-4968 .site-content .container,
body.page-id-4968 .site-content .wrap,
body.page-id-4968 .site-content .content-area,
body.page-id-4968 .site-content .site-main,
body.page-id-4968 .site-content article,
body.page-id-4968 .site-content .entry-content {
    width: 100% !important;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Widen the actual WordPress blocks */
body.page-id-4968 .wp-block-html,
body.page-id-4968 .wp-block-table,
body.page-id-4968 .wp-block-image {
    width: 100% !important;
    max-width: 1100px !important;
}

/* Override the birthday finder's own width limit */
body.page-id-4968 #science-birthday-finder,
body.page-id-4968 #revolutions-birthday-finder {
    width: 100% !important;
    max-width: 1100px !important;
}

/* Keep the tables from getting squeezed */
body.page-id-4968 table {
    width: 100% !important;
}

/* TEST: Remove Argent's content-width restrictions */

body.page-id-4968 .entry-content,
body.page-id-4968 .entry-content > *,
body.page-id-4968 .wp-block-group,
body.page-id-4968 .wp-block-html,
body.page-id-4968 .wp-block-table,
body.page-id-4968 .wp-block-image {
    max-width: none !important;
}

/* Keep the main content at a comfortable reading width */
body.page-id-4968 .site-main {
    width: 95% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
}

/* Argent: widen the birthday page's inner containers */

body.page-id-4968 .site-content .entry-content,
body.page-id-4968 .site-content .entry-content > *,
body.page-id-4968 .site-content .wp-block-table {
    max-width: 1100px !important;
    width: 100% !important;
}

/* Target Argent's narrower article layout */
body.page-id-4968 .site-content .hentry,
body.page-id-4968 .site-content .page {
    max-width: 1100px !important;
    width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* REVOLUTIONS IN SCIENCE - PAGE WIDTH FIX */

body.page-id-4968 #primary,
body.page-id-4968 #main,
body.page-id-4968 #post-4968,
body.page-id-4968 .page-content {
    width: 95% !important;
    max-width: 1100px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Allow the birthday tables to expand */
body.page-id-4968 .page-content .wp-block-table,
body.page-id-4968 .page-content .wp-block-image {
    width: 100% !important;
    max-width: 100% !important;
}

/* Make tables fill the available width */
body.page-id-4968 .page-content table {
    width: 100% !important;
}

/* Widen the birthday finder */
body.page-id-4968 #ris-birthday-finder {
    width: 100% !important;
    max-width: 100% !important;
}
/* Improve birthday table column proportions */
.page-id-4968 .page-content table {
    table-layout: auto !important;
}

.page-id-4968 .page-content table th:first-child,
.page-id-4968 .page-content table td:first-child {
    width: 5%;
}

.page-id-4968 .page-content table th:nth-child(2),
.page-id-4968 .page-content table td:nth-child(2) {
    width: 22%;
}

.page-id-4968 .page-content table th:nth-child(3),
.page-id-4968 .page-content table td:nth-child(3) {
    width: 13%;
}

.page-id-4968 .page-content table th:nth-child(4),
.page-id-4968 .page-content table td:nth-child(4) {
    width: 7%;
}/* Birthday search: scrolling and highlighting */

.page-id-4968 tr[id^="jan-"],
.page-id-4968 tr[id^="feb-"],
.page-id-4968 tr[id^="mar-"],
.page-id-4968 tr[id^="apr-"],
.page-id-4968 tr[id^="may-"],
.page-id-4968 tr[id^="jun-"],
.page-id-4968 tr[id^="jul-"],
.page-id-4968 tr[id^="aug-"],
.page-id-4968 tr[id^="sep-"],
.page-id-4968 tr[id^="oct-"],
.page-id-4968 tr[id^="nov-"],
.page-id-4968 tr[id^="dec-"] {
    scroll-margin-top: 90px;
}

/* Highlight the birthday selected in the URL */
.page-id-4968 tr:target {
    background-color: #252d63 !important;
    outline: 2px solid #91bfff;
    outline-offset: -2px;
}
/* REVOLUTIONS IN SCIENCE - STICKY BIRTHDAY FINDER */

/* Keep the birthday finder visible while scrolling */
body.page-id-4968 #ris-birthday-finder {
    position: sticky !important;
    top: 10px;
    z-index: 1000;
}

/* Prevent the sticky finder from hiding birthday rows */
body.page-id-4968 tr[id^="jan-"],
body.page-id-4968 tr[id^="feb-"],
body.page-id-4968 tr[id^="mar-"],
body.page-id-4968 tr[id^="apr-"],
body.page-id-4968 tr[id^="may-"],
body.page-id-4968 tr[id^="jun-"],
body.page-id-4968 tr[id^="jul-"],
body.page-id-4968 tr[id^="aug-"],
body.page-id-4968 tr[id^="sep-"],
body.page-id-4968 tr[id^="oct-"],
body.page-id-4968 tr[id^="nov-"],
body.page-id-4968 tr[id^="dec-"] {
    scroll-margin-top: 150px;
}

/* EPIPHANY SCIENCE - SITEWIDE CONTENT WIDTH */

@media (min-width: 900px) {

    #primary,
    #main,
    .page-content,
    .entry-content {
        width: 100%;
        max-width: 1100px;
        margin-left: auto;
        margin-right: auto;
    }

}

/* Responsive images and tables */
.page-content img,
.entry-content img {
    max-width: 100%;
    height: auto;
}

.page-content table,
.entry-content table {
    max-width: 100%;
}
