/* =========================================================
   BLIND CRICKET UK - MODERN CSS
   Complete stylesheet for the existing legacy HTML pages
   ========================================================= */

/* 1. GLOBAL STYLES
--------------------------------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    background: #f3f6f8 !important;
    color: #263445 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px;
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
}

p {
    margin: 0 0 16px;
}

a {
    color: #087c59;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}

a:hover {
    color: #04543d;
    text-decoration: underline;
}

/* 2. HEADER - OUTER CONTAINER
--------------------------------------------------------- */

body > table:first-of-type {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    background: #102b46 !important;
}

body > table:first-of-type > tbody > tr > td {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    background: #102b46 !important;
    border: 0 !important;
    vertical-align: middle !important;
}

/* 3. HEADER - INNER CONTAINER
--------------------------------------------------------- */

body > table:first-of-type table.contentLink {
    display: block !important;
    width: 100% !important;
    max-width: 1200px !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 22px 24px 20px !important;
    border: 0 !important;
    border-collapse: collapse !important;
    background: #102b46 !important;
    background-image: none !important;
}

body > table:first-of-type table.contentLink > tbody {
    display: block !important;
    width: 100% !important;
}

/* Hide the old empty 101px spacer */
body > table:first-of-type table.contentLink > tbody > tr > td:first-child {
    display: none !important;
}

/* Remove old fixed table layout */
body > table:first-of-type table.contentLink > tbody > tr {
    width: 100% !important;
    height: auto !important;
    border: 0 !important;
}

/* 4. HEADER - LOGO AND TITLE
--------------------------------------------------------- */

/* First row containing the website name */
body > table:first-of-type table.contentLink > tbody > tr:first-child {
    display: flex !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 0 16px !important;
}

/* Logo cell */
body > table:first-of-type table.contentLink > tbody > tr:first-child > td {
    display: block !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/* Website name */
body > table:first-of-type table.contentLink > tbody > tr:first-child strong {
    display: inline-block !important;
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    letter-spacing: -0.7px !important;
    line-height: 1.2 !important;
}

/* Secondary heading */
body > table:first-of-type table.contentLink h1 {
    display: none !important;
}

/* 5. HEADER - NAVIGATION ROW
--------------------------------------------------------- */

/* Second row of header */
body > table:first-of-type table.contentLink > tbody > tr:nth-child(2) {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Cell containing navigation table */
body > table:first-of-type table.contentLink > tbody > tr:nth-child(2) > td {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: center !important;
}

/* Actual navigation table */
body > table:first-of-type table.contentLink > tbody > tr:nth-child(2) > td > table {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background: transparent !important;
}

/* Navigation table body */
body > table:first-of-type table.contentLink > tbody > tr:nth-child(2) > td > table > tbody {
    display: block !important;
    width: 100% !important;
}

/* Navigation row - flex layout */
body > table:first-of-type table.contentLink > tbody > tr:nth-child(2) > td > table > tbody > tr {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Navigation cells */
body > table:first-of-type table.contentLink > tbody > tr:nth-child(2) > td > table td {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/* Hide old vertical pipe separators */
body > table:first-of-type table.contentLink > tbody > tr:nth-child(2) > td > table td:not(:has(a)) {
    display: none !important;
}

/* Navigation buttons */
body > table:first-of-type table.contentLink > tbody > tr:nth-child(2) > td > table a {
    display: inline-flex !important;
    min-height: 42px !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 10px 17px !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    border-radius: 7px !important;
    background: rgba(255,255,255,.08) !important;
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background .2s ease, border-color .2s ease, transform .2s ease !important;
}

/* Remove old font formatting */
body > table:first-of-type table.contentLink > tbody > tr:nth-child(2) > td > table a font {
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* Navigation hover */
body > table:first-of-type table.contentLink > tbody > tr:nth-child(2) > td > table a:hover {
    background: #16845f !important;
    border-color: #16845f !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px);
}

/* 6. HEADLINES BAR
--------------------------------------------------------- */

body > table:nth-of-type(2) {
    width: calc(100% - 40px) !important;
    max-width: 1152px !important;
    height: auto !important;
    margin: 24px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
}

body > table:nth-of-type(2) td {
    height: auto !important;
    padding: 14px 20px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #087c59 !important;
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

body > table:nth-of-type(2) td font,
body > table:nth-of-type(2) td b,
body > table:nth-of-type(2) td strong {
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

body > table:nth-of-type(2) td font[size="3"] {
    font-size: 18px !important;
    font-weight: 800 !important;
}

body > table:nth-of-type(2) td font[size="1"] {
    font-size: 14px !important;
}

body > table:nth-of-type(2) a {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-decoration: underline !important;
}

/* 7. MAIN CONTENT
--------------------------------------------------------- */

body > table:nth-of-type(3) {
    width: calc(100% - 40px) !important;
    max-width: 1152px !important;
    margin: 24px auto 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    background: transparent !important;
}

body > table:nth-of-type(3) > tbody > tr > td {
    padding: 12px !important;
    vertical-align: top !important;
}

/* Inner content table */
body > table:nth-of-type(3) table {
    width: 100% !important;
    max-width: 100% !important;
    border: 0 !important;
    border-collapse: collapse !important;
}

/* Content cells */
body > table:nth-of-type(3) table td {
    padding: 12px 16px !important;
    border: 0 !important;
    background: #ffffff !important;
    color: #263445 !important;
    vertical-align: top !important;
}

/* Article headings */
body > table:nth-of-type(3) table td font[size="3"] {
    color: #102b46 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 23px !important;
    font-weight: 800 !important;
}

/* Content text */
body > table:nth-of-type(3) table td font {
    color: #263445 !important;
    font-family: Arial, Helvetica, sans-serif !important;
}

/* Content links */
body > table:nth-of-type(3) table td a {
    color: #087c59 !important;
    font-weight: 700 !important;
}

body > table:nth-of-type(3) table td a:hover {
    color: #04543d !important;
    text-decoration: underline !important;
}

/* News list */
body > table:nth-of-type(3) ul {
    margin: 12px 0 20px !important;
    padding-left: 24px !important;
}

body > table:nth-of-type(3) li {
    margin-bottom: 13px !important;
    padding-left: 3px !important;
    line-height: 1.55 !important;
}

body > table:nth-of-type(3) li a {
    color: #087c59 !important;
    font-weight: 700 !important;
}

/* Content images */
body > table:nth-of-type(3) img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 7px !important;
}

/* 8. FOOTER
--------------------------------------------------------- */

body > table:last-of-type {
    width: 100% !important;
    height: auto !important;
    margin: 40px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    background: #102b46 !important;
}

body > table:last-of-type > tbody > tr > td {
    padding: 22px 16px !important;
    border: 0 !important;
    background: #102b46 !important;
    text-align: center !important;
}

/* Footer navigation */
body > table:last-of-type table {
    display: block !important;
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    float: none !important;
}

body > table:last-of-type table tbody {
    display: block !important;
    width: 100% !important;
}

body > table:last-of-type table tr {
    display: flex !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
}

body > table:last-of-type table td {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* Hide footer separators */
body > table:last-of-type table td:not(:has(a)) {
    display: none !important;
}

/* Footer buttons */
body > table:last-of-type table a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 36px !important;
    padding: 8px 13px !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    border-radius: 5px !important;
    background: rgba(255,255,255,.07) !important;
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body > table:last-of-type table a font {
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
}

body > table:last-of-type table a:hover {
    background: #16845f !important;
    border-color: #16845f !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* 9. GENERAL TABLE CLEANUP
--------------------------------------------------------- */

table {
    max-width: 100%;
}

font {
    line-height: inherit;
}

/* 10. TABLET RESPONSIVE
--------------------------------------------------------- */

@media screen and (max-width: 900px) {

    body > table:first-of-type table.contentLink {
        padding: 20px 16px !important;
    }

    body > table:first-of-type table.contentLink > tbody > tr:first-child {
        padding-bottom: 14px !important;
    }

    body > table:first-of-type table.contentLink > tbody > tr:nth-child(2) > td > table > tbody > tr {
        gap: 7px !important;
    }

    body > table:first-of-type table.contentLink > tbody > tr:nth-child(2) > td > table a {
        padding: 9px 12px !important;
        font-size: 13px !important;
    }

    body > table:nth-of-type(3) {
        width: calc(100% - 24px) !important;
    }

    body > table:nth-of-type(3) > tbody > tr > td {
        padding: 5px !important;
    }
}

/* 11. MOBILE RESPONSIVE
--------------------------------------------------------- */

@media screen and (max-width: 600px) {

    body {
        font-size: 15px !important;
    }

    /* Header */
    body > table:first-of-type table.contentLink {
        padding: 18px 12px !important;
    }

    body > table:first-of-type table.contentLink > tbody > tr:first-child {
        padding-bottom: 15px !important;
    }

    body > table:first-of-type table.contentLink > tbody > tr:first-child strong {
        font-size: 24px !important;
    }

    /* Header navigation */
    body > table:first-of-type table.contentLink > tbody > tr:nth-child(2) > td > table > tbody > tr {
        gap: 7px !important;
    }

    body > table:first-of-type table.contentLink > tbody > tr:nth-child(2) > td > table a {
        min-height: 38px !important;
        padding: 8px 11px !important;
        font-size: 12px !important;
    }

    body > table:first-of-type table.contentLink > tbody > tr:nth-child(2) > td > table a font {
        font-size: 12px !important;
    }

    /* Headlines */
    body > table:nth-of-type(2) {
        width: calc(100% - 20px) !important;
        margin-top: 14px !important;
    }

    body > table:nth-of-type(2) td {
        padding: 12px !important;
    }

    /* Main content */
    body > table:nth-of-type(3) {
        width: calc(100% - 20px) !important;
        margin: 14px auto 25px !important;
    }

    body > table:nth-of-type(3) > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }

    body > table:nth-of-type(3) table td {
        display: block !important;
        width: 100% !important;
        padding: 12px !important;
    }

    body > table:nth-of-type(3) table td font[size="3"] {
        font-size: 20px !important;
    }

    body > table:nth-of-type(3) table img {
        display: block !important;
        margin: 10px auto !important;
    }

    /* Footer */
    body > table:last-of-type > tbody > tr > td {
        padding: 16px 8px !important;
    }

    body > table:last-of-type table tr {
        gap: 7px !important;
    }

    body > table:last-of-type table a {
        min-height: 34px !important;
        padding: 7px 10px !important;
        font-size: 12px !important;
    }
}

/* 12. ACCESSIBILITY
--------------------------------------------------------- */

a:focus-visible {
    outline: 3px solid #f2c94c !important;
    outline-offset: 3px !important;
}

/* 13. LEGACY HTML CLEANUP
--------------------------------------------------------- */

body > br:first-of-type {
    display: none !important;
}

/* Old white text in the content area */
body > table:nth-of-type(3) font[color="#ffffff"],
body > table:nth-of-type(3) font[color="#FFFFFF"] {
    color: #263445 !important;
}
