/* Shared header and footer for the new FrontPage and Community masters. */
/* These controls have no effect on the desktop layout. */
.chat-menu-toggle, .chat-mobile-menu, .chat-menu-backdrop { display: none; }
.chat-menu-toggle[hidden], .chat-mobile-menu[hidden], .chat-menu-backdrop[hidden] { display: none !important; }

@media (max-width: 767px) {
    .chat-menu-toggle:not([hidden]) {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-left: auto;
        padding: 10px;
        border: 1px solid rgba(255,255,255,.65);
        border-radius: 6px;
        background: transparent;
        color: #fff;
        cursor: pointer;
    }
    .chat-menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; }
    .chat-menu-toggle:focus-visible, .chat-mobile-menu-close:focus-visible { outline: 3px solid #ffcf66; outline-offset: 3px; }
    .chat-menu-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1040; background: rgba(0,0,0,.55); }
    .chat-mobile-menu:not([hidden]) {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1041;
        width: min(360px, calc(100% - 24px));
        box-sizing: border-box;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 18px;
        background: #f4f9fc;
        color: #17394f;
        box-shadow: -8px 0 30px rgba(0,0,0,.3);
    }
    .chat-mobile-menu-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
    .chat-mobile-menu-heading h2 { margin: 0; font-size: 22px; }
    .chat-mobile-menu-close { width: 44px; height: 44px; border: 1px solid #c5dce8; border-radius: 6px; background: #fff; color: #17394f; font-size: 28px; cursor: pointer; }
    .chat-mobile-menu .chat-site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin-bottom: 18px; }
    .chat-mobile-menu .chat-site-nav a { display: block; padding: 12px; color: #075891; font-size: 17px; border-bottom: 1px solid #c5dce8; }
    .chat-mobile-menu .chat-site-nav a:hover, .chat-mobile-menu .chat-site-nav a:focus { color: #075891; background: #dcecf5; border-bottom: 1px solid #c5dce8; }
    .chat-mobile-menu .chat-site-search { margin: 0 0 18px; min-width: 0; }
    .chat-mobile-menu .chat-community-sidebar, .chat-mobile-menu .chat-community-aside { display: block; width: 100%; }
    .chat-mobile-menu .chat-site-footer { width: 100%; padding: 12px 0; margin: 0; justify-content: flex-start; color: #17394f; }
    .chat-mobile-menu .chat-site-footer a { color: #075891; }
    .chat-mobile-menu .chat-country-menu { margin: 16px 0 0; }
    .chat-mobile-menu .chat-country-menu a:hover, .chat-mobile-menu .chat-country-menu a:focus { background: #dcecf5; }
    body.chat-mobile-menu-open { overflow: hidden; }
}
.chat-country-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: fit-content; max-width: calc(100% - 32px); float: none; margin: 0 auto 8px; }
.chat-country-menu a { display: inline-flex; align-items: center; justify-content: center; padding: 8px; border-radius: 4px; }
.chat-country-menu a:hover, .chat-country-menu a:focus { background: rgba(255,255,255,.15); }
.chat-country-flag { display: block; width: 16px; height: 11px; background-image: url('../csg-4de3fc3590fc6.png'); background-repeat: no-repeat; }
.chat-country-gb { background-position: -175px -897px; }
.chat-country-dk { background-position: -175px -825px; }
.chat-country-no { background-position: -175px -1005px; }
.chat-country-es { background-position: -175px -849px; }
.chat-country-fr { background-position: -175px -885px; }
.chat-country-de { background-position: -175px -813px; }
.chat-country-nl { background-position: -175px -993px; }
.chat-country-it { background-position: -175px -957px; }
.chat-site-search { display: flex; flex: 0 1 250px; min-width: 180px; margin: 0 0 0 auto; }
.chat-site-search input { width: 100%; min-width: 0; border: 1px solid #c5dce8; border-radius: 5px 0 0 5px; padding: 7px 10px; background: #fff; color: #17394f; }
.chat-site-search button { flex: 0 0 38px; border: 1px solid #23833a; border-radius: 0 5px 5px 0; background: #28a745; color: #fff; cursor: pointer; }
.chat-site-search button:hover { background: #218838; }
@media (min-width: 768px) {
    .chat-site-header .chat-site-search { margin-right: 120px; }
}
@media (max-width: 1100px) {
    .chat-site-header-inner { flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 575px) {
    .chat-site-search { flex-basis: 100%; margin-left: 0; }
}
.chat-frontpage-page,
.chat-community-page {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at 50% -10%, #164868, #071d2c 65%);
    font-family: Arial, Helvetica, sans-serif;
}

.chat-site-header {
    width: min(1240px, calc(100% - 32px));
    max-width: 1240px;
    box-sizing: border-box;
    margin: 32px auto 0;
    border: 1px solid #40a6d4;
    border-bottom: 0;
    border-radius: 17px 17px 0 0;
    background: linear-gradient(115deg, #087cad, #075891);
    box-shadow: var(--chat-shadow-shell);
}

.chat-site-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 48px;
    min-height: 78px;
    padding: 10px 32px;
}

/* A quiet nautical detail, outside the navigation and search flow. */
.chat-site-header-anchor {
    position: absolute;
    top: 50%;
    right: 28px;
    width: 38px;
    height: 44px;
    transform: translateY(-50%);
    color: #d9e9ef;
    opacity: .8;
    pointer-events: none;
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .2));
}

@media (max-width: 1100px) {
    .chat-site-header-anchor { display: none; }
}

.chat-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 31px;
    font-weight: 700;
    white-space: nowrap;
}

.chat-site-brand:hover,
.chat-site-brand:focus {
    color: #fff;
    text-decoration: none;
}

.chat-site-brand-logo {
    flex: 0 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    line-height: 1;
}
.chat-site-brand-logo img { display: block; width: auto; height: 54px; max-width: 185px; object-fit: contain; }

.chat-site-anchor {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    font-size: 30px;
}

.chat-site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.chat-site-nav a {
    color: #fff;
    font-size: 17px;
    text-decoration: none;
}

.chat-site-nav a:hover,
.chat-site-nav a:focus,
.chat-site-nav .is-current {
    color: #fff;
    border-bottom: 2px solid #fff;
    text-decoration: none;
}

.chat-site-footer {
    display: block;
    height: auto;
    min-height: 0;
    max-width: 1460px;
    margin: 0 auto 4px;
    padding: 16px 16px 0;
    color: #cfe7f4;
    font-size: 13px;
    text-align: center;
}

.chat-site-footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; }
.chat-site-footer .chat-country-menu { margin: 8px auto 0; }

.chat-site-footer a {
    color: #e0f4ff;
}

.chat-site-footer .chat-site-copyright {
    display: block;
    margin-top: 8px;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 767px) {
    .chat-site-header {
        width: calc(100% - 16px);
        margin-top: 8px;
    }

    .chat-site-header-inner {
        gap: 10px;
        padding: 10px 16px;
        flex-wrap: wrap;
    }

    .chat-site-brand { font-size: 24px; }
    .chat-site-nav { gap: 14px; }
    .chat-site-nav a { font-size: 14px; }
}
/* Shared ad positions preserve the site's total width; never overlap content. */
.chat-ad-slot { width: min(1240px, calc(100% - 32px)); max-width: 1240px; box-sizing: border-box; margin: 16px auto; min-height: 90px; text-align: center; }
.chat-ad-slot > .adsbygoogle { display: block; width: 100%; max-width: 100%; margin-left: auto !important; margin-right: auto !important; }
.chat-ad-slot-vertical { display: none; }
/* Side banners belong outside the 1240px shell, never below its content. */
@media (min-width: 1640px) {
    .chat-frontpage-page, .chat-community-page { position: relative; }
    .chat-ad-slot-vertical {
        display: block;
        position: absolute;
        top: 148px;
        width: 160px;
        min-height: 600px;
        margin: 0;
    }
    #left-sky-container.chat-ad-slot-vertical { right: calc(50% + 640px); }
    #right-sky-container.chat-ad-slot-vertical { left: calc(50% + 640px); }
    .chat-ad-slot-vertical:has(> .adsbygoogle[data-ad-status="unfilled"]) { display: none; }
}
/* Auto Ads creates its own containers outside our manual banner slots.
   Centre the in-page placement, without changing creative sizes or overlays. */
body > .google-auto-placed,
form > .google-auto-placed { text-align: center; margin-left: auto !important; margin-right: auto !important; }
body > .google-auto-placed > ins.adsbygoogle,
form > .google-auto-placed > ins.adsbygoogle { margin-left: auto !important; margin-right: auto !important; }
@media (max-width: 767px) { .chat-ad-slot { width: calc(100% - 16px); } .chat-ad-slot-vertical { display: none; } }
.chat-community-shell,
.chat-frontpage { position: relative; border-bottom-left-radius: var(--chat-radius-shell); border-bottom-right-radius: var(--chat-radius-shell); }
.chat-community-shell::after,
.chat-frontpage::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--chat-radius-shell);
    border-bottom: 5px solid #269bc0;
    border-radius: 0 0 var(--chat-radius-shell) var(--chat-radius-shell);
    box-sizing: border-box;
    pointer-events: none;
}
.chat-site-footer-meta { display: flex; justify-content: center; align-items: center; width: 100%; float: none; margin: 0 auto 16px; color: #8ea8b7; }
.chat-site-facebook { display: inline-flex; align-items: center; gap: 6px; }
.chat-site-facebook::before { content: 'f'; display: inline-flex; align-items: flex-end; justify-content: center; width: 16px; height: 16px; border-radius: 3px; background: #1877f2; color: #fff; font: bold 17px/1 Arial, sans-serif; }
.chat-site-server-name { font-size: 10px; }
