/*
|--------------------------------------------------------------------------
| RESPONSIVE WEBSITE PATCH
|--------------------------------------------------------------------------
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 20px;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE TABLES
|--------------------------------------------------------------------------
*/

table {
    width: 100% !important;
    max-width: 950px;
    margin-right: auto;
    margin-left: auto;
    table-layout: fixed;
}

td,
th {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere;
}

td[width="950"],
th[width="950"] {
    width: 100% !important;
}

td[width="314"] {
    width: 33% !important;
}

td[width="636"] {
    width: 67% !important;
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE IMAGES, VIDEOS AND MAPS
|--------------------------------------------------------------------------
*/

img {
    max-width: 100% !important;
    height: auto !important;
}

iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
}

iframe[src*="youtube.com"] {
    height: auto !important;
    aspect-ratio: 16 / 9;
}

iframe[src*="google.com/maps"] {
    height: clamp(280px, 47vw, 450px) !important;
}

hr {
    width: 100% !important;
    max-width: 900px;
}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media screen and (max-width: 600px) {
    body {
        padding: 0;
        font-size: 16px;
    }

    table {
        max-width: 100% !important;
    }

    td,
    th {
        padding-right: 6px;
        padding-left: 6px;
    }

    h1 {
        font-size: clamp(1.55rem, 7vw, 2rem);
        line-height: 1.15;
    }

    h2 {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
        line-height: 1.2;
    }

    h3 {
        font-size: clamp(1.25rem, 5.5vw, 1.6rem);
        line-height: 1.2;
    }

    h4 {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
        line-height: 1.2;
    }

    p,
    li,
    a,
    strong,
    em {
        overflow-wrap: anywhere;
    }

    iframe[src*="google.com/maps"] {
        height: 320px !important;
    }
}