/* Responsive layout layered over the legacy fixed-width styles. */

img,
video,
iframe {
    max-width: 100%;
}

.headerBG,
.masterMenu,
.contentPosition,
.footerContent {
    box-sizing: border-box;
    width: 100%;
    max-width: 1000px;
}

.headerBG {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(220px, 3fr);
    grid-template-rows: 45px 45px;
}

.homelink {
    float: none;
    grid-row: 1 / 3;
    width: auto;
    height: auto;
}

.facebk {
    display: flex;
    float: none;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    height: auto;
}

.facebk .fb_button,
.facebk .tw_button {
    float: none;
    margin-top: 0;
}

.search {
    display: flex;
    float: none;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: auto;
}

.search input[type="text"] {
    box-sizing: border-box;
    min-width: 0;
    max-width: 190px;
}

.mobileMenuToggle {
    display: none;
}

.contentPosition {
    min-width: 0;
}

.guestTitle {
    min-width: 0;
}

.guestTitleContent,
.divPageTitle,
.divPageTitleLeft,
.divPageTitleLotto,
div.filter,
div.filterShort,
div.filterUC,
div.newsItemDiv,
div.newsArea,
div.tagsArea,
div.galleryContent,
div.gallerySet,
div.galleryItems,
div.searchContent,
div.searchResultItem,
div.matchResultsContent,
div.matchResultCompetitions,
div.matchResultItem,
div.fixturesContent,
div.fixtureCompetitions,
div.fixtureItem,
div.contactUs,
div.clubMembershipInfo,
.linksOutterClass,
.lottoPanel {
    box-sizing: border-box;
    max-width: 100%;
}

.footer {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 40px;
}

.homeLayout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
    gap: 10px;
    width: 100%;
}

.homeLeftSide,
.homeRightSide {
    float: none;
    width: auto;
    margin: 0;
}

.newsPageLayout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    width: 100%;
}

.newsPageLayout .newsItemDiv {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

.newsPageLayout table.newsArticleTable,
.newsPageLayout .newsArea,
.newsPageLayout .tagsArea {
    box-sizing: border-box;
    width: 100%;
}

.newsPageLayout table.newsArticleTable {
    table-layout: fixed;
    border-collapse: collapse;
}

.newsArchiveColumn select.sectionList {
    height: 500px;
}

.homeLeftSide {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    align-content: start;
    gap: 10px;
}

.homeRightSide {
    display: flex;
    flex-direction: column;
}

.homeMainImage {
    grid-column: 1 / -1;
    box-sizing: border-box;
    width: 100%;
}

.homeMainImage .mainPic {
    display: block;
    width: 100%;
    height: auto;
}

.facebookPreview {
    box-sizing: border-box;
    width: 100%;
    height: 400px;
    padding: 5px 0 0;
    overflow: auto;
}

.facebookPreview .fb-page,
.facebookPreview .fb-page > span,
.facebookPreview iframe {
    width: 100% !important;
    max-width: 100% !important;
}

.homeLayout .mainSummaryModule {
    box-sizing: border-box;
    float: none;
    width: 100%;
}

.homeLayout #newsPreview {
    margin-top: 0;
    margin-right: 0;
}

.homeLayout .newsItem,
.homeLayout .singleEvent,
.homeLayout .lottoResult,
.homeLayout .newsFeed,
.homeLayout .galleryPreviewDesc {
    box-sizing: border-box;
    width: 100%;
}

.homeLayout .newsContent {
    width: 100%;
}

.homeLottoResult {
    padding: 12px;
    text-align: center;
}

.homeLottoDate {
    display: block;
    margin-bottom: 9px;
    color: #124578;
    font-weight: 700;
    text-decoration: none;
}

.homeLottoNumbers {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
    text-decoration: none;
}

.homeLottoNumbers:hover .homeLottoBall {
    border-color: #124578;
    background: #f1c232;
    color: #124578;
}

.homeLottoNumbers:focus-visible {
    outline: 3px solid rgba(18, 69, 120, 0.28);
    outline-offset: 3px;
}

.homeLottoNumbers .homeLottoBall {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

.homeLottoJackpot {
    color: #283744;
    font-weight: 700;
}

.homeLottoJackpot span:first-child {
    margin-right: 4px;
    color: #687482;
    font-weight: 600;
}

.homeLottoEmpty {
    display: block;
    padding: 18px 12px;
    color: #687482;
    text-align: center;
}

.homeLayout #LottoPreview iframe,
.homeLayout .clubMembImg {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    html,
    body,
    form {
        min-height: 100%;
        height: auto;
    }

    body {
        font-size: 14px;
    }

    .wrap {
        min-height: 0;
        margin-bottom: 0;
    }

    .mainContent {
        padding-bottom: 0;
    }

    .headerBG {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: 73px 48px;
        height: auto;
        background-position: left top;
        background-size: auto 73px;
    }

    .homelink {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .facebk {
        grid-column: 1;
        grid-row: 2;
        justify-content: flex-start;
        gap: 6px;
        padding-left: 8px;
    }

    .search {
        grid-column: 2;
        grid-row: 2;
        padding: 4px 8px 4px 4px;
    }

    .search input[type="text"] {
        flex: 1 1 auto;
        width: 1px;
        max-width: none;
    }

    .search input.styleBtn {
        flex: 0 0 auto;
        padding: 8px;
    }

    .masterMenu {
        height: auto;
        min-height: 44px;
        background-color: #134477;
        background-image: none;
    }

    .mobileMenuToggle {
        display: block;
        box-sizing: border-box;
        width: 100%;
        min-height: 44px;
        padding: 10px 14px;
        border: 0;
        background: #134477;
        color: #fff;
        font-size: 16px;
        font-weight: bold;
        text-align: left;
        cursor: pointer;
    }

    .mobileMenuToggle::after {
        float: right;
        content: "\2630";
    }

    .masterMenu.menuOpen .mobileMenuToggle::after {
        content: "\2715";
    }

    .masterMenu .sf-menu {
        display: none;
        float: none;
        width: 100%;
    }

    .masterMenu.menuOpen .sf-menu {
        display: block;
    }

    .masterMenu .sf-menu li,
    .masterMenu .sf-menu li li {
        box-sizing: border-box;
        float: none;
        width: 100%;
        padding: 0;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .masterMenu .sf-menu a {
        box-sizing: border-box;
        width: 100%;
        min-height: 44px;
        padding: 13px 16px;
        text-align: left;
    }

    .masterMenu .sf-menu ul,
    .masterMenu .sf-menu li:hover ul,
    .masterMenu .sf-menu li.sfHover ul {
        position: static;
        top: auto;
        left: auto;
        display: block;
        box-sizing: border-box;
        width: 100%;
        padding: 0;
        background-image: none;
    }

    .masterMenu .sf-menu li li a {
        padding-left: 32px;
        background: #0f365f;
        font-weight: normal;
    }

    .memberText {
        float: none;
        padding: 10px 16px;
        text-align: left;
    }

    .contentPosition {
        box-sizing: border-box;
        padding: 0 10px;
        overflow-x: auto;
    }

    .homeLayout,
    .homeLeftSide {
        grid-template-columns: minmax(0, 1fr);
    }

    .homeMainImage {
        height: auto;
    }

    .facebookPreview {
        height: 380px;
    }

    .homeLayout .mainSummaryModule {
        max-height: none;
    }

    .homeLayout .newsItem {
        height: auto;
        min-height: 190px;
    }

    .homeLayout .newsContent {
        height: auto;
        min-height: 20px;
    }

    .homeLayout .eventClass,
    .homeLayout .recentUpdateClass {
        height: auto;
        max-height: 320px;
    }

    .footer {
        margin-top: 20px;
        padding: 12px 10px;
    }

    .footerContent {
        text-align: center;
        line-height: 1.5;
    }

    .push {
        display: none;
    }

    .guestTitle {
        box-sizing: border-box;
        min-width: 0;
        width: 100%;
        padding: 5px 10px 0;
    }

    .guestTitleContent,
    .divPageTitle,
    .divPageTitleLeft,
    .divPageTitleLotto {
        box-sizing: border-box;
        float: none;
        width: 100%;
        height: auto;
    }

    div.filter,
    div.filterShort,
    div.filterUC,
    div.newsItemDiv,
    div.newsArea,
    div.tagsArea,
    div.galleryContent,
    div.gallerySet,
    div.galleryItems,
    div.searchContent,
    div.searchResultItem,
    div.matchResultsContent,
    div.matchResultCompetitions,
    div.matchResultItem,
    div.fixturesContent,
    div.fixtureCompetitions,
    div.fixtureItem,
    div.contactUs,
    div.clubMembershipInfo,
    .linksOutterClass,
    .lottoPanel {
        box-sizing: border-box;
        float: none;
        width: 100%;
        max-width: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    div.galleryItems,
    div.newsItemDiv,
    div.contactUs,
    div.clubMembershipInfo {
        padding-right: 10px;
        padding-left: 10px;
    }

    #fixtures > table {
        width: 100%;
        border-collapse: collapse;
    }

    #fixtures > table > tbody > tr > td,
    #fixtures > table > tr > td {
        padding: 0;
    }

    div.fixtureCompetitions {
        padding: 9px 10px;
        border: 1px solid #d5dee7;
        border-left: 4px solid #124578;
        background: #f4f7f9;
    }

    div.fixtureCompetitionTitle {
        margin: 0;
    }

    div.fixtureItems {
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 14px;
        border: 1px solid #d5dee7;
        border-top: 0;
        background: #fff;
    }

    div.fixtureItem {
        display: grid;
        float: none;
        clear: both;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .75fr);
        gap: 3px 10px;
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 8px 10px;
        border: 0;
        border-bottom: 1px solid #e5eaef;
        background: #fff;
    }

    div.fixtureItem .fixturesEntry {
        float: none;
        width: auto;
        min-width: 0;
    }

    div.fixtureItem .fixtureScores {
        grid-column: 1 / -1;
    }

    div.fixtureItem .fixtureDate,
    div.fixtureItem .fixtureVenue,
    div.fixtureItem .fixtureRound {
        overflow-wrap: anywhere;
    }

    .viewMediaItemImg,
    .galleryItemImgLarge,
    .mediaImage {
        width: auto;
        max-width: 100%;
        height: auto;
    }

    input,
    select,
    textarea {
        max-width: 100%;
    }
}

/* ===== Homepage UI preview: remove this block to roll back ===== */
html {
    background: #eef2f5;
}

body {
    color: #1f2933;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.contentPosition {
    padding-top: 10px;
}

.homeLayout,
.homeLayout .homeLeftSide {
    gap: 16px;
}

.homeLayout .homeRightSide {
    gap: 16px;
}

.homeLayout .clubMemb {
    margin: 0;
}

.homeLayout .mainSummaryModule {
    overflow: hidden;
    background: #fff;
    border: 1px solid #d9e1e8;
    box-shadow: 0 1px 3px rgba(18, 69, 120, 0.08);
}

.homeLayout #newsPreview,
.homeLayout #recentUpdatePreview,
.homeLayout #fixturesPreview {
    display: flex;
    flex-direction: column;
    align-self: start;
    height: 310px;
    min-height: 310px;
    max-height: 310px;
}

.homeLayout #recentUpdatePreview {
    height: 174px;
    min-height: 174px;
    max-height: 174px;
}

.homeLayout #newsPreview {
    height: 385px;
    min-height: 385px;
    max-height: 385px;
}

.homeLayout input.styleBtn.menuBtn {
    margin-bottom: 0;
    padding: 12px 16px;
    text-align: left;
    box-shadow: none;
}

.homeLayout #newsPreview > input.styleBtn.menuBtn,
.homeLayout #recentUpdatePreview > input.styleBtn.menuBtn,
.homeLayout #fixturesPreview > input.styleBtn.menuBtn {
    box-sizing: border-box;
    flex: 0 0 48px;
    height: 48px;
    min-height: 48px;
}

.homeLayout .newsItem,
.homeLayout .lottoResult,
.homeLayout .newsFeed {
    height: auto;
    max-height: none;
    margin-bottom: 0;
    border: 0;
    background: #fff;
    overflow: visible;
}

.homeLayout .newsItem,
.homeLayout .recentUpdateClass,
.homeLayout .lottoResult,
.homeLayout .newsFeed {
    padding: 12px;
}

.homeLayout .newsItem,
.homeLayout .eventClass,
.homeLayout .recentUpdateClass {
    box-sizing: border-box;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-bottom: 0;
    border: 0;
    background: #fff;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.homeLayout .singleEvent {
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #e5eaef;
    background: #fff;
}

.homeLayout .singleEvent:last-child {
    border-bottom: 0;
}

.homeLayout .eventClassGrayText,
.homeLayout .eventClassGrayText1,
.homeLayout .datefield {
    color: #687482;
}

.homeLayout .headerText,
.homeLayout .headerText1,
.homeLayout a {
    color: #124578;
}

.homeLayout .homeMainImage {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    background: #111;
}

.homeLayout .homeMainImage .mainPic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homeLayout .homeMainImage .mainPicContainer,
.homeLayout .homeMainImage .mainPicContainer > a {
    display: block;
    width: 100%;
    height: 100%;
}

.homeLayout .homeMainImage .homeMainVideo {
    display: block;
    background: #000;
}

.guestTitle {
    box-sizing: border-box;
    padding: 4px 0 0;
}

.guestTitleContent {
    box-sizing: border-box;
    width: 1000px;
    max-width: 100%;
    margin: 0 auto;
    padding: 8px 14px;
    border: 1px solid #d4dee7;
    border-left: 4px solid #124578;
    background: #f7f9fb;
}

.PageTitle {
    margin-left: 0;
    color: #123f6d;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.25;
}

@media (max-width: 767px) {
    .guestTitle {
        padding: 4px 10px 0;
    }
}

.footer {
    background: #124578;
    padding-top: 16px;
    padding-bottom: 16px;
}

.footerContent,
.footerContent a {
    color: #dce7f2;
}

.footerContent {
    font-size: 11px;
    line-height: 1.4;
}

.headerBG {
    background-image: none;
    background-color: #fff;
}

.homelink {
    background: url(../Images/Master/master_drogfc_header_bg.png) no-repeat left center;
    background-size: contain;
}

.viewMediaItemVideo {
    display: block;
    width: 900px;
    max-width: 100%;
    max-height: 700px;
    height: auto;
    margin-right: 10px;
    background: #000;
    object-fit: contain;
}

.memberAdminActions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    box-sizing: border-box;
    width: 100%;
    padding: 4px 0 24px;
}

input.memberAdminButton {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    min-height: 84px;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid #c8d5e1;
    border-left: 5px solid #124578;
    border-radius: 0;
    background: #fff;
    color: #124578;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    text-align: left;
    text-shadow: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(18, 69, 120, 0.1);
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

input.memberAdminButton:hover {
    border-color: #124578;
    background: #f4f8fb;
    box-shadow: 0 5px 12px rgba(18, 69, 120, 0.16);
    transform: translateY(-2px);
}

input.memberAdminButton:active {
    box-shadow: 0 1px 3px rgba(18, 69, 120, 0.12);
    transform: translateY(0);
}

input.memberAdminButton:focus-visible {
    outline: 3px solid rgba(18, 69, 120, 0.28);
    outline-offset: 2px;
}

input.memberAdminSignOut {
    border-left-color: #a82d2d;
    color: #8f2424;
}

input.memberAdminSignOut:hover {
    border-color: #a82d2d;
    background: #fff7f7;
}

select.sectionList,
select.manageSectionList,
select.manageSectionListBig {
    box-sizing: border-box;
    max-width: 100%;
    padding: 6px;
    border: 1px solid #b9c7d4;
    border-left: 4px solid #124578;
    border-radius: 0;
    background: #fff;
    color: #1f2933;
    font: inherit;
    line-height: 1.45;
    box-shadow: 0 2px 6px rgba(18, 69, 120, 0.1);
    scrollbar-color: #8292a1 #eef2f5;
    scrollbar-width: thin;
    transition: border-color .15s ease, box-shadow .15s ease;
}

select.sectionList:hover,
select.manageSectionList:hover,
select.manageSectionListBig:hover {
    border-color: #7f97ac;
    border-left-color: #124578;
}

select.sectionList:focus,
select.manageSectionList:focus,
select.manageSectionListBig:focus {
    border-color: #124578;
    outline: 3px solid rgba(18, 69, 120, 0.22);
    outline-offset: 2px;
    box-shadow: 0 3px 9px rgba(18, 69, 120, 0.14);
}

select.sectionList option,
select.manageSectionList option,
select.manageSectionListBig option {
    min-height: 24px;
    padding: 7px 10px;
    border-bottom: 1px solid #e5ebf0;
    background: #fff;
    color: #1f2933;
}

select.sectionList option:checked,
select.manageSectionList option:checked,
select.manageSectionListBig option:checked {
    background: #124578 linear-gradient(0deg, #124578 0%, #124578 100%);
    color: #fff;
}

select.sectionList::-webkit-scrollbar,
select.manageSectionList::-webkit-scrollbar,
select.manageSectionListBig::-webkit-scrollbar {
    width: 12px;
}

select.sectionList::-webkit-scrollbar-track,
select.manageSectionList::-webkit-scrollbar-track,
select.manageSectionListBig::-webkit-scrollbar-track {
    background: #eef2f5;
}

select.sectionList::-webkit-scrollbar-thumb,
select.manageSectionList::-webkit-scrollbar-thumb,
select.manageSectionListBig::-webkit-scrollbar-thumb {
    border: 3px solid #eef2f5;
    background: #8292a1;
}

select.sectionList::-webkit-scrollbar-thumb:hover,
select.manageSectionList::-webkit-scrollbar-thumb:hover,
select.manageSectionListBig::-webkit-scrollbar-thumb:hover {
    background: #5f7386;
}

table.lottoResultsLayout {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.lottoResultsSidebar {
    box-sizing: border-box;
    width: 316px;
    padding-right: 16px;
}

.lottoResultsSidebar select.sectionList {
    height: 500px;
}

.lottoResultsDetail {
    width: auto;
    text-align: left;
}

.lottoResultsDetail .lottoPanel {
    width: 100%;
}

.lottoResultsDetail div.lottoDiv {
    float: none;
    box-sizing: border-box;
    width: 480px;
    max-width: 100%;
    margin: 0;
}

.lottoResultsDetail table.lotto {
    width: 100%;
}

.lottoResultsDetail div.lottoWinnersAreaSmall,
.lottoResultsDetail div.lottoWinnersAreaLrg,
.lottoResultsDetail div.lottoTagsArea {
    box-sizing: border-box;
    width: 100%;
}

.lottoResultsDetail div.lottoWinnersAreaLrg {
    height: 300px;
}

.lottoResultsDetail div.lottoFiveBallWinnersArea {
    height: 60px;
}

.lottoWinningNumbersRow {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    min-height: 58px;
    padding: 8px 10px;
}

.lottoWinningNumbersRow .divWinningNos {
    float: none;
    flex: 0 0 auto;
    padding: 0;
}

.lottoWinningNumbersRow div.lottoBallsDiv {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    height: auto;
    margin: 0;
    padding: 0;
}

.lottoNumberBall {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    margin: 0;
    border: 2px solid #e2b528;
    border-radius: 50%;
    background: #124578;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-shadow: none;
    box-shadow: 0 2px 4px rgba(18, 69, 120, 0.22);
}

@media (max-width: 767px) {
    .matchResultItem .matchResultReport,
    .matchResultItem .matchResultPics,
    .matchResultItem .matchTags {
        display: none;
    }

    #matchResults > table {
        width: 100%;
        border-collapse: collapse;
    }

    #matchResults > table > tbody > tr > td,
    #matchResults > table > tr > td {
        padding: 0;
    }

    div.matchResultCompetitions {
        padding: 9px 10px;
        border: 1px solid #d5dee7;
        border-left: 4px solid #124578;
        background: #f4f7f9;
    }

    div.matchResultCompetitionTitle {
        margin: 0;
    }

    div.matchResultItems {
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 14px;
        border: 1px solid #d5dee7;
        border-top: 0;
        background: #fff;
    }

    div.matchResultItem {
        display: grid;
        float: none;
        clear: both;
        grid-template-columns: minmax(0, 2fr) minmax(86px, 1.25fr) minmax(0, 1fr) minmax(38px, .55fr);
        gap: 4px 8px;
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 8px 10px;
        border: 0;
        border-bottom: 1px solid #e5eaef;
        background: #fff;
    }

    div.matchResultItem .matchResultsEntry {
        float: none;
        width: auto;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .memberAdminActions {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    input.memberAdminButton {
        min-height: 64px;
        padding: 14px 16px;
        font-size: 16px;
    }

    select.sectionList,
    select.manageSectionList,
    select.manageSectionListBig {
        width: 100%;
    }

    table.lottoResultsLayout,
    table.lottoResultsLayout > tbody,
    table.lottoResultsLayout > tbody > tr,
    table.lottoResultsLayout > tbody > tr > td {
        display: block;
        width: 100%;
    }

    .lottoResultsSidebar {
        padding-right: 0;
    }

    .lottoResultsSidebar div.filterShort.compactFilter {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 110px;
        align-items: center;
        gap: 10px;
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 10px;
        padding: 10px 12px;
    }

    .lottoResultsSidebar .filterLabel,
    .lottoResultsSidebar .filterDdl {
        float: none;
        width: auto;
        margin: 0;
    }

    .lottoResultsSidebar select.filterDdl {
        box-sizing: border-box;
        width: 100%;
        height: 42px;
        margin: 0;
    }

    .lottoResultsSidebar div.selectionBox,
    .lottoResultsSidebar div.floatLeft {
        float: none;
        box-sizing: border-box;
        width: 100%;
    }

    .lottoResultsSidebar select.sectionList {
        display: block;
        width: 100%;
        height: 44px !important;
        min-height: 44px;
        -webkit-appearance: menulist-button;
        appearance: auto;
    }

    .lottoResultsDetail {
        padding-top: 16px;
        width: 100%;
    }

    .lottoResultsDetail .lottoPanel,
    .lottoResultsDetail div.lottoDiv {
        box-sizing: border-box;
        width: 100% !important;
        max-width: none;
        margin-right: 0;
        margin-left: 0;
    }

    .lottoResultsDetail table.lotto {
        table-layout: fixed;
        width: 100% !important;
    }

    .lottoWinningNumbersRow {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

div.filter.compactFilter,
div.filterShort.compactFilter,
div.filterUC.compactFilter {
    display: flex;
    float: none;
    box-sizing: border-box;
    max-width: 100%;
    margin: -4px 0 20px;
    padding: 14px 16px;
    border: 1px solid #d9e1e8;
    background: #fff;
    box-shadow: 0 1px 3px rgba(18, 69, 120, 0.08);
}

.compactFilterSingle {
    flex-direction: column;
    align-items: stretch;
    width: 280px;
}

div.compactFilterWide {
    align-items: flex-end;
    gap: 14px;
    width: 560px;
}

div.compactFilterPopup {
    margin-top: 0;
    margin-bottom: 12px;
}

.compactFilterField {
    flex: 1 1 220px;
    min-width: 0;
}

.compactFilterYearField {
    flex: 0 0 150px;
}

.compactFilter .filterLabel {
    float: none;
    margin: 0 0 6px;
    color: #1f2933;
    font-weight: 600;
}

.compactFilter div.filterDdl,
.compactFilter div.filterDdlSmall {
    float: none;
    width: 100%;
    margin: 0;
}

.compactFilter select.filterDdl,
.compactFilter select.filterDdlSmall {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #aebdca;
    border-radius: 0;
    background-color: #fff;
    color: #1f2933;
    font: inherit;
    cursor: pointer;
}

.compactFilter select.filterDdl:focus,
.compactFilter select.filterDdlSmall:focus {
    border-color: #124578;
    outline: 3px solid rgba(18, 69, 120, 0.2);
    outline-offset: 1px;
}

.compactFilterOption {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 4px;
}

.compactFilterOption .filterLabel,
.compactFilterOption .filterCheckbox {
    float: none;
    width: auto;
    margin: 0;
}

.compactFilterOption input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

@media (max-width: 767px) {
    div.filter.compactFilter,
    div.filterShort.compactFilter,
    div.filterUC.compactFilter {
        width: 100%;
    }

    div.compactFilterWide {
        flex-direction: column;
        align-items: stretch;
    }

    .compactFilterField,
    .compactFilterYearField {
        flex-basis: auto;
        width: 100%;
    }
}

.search input[type="text"],
.search input.styleBtn {
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
    margin: 0;
    font: inherit;
}

.search input[type="text"] {
    padding: 0 10px;
    border: 1px solid #c8d2dc;
}

.search input.styleBtn {
    padding: 0 16px;
}

div.filter.searchPageFilter {
    float: none;
    clear: both;
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
}

div.filterEdit.searchPageForm {
    display: flex;
    float: none;
    align-items: stretch;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: 480px;
}

div.searchContent.searchPageResults {
    float: none;
    clear: both;
    box-sizing: border-box;
    width: 100%;
}

.searchPageForm input.searchPageInput,
.searchPageForm input.styleBtn.searchPageButton {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    margin: 0;
    font: inherit;
}

.searchPageForm input.searchPageInput {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid #aebdca;
}

.searchPageForm input.styleBtn.searchPageButton {
    flex: 0 0 auto;
    padding: 0 18px;
}

@media (min-width: 768px) {
    .headerBG {
        grid-template-columns: minmax(0, 1fr) 250px;
        grid-template-rows: 25px 48px;
        height: 73px;
    }

    .homelink {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .facebk {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
        gap: 6px;
        padding-right: 8px;
    }

    .search {
        grid-column: 2;
        grid-row: 2;
        padding: 4px 8px 4px 4px;
    }

    .search input[type="text"] {
        flex: 1 1 auto;
        width: 1px;
        max-width: none;
    }

    .search input.styleBtn {
        flex: 0 0 auto;
    }

    .masterMenu > .sf-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 25px;
        padding: 0 10px;
        line-height: 1.2;
    }
}

@media (max-width: 767px) {
    div.clubHistory {
        box-sizing: border-box;
        width: 100%;
        margin: 0;
        padding: 12px;
        overflow: hidden;
    }

    div.clubHistory table.history {
        table-layout: fixed;
        border-collapse: collapse;
        box-sizing: border-box;
        width: 100%;
        margin: 0;
    }

    div.clubHistory table.history td {
        box-sizing: border-box;
        width: 100%;
        padding: 0;
        overflow-wrap: anywhere;
    }

    div.clubHistory .historyTitle {
        box-sizing: border-box;
        width: 100%;
        margin: 4px 0 16px;
        padding: 8px 10px;
    }

    div.clubHistory table.history img {
        display: block;
        box-sizing: border-box;
        width: auto;
        max-width: 100%;
        height: auto;
        margin: 8px auto;
    }

    .newsPageLayout {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .newsArticleColumn {
        order: 2;
        min-width: 0;
    }

    .newsArchiveColumn {
        order: 1;
        min-width: 0;
    }

    .newsPageLayout table.newsArticleTable {
        display: table;
        box-sizing: border-box;
        width: 100% !important;
        height: auto;
        margin: 0;
        padding: 0;
        font-size: inherit;
        text-align: left;
    }

    .newsPageLayout .newsArea {
        box-sizing: border-box;
        width: 100% !important;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .newsArchiveColumn div.filterShort.compactFilter {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 110px;
        align-items: center;
        gap: 10px;
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 10px;
        padding: 10px 12px;
    }

    .newsArchiveColumn .filterLabel,
    .newsArchiveColumn .filterDdl {
        float: none;
        width: auto;
        margin: 0;
    }

    .newsArchiveColumn select.filterDdl {
        box-sizing: border-box;
        width: 100%;
        height: 42px;
        margin: 0;
    }

    .newsArchiveColumn div.selectionBox,
    .newsArchiveColumn div.floatLeft {
        float: none;
        box-sizing: border-box;
        width: 100%;
    }

    .newsArchiveColumn select.sectionList {
        display: block;
        width: 100%;
        height: 44px !important;
        min-height: 44px;
        -webkit-appearance: menulist-button;
        appearance: auto;
    }
}
/* ===== End homepage UI preview ===== */
