/* Shared header and footer for the new FrontPage and Community masters. */
.chat-country-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 20px; }
.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 (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 {
    display: flex;
    align-items: center;
    gap: 48px;
    min-height: 78px;
    padding: 10px 32px;
}

.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: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    max-width: 1460px;
    margin: 0 auto 4px;
    padding: 16px 16px 6px;
    color: #cfe7f4;
    font-size: 13px;
}

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

@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 { width: 160px; min-height: 600px; }
/* 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; } }
