/* Concept tokens for the community site. Not linked from current ASPX pages. */
:root,
[data-community-theme="day"] {
  --chat-font: Arial, Helvetica, sans-serif;

  --chat-canvas: #071d2c;
  --chat-header: #086d9e;
  --chat-header-text: #ffffff;
  --chat-surface: #ffffff;
  --chat-surface-muted: #eef6fa;
  --chat-input: #f0f7fb;

  --chat-text: #102b43;
  --chat-text-muted: #536d85;
  --chat-link: #00699d;
  --chat-primary: #0878a8;
  --chat-primary-hover: #07658f;
  --chat-primary-text: #ffffff;
  --chat-success: #238647;
  --chat-border: #c9dfed;

  --chat-radius-sm: 8px;
  --chat-radius-card: 14px;
  --chat-radius-shell: 18px;
  --chat-shadow-card: 0 8px 26px rgb(3 31 50 / 12%);
  --chat-shadow-shell: 0 24px 60px rgb(0 12 24 / 28%);

  --chat-space-1: 4px;
  --chat-space-2: 8px;
  --chat-space-3: 12px;
  --chat-space-4: 16px;
  --chat-space-6: 24px;
  --chat-space-8: 32px;
}

[data-community-theme="night"] {
  --chat-canvas: #06172a;
  --chat-header: #075b91;
  --chat-shadow-shell: 0 24px 60px rgb(0 9 24 / 42%);
}


/* 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('/static/c/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(1460px, calc(100% - 32px));
    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; } }


/* Static error pages use the same shell as the ASP.NET master pages. */
.chat-error-page { color: var(--chat-text); }
.chat-error-page .chat-site-header,
.chat-error-shell,
.chat-error-page .chat-site-footer { width: min(1240px, calc(100% - 32px)); box-sizing: border-box; }
.chat-error-page .chat-site-header-inner { gap: 40px; }
.chat-error-shell { margin: 0 auto; padding: 36px; background: var(--chat-surface); border-radius: 0 0 var(--chat-radius-shell) var(--chat-radius-shell); box-shadow: var(--chat-shadow-shell); }
.chat-error-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 40px; padding: 44px; border: 1px solid var(--chat-border); border-radius: var(--chat-radius-card); background: linear-gradient(120deg, #eef6fa, #fff 55%); }
.chat-error-illustration { text-align: center; }
.chat-error-illustration img { display: block; width: auto; max-width: 100%; max-height: 260px; margin: 0 auto; }
.chat-error-code { display: inline-block; padding: 5px 12px; border: 1px solid var(--chat-border); border-radius: 20px; background: #eef6fa; color: var(--chat-link); font-size: 13px; font-weight: 700; letter-spacing: .05em; }
.chat-error-content h1 { margin: 14px 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
.chat-error-content p { max-width: 560px; margin: 0 0 12px; color: var(--chat-text-muted); font-size: 16px; line-height: 1.6; }
.chat-error-content .chat-error-intro { color: var(--chat-text); font-size: 18px; }
.chat-error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.chat-error-button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; padding: 10px 20px; border: 1px solid var(--chat-primary); border-radius: 8px; background: var(--chat-primary); color: #fff; font: 600 15px Arial, Helvetica, sans-serif; text-decoration: none; cursor: pointer; }
.chat-error-button:hover { background: var(--chat-primary-hover); color: #fff; }
.chat-error-button-secondary { background: #fff; color: var(--chat-link); }
.chat-error-button-secondary:hover { background: #eef6fa; color: var(--chat-link); }
.chat-error-button:focus-visible, .chat-error-page a:focus-visible { outline: 3px solid #40a6d4; outline-offset: 3px; }
.chat-error-content .chat-error-signature { margin: 24px 0 0; font-size: 13px; }
.chat-error-page .chat-site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 20px auto; }
@media (max-width: 767px) {
    .chat-error-page .chat-site-header-inner { padding: 14px 20px; gap: 16px; flex-wrap: wrap; }
    .chat-error-shell { padding: 16px; }
    .chat-error-card { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; }
    .chat-error-illustration img { max-height: 150px; }
}
