@import "fonts.css";
@import "base.css";
@import "header-footer.css";
@import "bricks.css";

/*------------------------*/
/* theme colors
/*------------------------*/

:root {
    --textDark: rgba(38, 50, 56, 1);
    --textMedium: rgba(38, 50, 56, 0.7);
    --borderMedium: rgba(38, 50, 56, 0.2); 
    --borderLight: rgba(38, 50, 56, 0.075);
    --accent: #f4b500;
    --textAccent: #e6ac00;
    --light: rgba(38, 50, 56, 0.035);
}
/*------------------------*/
/* turn grayscale off
/*------------------------*/

img {filter: grayscale(0);}

p > a > img {
    border-radius: 1rem;
    overflow: hidden;
}

/*------------------------*/
/* colorize_image
/*------------------------*/

.colorize_image {filter: contrast(1) sepia(1) hue-rotate(160deg) grayscale(0.8)!important;}

/*------------------------*/
/* black_2_textDark
/*------------------------*/

.map::after, .black_2_textDark {filter: contrast(0.7) sepia(1) hue-rotate(160deg)!important;}

/*------------------------*/
/* black_2_textMedium
/*------------------------*/

.black_2_textMedium {filter: contrast(0.3) sepia(0.3) hue-rotate(160deg) brightness(1.4)!important;}

/*------------------------*/
/* black_2_accent
/*------------------------*/

.black_2_accent {filter: contrast(0.11) sepia(1) hue-rotate(340deg) contrast(13)!important;}

/*------------------------*/
/* wide sections
/*------------------------*/

section.wide .meta {
    justify-content: center;
    margin: -0.75rem 0 2rem;
}

/*------------------------*/
/* medical disclaimer
/*------------------------*/

.medical-disclaimer {
    border-left: 0.25rem solid var(--borderMedium);
    color: var(--textMedium);
    font-size: 0.95rem;
    margin-top: 3rem;
    padding-left: 1.25rem;
}

.medical-disclaimer p {margin-bottom: 0;}

/*------------------------*/
/* chapo
/*------------------------*/

.chapo,
.chapo a {
    color: var(--textDark);
    font-size: 1.52rem;
    line-height: 1.4;
}

.chapo p {
    margin-bottom: 0;
}

/*------------------------*/
/* tables
/*------------------------*/

table {
    background: white;
    border: 1px solid var(--borderLight);
    border-collapse: separate;
    border-radius: 0.5rem;
    border-spacing: 0;
    box-shadow: 0 0.35rem 1.5rem rgba(38, 50, 56, 0.045);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 2rem 0;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
}

thead {
    background: var(--light);
}

th,
td {
    border-bottom: 1px solid var(--borderLight);
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--textDark);
    font-weight: 700;
}

tbody td {
    color: var(--textMedium);
}

tbody td:first-child,
tbody th:first-child {
    color: var(--textDark);
    font-weight: 700;
}

tbody tr:nth-child(even) {
    background: rgba(38, 50, 56, 0.025);
}

tbody tr:last-child th,
tbody tr:last-child td {
    border-bottom: 0;
}

thead th {
    border-bottom-color: var(--borderMedium);
}

th:not(:last-child),
td:not(:last-child) {
    border-right: 1px solid var(--borderLight);
}

@media (max-width: 45rem) {
    table {
        border-radius: 0.4rem;
        display: block;
        font-size: 0.92rem;
        margin: 1.7rem 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    thead,
    tbody {
        display: table;
        min-width: 36rem;
        width: 100%;
    }

    th,
    td {
        min-width: 12rem;
        padding: 0.75rem 0.85rem;
    }

    th:first-child,
    td:first-child {
        min-width: 9.5rem;
    }
}

/*------------------------*/
/* related content
/*------------------------*/

.related-content {
    border-top: 1px solid var(--borderLight);
    margin-top: 3rem;
    padding-top: 2rem;
}

.related-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.related-content ul {
    display: grid;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-content li {
    border-left: 0.25rem solid var(--borderLight);
    padding-left: 1rem;
}

.related-content a {
    font-weight: 700;
}

.related-content p {
    color: var(--textMedium);
    font-size: 0.95rem;
    margin: 0.35rem 0 0;
}
