/* BeNews leaves the sides of its white content sheet open to the brand wall. */
:root {
    --cyw-ink: #102522;
    --cyw-paper: #fff;
    --cyw-caption: #c0d0c7;
}
html {
    background: var(--cyw-ink);
}
html::before, html::after {
    content: none;
    display: none;
}
html body {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--cyw-paper);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.cyw-band, .cyw-band * {
    box-sizing: border-box;
}
.cyw-band {
    display: grid;
    align-items: center;
    justify-items: center;
    margin: 0;
    background: var(--cyw-ink);
    color: #f4f5eb;
}
.cyw-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
}
.cyw-mark img {
    display: block;
    width: 100%;
    max-width: 140px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: contain;
}
.cyw-local img {
    border-radius: 7px;
}
.cyw-caption {
    max-width: 100%;
    margin-top: 5px;
    color: var(--cyw-caption);
    font: inherit;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}
.cyw-name {
    color: #eff4ed;
    font: 600 15px/1.2 system-ui, sans-serif;
    text-align: center;
}
.cyw-top {
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: clamp(13px, 3.1vw, 60px);
    min-height: 60px;
    padding: 10px 4%;
}
.cyw-bottom {
    grid-template-columns: repeat(6,minmax(0,1fr));
    gap: 20px 4%;
    padding: 24px 5%;
}
.cyw-bottom .cyw-mark img {
    max-width: 108px;
    height: 29px;
}
.cyw-bottom .cyw-local img {
    max-width: 43px;
    height: 43px;
}
.cyw-bottom [data-brand="ggpoker"],
.cyw-bottom [data-brand="pokerstars"],
.cyw-bottom [data-brand="coinpoker"],
.cyw-bottom [data-brand="acrpoker"],
.cyw-bottom [data-brand="betonline"],
.cyw-bottom [data-brand="natural8"],
.cyw-left, .cyw-right {
    display: none;
}

@media screen and (min-width:1080px) {
    html {
        --cyl-paper-width: min(81.6%, 1920px);
        --cyw-top-height: clamp(76px, 7.65vw, 160px);
    }
    html body {
        display: flow-root;
        width: var(--cyl-paper-width);
    }
    body > .width, body > .header > .width, body > .benav > .width, body > .cyp-actions > .width, body > .befooter > .width {
        max-width: 100%;
    }
    body.bodyfx header.headerm {
        width: 100%;
    }
    .cyw-top {
        min-height: var(--cyw-top-height);
        padding: 16px 2.7%;
    }
    .cyw-top .cyw-mark img {
        max-width: 162px;
        height: clamp(29px, 2.8vw, 52px);
    }
    .cyw-left, .cyw-right {
        position: fixed;
        top: calc(var(--cyw-top-height) + var(--wp-admin--admin-bar--height, 0px));
        bottom: clamp(6px, 3vh, 32px);
        display: grid;
        width: calc((100% - var(--cyl-paper-width)) / 2);
        grid-template-rows: repeat(6,minmax(0,1fr));
        padding-inline: clamp(8px,1.1vw,24px);
        pointer-events: none;
    }
    .cyw-left { left: 0; }
    .cyw-right { right: 0; }
    :is(.cyw-left,.cyw-right) .cyw-mark img {
        max-width: 125px;
        height: clamp(24px, 3.7vh, 46px);
    }
    :is(.cyw-left,.cyw-right) .cyw-local img {
        width: min(100%,clamp(28px,6.6vh,76px));
        height: auto;
        aspect-ratio: 1;
    }
    :is(.cyw-left,.cyw-right) [data-brand="local-1xbet"] img {
        width: min(100%,90px);
        aspect-ratio: 1.32;
        max-height: 6.6vh;
    }
    :is(.cyw-left,.cyw-right) [data-brand="okpoker"] img {
        height: clamp(28px,6vh,66px);
    }
    .cyw-bottom {
        min-height: 92px;
        gap: clamp(16px, 3.5vw, 62px);
        padding: 18px 5%;
    }
    .cyw-bottom .cyw-mark { display: none; }
    .cyw-bottom .cyw-mark:nth-child(-n+6) { display: flex; }
}
@media screen and (min-width:1080px) and (max-height:520px) {
    .cyw-caption { display: none; }
    :is(.cyw-left,.cyw-right) .cyw-local img { height: 5.8vh; }
}
@media screen and (max-width:620px) {
    .cyw-top {
        grid-template-columns: repeat(3,minmax(0,1fr));
        min-height: 40px;
        gap: 7.5%;
        padding: 9px 6%;
    }
    .cyw-top .cyw-mark img {
        max-width: 100px;
        height: 22px;
    }
    .cyw-top .cyw-mark:nth-child(n+4) { display: none; }
    .cyw-bottom {
        grid-template-columns: repeat(5,minmax(0,1fr));
        gap: 15px 9px;
        padding: 19px 10px;
    }
    .cyw-bottom .cyw-mark:nth-child(n+4) { display: flex; }
    .cyw-bottom .cyw-mark img { max-width: 74px; height: 24px; }
    .cyw-bottom .cyw-local img { max-width: 34px; height: 34px; }
    .cyw-bottom .cyw-caption { margin-top: 3px; font-size: 9px; }
    .cyw-bottom .cyw-name { font-size: 11px; }
}
/* Ontario's official two-line wordmark includes black lettering. */
.cyw-band .cyw-mark[data-brand="ontario"] img {
    width: 100%;
    max-width: 108px;
    height: auto;
    aspect-ratio: 3.04;
    padding: 3px 5px;
    border-radius: 3px;
    background-color: #f7f5ed;
}
@media print {
    .cyw-band { display: none; }
    html, html body { background: white; }
}
