/* yCrash - Light Code Block Theme */

.wp-block-code.is-style-solarized-dark {
    background: #f7f9f6 !important;
    border: 1px solid #e2e6df !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin: 30px 0 !important;
    overflow: hidden !important;
}

.wp-block-code.is-style-solarized-dark pre {
    background: #f7f9f6 !important;
    margin: 0 !important;
    padding: 24px 28px !important;
    overflow-x: auto !important;
}

.wp-block-code.is-style-solarized-dark code {
    background: transparent !important;
    color: #242424 !important;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

/* Java syntax colors */
.wp-block-code.is-style-solarized-dark .cm-keyword {
    color: #3f7f2f !important;
}

.wp-block-code.is-style-solarized-dark .cm-def {
    color: #176b5b !important;
}

.wp-block-code.is-style-solarized-dark .cm-variable {
    color: #242424 !important;
}

.wp-block-code.is-style-solarized-dark .cm-variable-2 {
    color: #176b5b !important;
}

.wp-block-code.is-style-solarized-dark .cm-string {
    color: #a15c20 !important;
}

.wp-block-code.is-style-solarized-dark .cm-comment {
    color: #687267 !important;
}

.wp-block-code.is-style-solarized-dark .cm-number {
    color: #7b5fa3 !important;
}

.wp-block-code.is-style-solarized-dark .cm-operator {
    color: #242424 !important;
}

/* Mobile */
@media (max-width: 768px) {
    .wp-block-code.is-style-solarized-dark pre {
        padding: 18px 16px !important;
    }

    .wp-block-code.is-style-solarized-dark code {
        font-size: 13px !important;
    }
}

/

/* ==========================================
   GLOBAL BLOG TABLE STYLE - yCrash / Blocksy
   ========================================== */

/* Main content tables */
.entry-content table,
.ct-content table,
.wp-block-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    background: #ffffff;
    border: 1px solid #e5e7e5;
    border-radius: 6px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.5;
}

/* Table header */
.entry-content table thead th,
.ct-content table thead th,
.wp-block-table table thead th {
    background: #f5f8f3;
    color: #222222;
    font-weight: 600;
    text-align: left;
    padding: 15px 18px;
    border-bottom: 2px solid #4caf20;
}

/* Table body cells */
.entry-content table tbody td,
.ct-content table tbody td,
.wp-block-table table tbody td {
    padding: 14px 18px;
    color: #333333;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

/* Vertical column divider */
.entry-content table th + th,
.entry-content table td + td,
.ct-content table th + th,
.ct-content table td + td,
.wp-block-table table th + th,
.wp-block-table table td + td {
    border-left: 1px solid #eeeeee;
}

/* Remove bottom border from final row */
.entry-content table tbody tr:last-child td,
.ct-content table tbody tr:last-child td,
.wp-block-table table tbody tr:last-child td {
    border-bottom: none;
}

/* Subtle row hover */
.entry-content table tbody tr:hover td,
.ct-content table tbody tr:hover td,
.wp-block-table table tbody tr:hover td {
    background: #fafcf9;
}

/* ==========================================
   Rounded corners
   ========================================== */

.entry-content table thead tr:first-child th:first-child,
.ct-content table thead tr:first-child th:first-child,
.wp-block-table table thead tr:first-child th:first-child {
    border-top-left-radius: 6px;
}

.entry-content table thead tr:first-child th:last-child,
.ct-content table thead tr:first-child th:last-child,
.wp-block-table table thead tr:first-child th:last-child {
    border-top-right-radius: 6px;
}

.entry-content table tbody tr:last-child td:first-child,
.ct-content table tbody tr:last-child td:first-child,
.wp-block-table table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 6px;
}

.entry-content table tbody tr:last-child td:last-child,
.ct-content table tbody tr:last-child td:last-child,
.wp-block-table table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 6px;
}

/* ==========================================
   Mobile
   ========================================== */

@media (max-width: 768px) {

    .entry-content table,
    .ct-content table,
    .wp-block-table table {
        font-size: 14px;
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .entry-content table th,
    .entry-content table td,
    .ct-content table th,
    .ct-content table td,
    .wp-block-table table th,
    .wp-block-table table td {
        padding: 12px 14px;
    }
}

/* =========================================
   GLOBAL YOUTUBE VIDEO FIX
   Applies to ALL blog posts
   ========================================= */

.entry-content iframe[src*="youtube.com/embed"],
.entry-content iframe[src*="youtube-nocookie.com/embed"] {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    max-width: 100% !important;
    border: 0 !important;
    margin: 30px 0 40px !important;
}


/* Make sure the Custom HTML block doesn't
   restrict the video dimensions */

.entry-content .wp-block-html {
    width: 100% !important;
    max-width: 100% !important;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

    .entry-content iframe[src*="youtube.com/embed"],
    .entry-content iframe[src*="youtube-nocookie.com/embed"] {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        margin: 20px 0 30px !important;
    }
}